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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat May 23 10:23:31 2015 UTC (4 years, 9 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
x86 stable, bug #530176

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

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

  ViewVC Help
Powered by ViewVC 1.1.20