/[gentoo-x86]/dev-db/libzdb/libzdb-2.11.1.ebuild
Gentoo

Contents of /dev-db/libzdb/libzdb-2.11.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 9 13:37:40 2013 UTC (22 months, 2 weeks ago) by lordvan
Branch: MAIN
update to new version. fixes Bug #443172 (Thanks Johan)
fixed copyright in 2.10.5

(Portage version: 2.1.11.38/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/libzdb/libzdb-2.10.5.ebuild,v 1.1 2012/09/07 12:25:40 lordvan Exp $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="A thread safe high level multi-database connection pool library"
10 HOMEPAGE="http://www.tildeslash.com/libzdb/"
11 SRC_URI="http://www.tildeslash.com/${PN}/dist/${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE="debug doc mysql postgres +sqlite +sqliteunlock ssl static-libs"
17 REQUIRED_USE=" || ( postgres mysql sqlite )"
18
19 RESTRICT=test
20
21 RDEPEND="mysql? ( virtual/mysql )
22 postgres? ( dev-db/postgresql-base )
23 sqlite? ( >=dev-db/sqlite-3 )
24 sqliteunlock? ( >=dev-db/sqlite-3.6.12[unlock-notify] )
25 ssl? ( dev-libs/openssl )"
26 DEPEND="${RDEPEND}
27 virtual/pkgconfig
28 doc? ( app-doc/doxygen )"
29
30 src_prepare() {
31 sed -i -e "s|&& ./pool||g" test/Makefile.in || die
32 }
33
34 src_configure() {
35 ## TODO: check what --enable-optimized actually does
36 ## TODO: find someone with oracle db to add oci8 support
37 myconf=""
38 if [[ $(gcc-version) < 4.1 ]];then
39 myconf="${myconf} --disable-protected"
40 else
41 myconf="${myconf} --enable-protected"
42 fi
43
44 if ( use sqlite ); then
45 myconf="${myconf} --with-sqlite=${EPREFIX}/usr/"
46 if has_version 'dev-db/sqlite[unlock-notify]'; then
47 myconf="${myconf} --enable-sqliteunlock"
48 fi
49 else
50 myconf="${myconf} --without-sqlite"
51 fi
52
53 if use mysql; then
54 myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config"
55 else
56 myconf="${myconf} --without-mysql"
57 fi
58
59 if use postgres; then
60 myconf="${myconf} --with-postgresql=${EPREFIX}/usr/bin/pg_config"
61 else
62 myconf="${myconf} --without-postgresql"
63 fi
64
65 econf \
66 $(use_enable debug profiling) \
67 $(use_enable static-libs static) \
68 $(use_enable ssl openssl) \
69 --without-oci \
70 ${myconf}
71 }
72
73 src_compile() {
74 default_src_compile
75 if use doc; then
76 emake doc
77 fi
78 }
79
80 src_install() {
81 emake DESTDIR="${D}" install
82
83 # the --disable-static flag only skips .a
84 use static-libs || rm -f "${D}"/usr/lib*/libzdb.la
85
86 dodoc AUTHORS CHANGES README
87 if use doc;then
88 dohtml -r "${S}/doc/api-docs"/*
89 fi
90 }
91
92 src_test() {
93 emake verify
94 }

  ViewVC Help
Powered by ViewVC 1.1.20