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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Tue Feb 1 14:45:21 2005 UTC (14 years, 2 months ago) by corsair
Branch: MAIN
Changes since 1.4: +3 -3 lines
added ~ppc64 to KEYWORDS
(Portage version: 2.0.51-r15)

1 corsair 1.5 # Copyright 1999-2005 Gentoo Foundation
2 liquidx 1.1 # Distributed under the terms of the GNU General Public License v2
3 corsair 1.5 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-1.0.4.ebuild,v 1.4 2004/11/23 17:18:46 liquidx Exp $
4 liquidx 1.1
5     inherit gnome2 eutils
6    
7     DESCRIPTION="Gnome Database Access Library"
8     HOMEPAGE="http://www.gnome-db.org/"
9     LICENSE="GPL-2 LGPL-2"
10    
11     IUSE="odbc postgres mysql ldap firebird freetds sqlite mdb oci8 doc"
12     SLOT="1"
13 corsair 1.5 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~ia64 ~amd64 ~ppc64"
14 liquidx 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 arj 1.3 x86? ( firebird? ( dev-db/firebird ) )
26 liquidx 1.1 freetds? ( >=dev-db/freetds-0.5 )
27 arj 1.2 sqlite? ( =dev-db/sqlite-2* )
28     !ia64? ( mdb? ( >=app-office/mdbtools-0.5 ) )"
29 liquidx 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     cd ${S}
46     # Fix libgda's manual source. See bug #46337.
47     epatch ${FILESDIR}/${PN}-1.0.3-gtkdoc_fixes.patch
48     # Fix gcc 3.4 compilation. See bug #49234
49     epatch ${FILESDIR}/${PN}-1.0.3-gcc3.4.patch
50     # freetds patch (#48611)
51     epatch ${FILESDIR}/${PN}-1.0.4-freetds-0.6x.patch
52 liquidx 1.4 # firebird function reorder (#71708)
53     epatch ${FILESDIR}/${PN}-1.0.4-firebird-provider.patch
54 liquidx 1.1 }
55    
56     src_compile() {
57    
58     local myconf
59    
60     use mysql \
61     && myconf="${myconf} --with-mysql=/usr" \
62     || myconf="${myconf} --without-mysql"
63    
64     use postgres \
65     && myconf="${myconf} --with-postgres=/usr" \
66     || myconf="${myconf} --without-postgres"
67    
68     use odbc \
69     && myconf="${myconf} --with-odbc=/usr" \
70     || myconf="${myconf} --without-odbc"
71    
72     use ldap \
73     && myconf="${myconf} --with-ldap=/usr" \
74     || myconf="${myconf} --without-ldap"
75    
76     use sqlite \
77     && myconf="$myconf --with-sqlite=/usr" \
78     || myconf="$myconf --without-sqlite"
79    
80     use freetds \
81     && myconf="$myconf --with-tds=/usr" \
82     || myconf="$myconf --without-tds"
83    
84     use firebird \
85     && myconf="${myconf} --with-firebird=/usr" \
86     || myconf="${myconf} --without-firebird"
87    
88     use mdb \
89     && myconf="${myconf} --with-mdb=/usr" \
90     || myconf="${myconf} --without-mdb"
91    
92     # not in portage (http://linux.techass.com/projects/xdb/)
93     myconf="${myconf} --without-xbase"
94     myconf="${myconf} --without-msql"
95    
96     # closed source dbs
97     myconf="${myconf} --without-ibmdb2"
98     myconf="${myconf} --without-sybase"
99     use oci8 || myconf="${myconf} --without-oracle"
100    
101     # workaround for readline-4.1 profile - disables building of gda-config-tool
102     if has_version "=sys-libs/readline-4.1*"; then
103     export CONFIG_TOOL_HEADERS="wrong"
104     fi
105    
106     gnome2_src_compile ${myconf}
107    
108     unset CONFIG_TOOL_HEADERS
109    
110     }

  ViewVC Help
Powered by ViewVC 1.1.20