diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-01-19 22:38:29 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-01-19 22:38:29 +0100 |
commit | 3819b9dc7cfa46f5ba7dfcc4b035624a60b10726 (patch) | |
tree | 929cd2d6692c8909b96796fb844944ba1df1f755 /dev-db | |
parent | games-action/openclonk: version bump (diff) | |
download | gentoo-3819b9dc7cfa46f5ba7dfcc4b035624a60b10726.tar.gz gentoo-3819b9dc7cfa46f5ba7dfcc4b035624a60b10726.tar.bz2 gentoo-3819b9dc7cfa46f5ba7dfcc4b035624a60b10726.zip |
dev-db/libzdb: Version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/libzdb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/libzdb/libzdb-3.1.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-db/libzdb/Manifest b/dev-db/libzdb/Manifest index ff9cff8735c5..9a149a0f5453 100644 --- a/dev-db/libzdb/Manifest +++ b/dev-db/libzdb/Manifest @@ -3,3 +3,4 @@ DIST libzdb-2.11.2.tar.gz 603149 SHA256 23d8cc201f4d4417963a440005bf3a93fc201003 DIST libzdb-2.11.3.tar.gz 604720 SHA256 3ad2ffa8533b8b4524104a66345659235cec56211664906eba83134e3b305028 SHA512 89305e5ecfc6a630936268f2b70f417c9a66bcc37063f4d87fcc0d1e6b106f0fec0b299da9c7375087e77de07abf3ae81fb48027fd741f150cffef7027930c66 WHIRLPOOL 449924b519cd84904b72aa9d5a3557489f0c0c62d024ee2cd23b978ea26b2323ee58faa0a55388c48de5bfadb2a5d6a6cdbe9ae5abe69d7190a65329e267689f DIST libzdb-2.12.tar.gz 599160 SHA256 37e6bd3d8254be7d8fe1419cf0500b9006783d0e3544eeeffc5e6954cbcd07d4 SHA512 d2fbf7e0d7a8f37f8ce3404a0bf249165daafb54dfff31e6c7cea964b8360c1322bcd8cdc97a0ec8fec0a3be5bbe4f1690cb36a956bbcbea7b6a795655089f6f WHIRLPOOL 06449cf801f062dbbd322f95f80027b09f33b6e8a514638988ad33b47ef8d44a83fa31a21b1e561883bf487dfbd0c4196f04bb73ed62ff9924feccac7e9291ff DIST libzdb-3.0.tar.gz 700284 SHA256 e334bcb9ca1410e863634a164e3b1b5784018eb6e90b6c2b527780fc29a123c8 SHA512 ce29b0b381695b874627c38a12fe808179ed74a07898fce10bbf7db0279256192eba377a89c9daaf3c6981e29aa67f95e0b21615d9a94c36b0e2e90c9ce6e12d WHIRLPOOL a4efb05a761cf8a5dfee390910c0dbdb5e0256e5e9aefd0d2d3ea510eca31435607d27ed03ebc99f80bef6c9b7498a69aec36c853327612605f397c46491162b +DIST libzdb-3.1.tar.gz 720162 SHA256 0f01abb1b01d1a1f4ab9b55ad3ba445d203fc3b4757abdf53e1d85e2b7b42695 SHA512 7cf24ccf0f0a938955d8b54af2c6eca8a8f700737beafde9e824129f324511e06adbc11a3fdbd6ad6d9b902fdae6f7caab4e5c1c594d2211be314e3a24c697f3 WHIRLPOOL a6c2f713e070aaf4aa60d518db7ed1e7f05c82536c63c4c183e6dd8116ab506941dd6bff967956336b089dc83f69f017e10d3194ff82f1b8bf5808083d85ed40 diff --git a/dev-db/libzdb/libzdb-3.1.ebuild b/dev-db/libzdb/libzdb-3.1.ebuild new file mode 100644 index 000000000000..36c89c268423 --- /dev/null +++ b/dev-db/libzdb/libzdb-3.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="A thread safe high level multi-database connection pool library" +HOMEPAGE="http://www.tildeslash.com/libzdb/" +SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc mysql postgres +sqlite ssl static-libs" +REQUIRED_USE=" || ( postgres mysql sqlite )" + +RESTRICT=test + +RDEPEND="mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] ) + ssl? ( dev-libs/openssl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i -e "s|&& ./pool||g" test/Makefile.in || die +} + +src_configure() { + ## TODO: check what --enable-optimized actually does + ## TODO: find someone with oracle db to add oci8 support + myconf="" + if [[ $(gcc-version) < 4.1 ]];then + myconf="${myconf} --disable-protected" + else + myconf="${myconf} --enable-protected" + fi + + if use sqlite; then + myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ --enable-sqliteunlock" + else + myconf="${myconf} --without-sqlite" + fi + + if use mysql; then + myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config" + else + myconf="${myconf} --without-mysql" + fi + + if use postgres; then + myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config" + else + myconf="${myconf} --without-postgresql" + fi + + econf \ + $(use_enable debug profiling) \ + $(use_enable static-libs static) \ + $(use_enable ssl openssl) \ + --without-oci \ + ${myconf} +} + +src_compile() { + default_src_compile + if use doc; then + emake doc + fi +} + +src_install() { + emake DESTDIR="${D}" install + + # the --disable-static flag only skips .a + use static-libs || rm -f "${D}"/usr/lib*/libzdb.la + + dodoc AUTHORS CHANGES README + if use doc;then + dohtml -r "${S}/doc/api-docs"/* + fi +} + +src_test() { + emake verify +} |