/[gentoo-x86]/gnome-extra/libgda/libgda-1.0.1.ebuild
Gentoo

Contents of /gnome-extra/libgda/libgda-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Sun Jan 25 13:13:57 2004 UTC (15 years, 4 months ago) by obz
Branch: MAIN
Changes since 1.7: +3 -3 lines
New version. Have had to put mdb dependency behind a not-alpha as mdbtools arent available on alpha. _Please_ use repoman to check for these things

1 obz 1.8 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 obz 1.1 # Distributed under the terms of the GNU General Public License v2
3 obz 1.8 # $Header: /home/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-1.0.1.ebuild,v 1.7 2004/01/17 02:25:17 darkspecter Exp $
4 obz 1.1
5     IUSE="odbc postgres mysql ldap firebird freetds sqlite mdb oci8 doc"
6    
7     inherit gnome2
8    
9     DESCRIPTION="Gnome Database Access Library"
10     HOMEPAGE="http://www.gnome-db.org/"
11     SLOT="1"
12     LICENSE="GPL-2 LGPL-2"
13 darkspecter 1.6 KEYWORDS="x86 ppc ~sparc ~alpha hppa"
14 obz 1.1
15     RDEPEND=">=dev-libs/glib-2.0
16     >=dev-libs/libxml2-2.0
17     >=dev-libs/libxslt-1.0.9
18     >=gnome-base/gnome-vfs-2.0
19     dev-libs/popt
20     sys-libs/ncurses
21     mysql? ( >=dev-db/mysql-3.23.51 )
22     postgres? ( >=dev-db/postgresql-7.2.1 )
23     odbc? ( >=dev-db/unixODBC-2.0.6 )
24     ldap? ( >=net-nds/openldap-2.0.25 )
25 darkspecter 1.7 !ppc? ( firebird? ( >=dev-db/firebird-1.0 ) )
26 obz 1.1 freetds? ( >=dev-db/freetds-0.5 )
27     sqlite? ( >=dev-db/sqlite-2.4.2 )
28 obz 1.8 !alpha? ( mdb? ( >=app-office/mdbtools-0.5 ) )"
29 obz 1.1
30     DEPEND=">=dev-util/pkgconfig-0.8
31     >=dev-util/intltool-0.22
32     >=sys-devel/gettext-0.11
33     app-text/scrollkeeper
34     doc? ( dev-util/gtk-doc )
35     ${RDEPEND}"
36    
37     DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README"
38    
39     # problems with parallel builds
40     MAKEOPTS="${MAKEOPTS} -j1"
41    
42     src_unpack() {
43     unpack ${A}
44     gnome2_omf_fix ${S}/doc/Makefile.in
45     }
46    
47     src_compile() {
48    
49     local myconf
50    
51     use mysql \
52     && myconf="${myconf} --with-mysql=/usr" \
53     || myconf="${myconf} --without-mysql"
54    
55     use postgres \
56     && myconf="${myconf} --with-postgres=/usr" \
57     || myconf="${myconf} --without-postgres"
58    
59     use odbc \
60     && myconf="${myconf} --with-odbc=/usr" \
61     || myconf="${myconf} --without-odbc"
62    
63     use ldap \
64     && myconf="${myconf} --with-ldap=/usr" \
65     || myconf="${myconf} --without-ldap"
66    
67     use sqlite \
68     && myconf="$myconf --with-sqlite=/usr" \
69     || myconf="$myconf --without-sqlite"
70    
71     use freetds \
72     && myconf="$myconf --with-tds=/usr" \
73     || myconf="$myconf --without-tds"
74    
75     use firebird \
76     && myconf="${myconf} --with-firebird=/usr" \
77     || myconf="${myconf} --without-firebird"
78    
79     use mdb \
80     && myconf="${myconf} --with-mdb=/usr" \
81     || myconf="${myconf} --without-mdb"
82    
83     # not in portage (http://linux.techass.com/projects/xdb/)
84     myconf="${myconf} --without-xbase"
85     myconf="${myconf} --without-msql"
86    
87     # closed source dbs
88     myconf="${myconf} --without-ibmdb2"
89     myconf="${myconf} --without-sybase"
90     use oci8 || myconf="${myconf} --without-oracle"
91    
92     # workaround for readline-4.1 profile - disables building of gda-config-tool
93     if has_version "=sys-libs/readline-4.1*"; then
94     export CONFIG_TOOL_HEADERS="wrong"
95     fi
96    
97     gnome2_src_compile ${myconf}
98    
99     unset CONFIG_TOOL_HEADERS
100    
101     }

  ViewVC Help
Powered by ViewVC 1.1.20