dev-db/libzdb: clean old ebuild
This commit is contained in:
parent
515505c226
commit
0adcab07fa
2 changed files with 0 additions and 96 deletions
|
@ -1,2 +0,0 @@
|
|||
DIST libzdb-3.1.tar.gz 720162 SHA256 0f01abb1b01d1a1f4ab9b55ad3ba445d203fc3b4757abdf53e1d85e2b7b42695 SHA512 7cf24ccf0f0a938955d8b54af2c6eca8a8f700737beafde9e824129f324511e06adbc11a3fdbd6ad6d9b902fdae6f7caab4e5c1c594d2211be314e3a24c697f3 WHIRLPOOL a6c2f713e070aaf4aa60d518db7ed1e7f05c82536c63c4c183e6dd8116ab506941dd6bff967956336b089dc83f69f017e10d3194ff82f1b8bf5808083d85ed40
|
||||
EBUILD libzdb-3.1-r1.ebuild 2031 SHA256 e606c6d67a2a982bab4a289069857319894e2af1bb8e7f0f6785630280e2b6e2 SHA512 23ecde6827a027b56b7b2f67ab5ed9ff43a2db8e97049a51337739ffd7766a583868f1dfc63aa6363aa1ad18483126188dfac3945120eee794fefa7b45aa3abd WHIRLPOOL 2e8189ee4e9684f6ae720e4e6d11e684c486161587e65c399339fc61ca521bda041dea95dd7be4c504fd01d66858f855fabf3c0876b1295fa7a5bf2118519416
|
|
@ -1,94 +0,0 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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 libressl 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? (
|
||||
|| (
|
||||
( !libressl? ( dev-libs/openssl ) )
|
||||
( libressl? ( dev-libs/libressl ) )
|
||||
)
|
||||
)"
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue