Skip to content

Commit 5f611a0

Browse files
BrewTestBotchenrui333
authored andcommitted
soci 4.1.1
soci: update build and test Signed-off-by: Rui Chen <[email protected]>
1 parent 0069f6c commit 5f611a0

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Formula/s/soci.rb

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Soci < Formula
22
desc "Database access library for C++"
33
homepage "https://soci.sourceforge.net/"
4-
url "https://downloads.sourceforge.net/project/soci/soci/soci-4.0.3/soci-4.0.3.zip"
5-
sha256 "598abf573252caf71790af5ff15beca20af548440b610e70468edfd3c12d47b0"
4+
url "https://downloads.sourceforge.net/project/soci/soci/soci-4.1.1/soci-4.1.1.zip"
5+
sha256 "b59bc01ec20fd9776cdb071f600acbe66b5a3f3350561abb97f5707649921d9c"
66
license "BSL-1.0"
77

88
livecheck do
@@ -29,15 +29,16 @@ class Soci < Formula
2929
depends_on "sqlite"
3030

3131
def install
32-
args = %w[
33-
-DCMAKE_CXX_STANDARD=11
34-
-DSOCI_TESTS:BOOL=OFF
35-
-DWITH_SQLITE3:BOOL=ON
36-
-DWITH_BOOST:BOOL=OFF
37-
-DWITH_MYSQL:BOOL=OFF
38-
-DWITH_ODBC:BOOL=OFF
39-
-DWITH_ORACLE:BOOL=OFF
40-
-DWITH_POSTGRESQL:BOOL=OFF
32+
args = %W[
33+
-DCMAKE_CXX_STANDARD=14
34+
-DSOCI_TESTS=OFF
35+
-DWITH_SQLITE3=ON
36+
-DWITH_BOOST=OFF
37+
-DWITH_MYSQL=OFF
38+
-DWITH_ODBC=OFF
39+
-DWITH_ORACLE=OFF
40+
-DWITH_POSTGRESQL=OFF
41+
-DCMAKE_INSTALL_RPATH=#{rpath}
4142
]
4243

4344
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
@@ -60,7 +61,7 @@ def install
6061
soci::session sql(backEnd, connectString);
6162
}
6263
CPP
63-
system ENV.cxx, "-o", "test", "test.cxx", "-std=c++11", "-L#{lib}", "-lsoci_core", "-lsoci_empty"
64+
system ENV.cxx, "-o", "test", "test.cxx", "-std=c++14", "-L#{lib}", "-lsoci_core", "-lsoci_empty"
6465
system "./test"
6566
end
6667
end

0 commit comments

Comments
 (0)