diff options
author | joerg <joerg@pkgsrc.org> | 2013-07-05 21:04:45 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-07-05 21:04:45 +0000 |
commit | 86fb8e137e7b58fba3bfbaaeb8310ffab8a33c31 (patch) | |
tree | 423311cb0966f44684cdadb7af2fe561284c0187 /databases | |
parent | 98a76fbcb039330c06ef19492a85e08e5be5fa11 (diff) | |
download | pkgsrc-86fb8e137e7b58fba3bfbaaeb8310ffab8a33c31.tar.gz |
Add soci-3.2.1:
SOCI is a database access libary for C++. It provides a natural
interface with extensive STL integration. A number of major database
servers are accessable.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/soci/DESCR | 3 | ||||
-rw-r--r-- | databases/soci/Makefile | 20 | ||||
-rw-r--r-- | databases/soci/PLIST | 64 | ||||
-rw-r--r-- | databases/soci/distinfo | 7 | ||||
-rw-r--r-- | databases/soci/patches/patch-CMakeLists.txt | 19 | ||||
-rw-r--r-- | databases/soci/patches/patch-backends_sqlite3_soci-sqlite3.h | 15 |
6 files changed, 128 insertions, 0 deletions
diff --git a/databases/soci/DESCR b/databases/soci/DESCR new file mode 100644 index 00000000000..2fe64edfed1 --- /dev/null +++ b/databases/soci/DESCR @@ -0,0 +1,3 @@ +SOCI is a database access libary for C++. It provides a natural +interface with extensive STL integration. A number of major database +servers are accessable. diff --git a/databases/soci/Makefile b/databases/soci/Makefile new file mode 100644 index 00000000000..1717a58584f --- /dev/null +++ b/databases/soci/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2013/07/05 21:04:45 joerg Exp $ +# + +DISTNAME= soci-3.2.1 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=soci/} + +MAINTAINER= joerg@NetBSD.org +HOMEPAGE= http://soci.sourceforge.net/ +COMMENT= C++ database access library +LICENSE= boost-license + +USE_CMAKE= yes +USE_LANGUAGES= c c++ + +CMAKE_ARGS+= -DSOCI_LIBDIR=lib + +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../mk/pgsql.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/soci/PLIST b/databases/soci/PLIST new file mode 100644 index 00000000000..021faf5dd75 --- /dev/null +++ b/databases/soci/PLIST @@ -0,0 +1,64 @@ +@comment $NetBSD: PLIST,v 1.1 2013/07/05 21:04:45 joerg Exp $ +include/soci/backend-loader.h +include/soci/blob-exchange.h +include/soci/blob.h +include/soci/boost-fusion.h +include/soci/boost-gregorian-date.h +include/soci/boost-optional.h +include/soci/boost-tuple.h +include/soci/connection-parameters.h +include/soci/connection-pool.h +include/soci/empty/soci-empty.h +include/soci/error.h +include/soci/exchange-traits.h +include/soci/into-type.h +include/soci/into.h +include/soci/once-temp-type.h +include/soci/postgresql/common.h +include/soci/postgresql/soci-postgresql.h +include/soci/prepare-temp-type.h +include/soci/procedure.h +include/soci/query_transformation.h +include/soci/ref-counted-prepare-info.h +include/soci/ref-counted-statement.h +include/soci/row-exchange.h +include/soci/row.h +include/soci/rowid-exchange.h +include/soci/rowid.h +include/soci/rowset.h +include/soci/session.h +include/soci/soci-backend.h +include/soci/soci-config.h +include/soci/soci-platform.h +include/soci/soci-simple.h +include/soci/soci.h +include/soci/sqlite3/common.h +include/soci/sqlite3/soci-sqlite3.h +include/soci/statement.h +include/soci/transaction.h +include/soci/type-conversion-traits.h +include/soci/type-conversion.h +include/soci/type-holder.h +include/soci/type-ptr.h +include/soci/unsigned-types.h +include/soci/use-type.h +include/soci/use.h +include/soci/values-exchange.h +include/soci/values.h +include/soci/version.h +lib/libsoci_core.a +lib/libsoci_core.so +lib/libsoci_core.so.3.2 +lib/libsoci_core.so.${PKGVERSION} +lib/libsoci_empty.a +lib/libsoci_empty.so +lib/libsoci_empty.so.3.2 +lib/libsoci_empty.so.${PKGVERSION} +lib/libsoci_postgresql.a +lib/libsoci_postgresql.so +lib/libsoci_postgresql.so.3.2 +lib/libsoci_postgresql.so.${PKGVERSION} +lib/libsoci_sqlite3.a +lib/libsoci_sqlite3.so +lib/libsoci_sqlite3.so.3.2 +lib/libsoci_sqlite3.so.${PKGVERSION} diff --git a/databases/soci/distinfo b/databases/soci/distinfo new file mode 100644 index 00000000000..33cfeaa3d18 --- /dev/null +++ b/databases/soci/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2013/07/05 21:04:45 joerg Exp $ + +SHA1 (soci-3.2.1.tar.gz) = 38f602ec8d61c4563df8ea4d4ed318dc378e7096 +RMD160 (soci-3.2.1.tar.gz) = 3e98139aa904c62dbf7cc6a1fae5fc73042a6364 +Size (soci-3.2.1.tar.gz) = 343358 bytes +SHA1 (patch-CMakeLists.txt) = c66f0b8fd3ca0fedaebedd6943ae0471f7c6ba35 +SHA1 (patch-backends_sqlite3_soci-sqlite3.h) = 688260116f0e35f37f7de8d61366a3397259dc0c diff --git a/databases/soci/patches/patch-CMakeLists.txt b/databases/soci/patches/patch-CMakeLists.txt new file mode 100644 index 00000000000..9678bdd529b --- /dev/null +++ b/databases/soci/patches/patch-CMakeLists.txt @@ -0,0 +1,19 @@ +$NetBSD: patch-CMakeLists.txt,v 1.1 2013/07/05 21:04:45 joerg Exp $ + +Use consistent behavior on all platforms. + +--- CMakeLists.txt.orig 2013-07-05 18:10:32.000000000 +0000 ++++ CMakeLists.txt +@@ -70,11 +70,7 @@ include(SociDependencies) + # Installation + ############################################################################### + +-if(APPLE OR CMAKE_SIZEOF_VOID_P EQUAL 4) +- set(SOCI_LIBDIR "lib") +-else() +- set(SOCI_LIBDIR "lib64") +-endif() ++set(SOCI_LIBDIR "lib") + + set(BINDIR "bin" CACHE PATH "The directory to install binaries into.") + set(LIBDIR ${SOCI_LIBDIR} CACHE PATH "The directory to install libraries into.") diff --git a/databases/soci/patches/patch-backends_sqlite3_soci-sqlite3.h b/databases/soci/patches/patch-backends_sqlite3_soci-sqlite3.h new file mode 100644 index 00000000000..0ffed6b42fe --- /dev/null +++ b/databases/soci/patches/patch-backends_sqlite3_soci-sqlite3.h @@ -0,0 +1,15 @@ +$NetBSD: patch-backends_sqlite3_soci-sqlite3.h,v 1.1 2013/07/05 21:04:45 joerg Exp $ + +sqlite.h is included inside a namespace, so make sure that +the content of stdarg.h is in the default namespace. + +--- backends/sqlite3/soci-sqlite3.h.orig 2013-03-22 00:48:38.000000000 +0000 ++++ backends/sqlite3/soci-sqlite3.h +@@ -23,6 +23,7 @@ + # define SOCI_SQLITE3_DECL + #endif + ++#include <stdarg.h> + #include <vector> + #include "soci-backend.h" + |