/[gentoo-x86]/dev-db/opendbx/opendbx-1.5.0-r1.ebuild
Gentoo

Contents of /dev-db/opendbx/opendbx-1.5.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu May 7 18:28:03 2015 UTC (4 years, 8 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Drop sqlite2 support and rename sqlite3 USE to sqlite (#530176)

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/opendbx/opendbx-1.5.0.ebuild,v 1.6 2015/03/15 18:03:52 ulm Exp $
4
5 EAPI="5"
6
7 inherit flag-o-matic multilib
8
9 MY_PN="lib${PN}"
10 MY_P="${MY_PN}-${PV}"
11
12 DESCRIPTION="OpenDBX - A database abstraction layer"
13 HOMEPAGE="http://www.linuxnetworks.de/doc/index.php/OpenDBX"
14 SRC_URI="http://www.linuxnetworks.de/opendbx/download/${MY_P}.tar.gz"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="~x64-solaris"
19 IUSE="firebird +mysql oracle postgres sqlite"
20 RESTRICT="firebird? ( bindist )"
21
22 DEPEND="mysql? ( virtual/mysql )
23 postgres? ( dev-db/postgresql:* )
24 sqlite? ( dev-db/sqlite:3 )
25 oracle? ( dev-db/oracle-instantclient-basic )
26 firebird? ( dev-db/firebird )"
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}"/${MY_P}
30
31 pkg_setup() {
32 if ! ( use firebird || use mysql || use oracle || use postgres || use sqlite )
33 then
34 ewarn "You should enable at least one of the following USE flags:"
35 ewarn "firebird, mysql, oracle, postgres or sqlite"
36 fi
37
38 if use oracle && [[ ! -d ${ORACLE_HOME} ]]
39 then
40 die "Oracle support requested, but ORACLE_HOME not set to a valid directory!"
41 fi
42
43 use mysql && append-cppflags -I/usr/include/mysql
44 use firebird && append-cppflags -I/opt/firebird/include
45 use oracle && append-ldflags -L"${ORACLE_HOME}"/lib
46 }
47
48 src_configure() {
49 local backends=""
50
51 use firebird && backends="${backends} firebird"
52 use mysql && backends="${backends} mysql"
53 use oracle && backends="${backends} oracle"
54 use postgres && backends="${backends} pgsql"
55 use sqlite && backends="${backends} sqlite3"
56
57 econf --with-backends="${backends}" || die "econf failed"
58 }
59
60 src_compile() {
61 # bug #322221
62 emake -j1 || die "emake failed"
63 }
64
65 src_install() {
66 emake -j1 install DESTDIR="${D}" || die "make install failed"
67 dodoc AUTHORS ChangeLog README
68
69 rm -f "${D}"/usr/$(get_libdir)/opendbx/*.{a,la}
70 }

  ViewVC Help
Powered by ViewVC 1.1.20