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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Apr 26 20:04:01 2014 UTC (4 years, 11 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
drop old

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgda/libgda-5.0.4.ebuild,v 1.4 2013/12/08 18:54:26 pacho Exp $
4
5 EAPI="5"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="yes"
8 PYTHON_COMPAT=( python{2_6,2_7} )
9 #VALA_MIN_API_VERSION="0.16"
10 #VALA_USE_DEPEND="vapigen"
11 # FIXME: vala support fails to build
12 # https://bugzilla.gnome.org/show_bug.cgi?id=701752
13
14 inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python-single-r1 #vala
15
16 DESCRIPTION="GNOME database access library"
17 HOMEPAGE="http://www.gnome-db.org/"
18 LICENSE="GPL-2+ LGPL-2+"
19
20 IUSE="berkdb bindist canvas firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres reports sourceview ssl" # vala"
21 REQUIRED_USE="
22 reports? ( ${PYTHON_REQUIRED_USE} )
23 canvas? ( gtk )
24 firebird? ( !bindist )
25 graphviz? ( gtk )
26 sourceview? ( gtk )
27 "
28 # firebird license is not GPL compatible
29
30 SLOT="5/4" # subslot = libgda-5.0 soname version
31 KEYWORDS="~alpha amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
32
33 RDEPEND="
34 app-text/iso-codes
35 >=dev-libs/glib-2.28.0:2
36 >=dev-libs/libxml2-2
37 dev-libs/libxslt
38 sys-libs/readline:=
39 sys-libs/ncurses:=
40 berkdb? ( sys-libs/db )
41 !bindist? ( firebird? ( dev-db/firebird ) )
42 gtk? (
43 >=x11-libs/gtk+-3.0.0:3
44 canvas? ( x11-libs/goocanvas:2.0= )
45 sourceview? ( x11-libs/gtksourceview:3.0 )
46 graphviz? ( media-gfx/graphviz )
47 )
48 gnome-keyring? ( gnome-base/libgnome-keyring )
49 http? ( >=net-libs/libsoup-2.24:2.4 )
50 introspection? ( >=dev-libs/gobject-introspection-0.6.5 )
51 json? ( dev-libs/json-glib )
52 ldap? ( net-nds/openldap:= )
53 mdb? ( >app-office/mdbtools-0.5:= )
54 mysql? ( virtual/mysql:= )
55 postgres? ( dev-db/postgresql-base:= )
56 reports? (
57 ${PYTHON_DEPS}
58 dev-java/fop
59 dev-python/reportlab )
60 ssl? ( dev-libs/openssl:= )
61 >=dev-db/sqlite-3.6.22:3=
62 "
63 DEPEND="${RDEPEND}
64 >=app-text/gnome-doc-utils-0.9
65 dev-util/gtk-doc-am
66 >=dev-util/intltool-0.35.5
67 virtual/pkgconfig
68 java? ( virtual/jdk:1.6 )
69 "
70 # vala? ( $(vala_depend) )
71
72 # FIXME: lots of tests failing. Check if they still fail in 5.1.2
73 #RESTRICT="test"
74
75 pkg_setup() {
76 java-pkg-opt-2_pkg_setup
77 use reports && python-single-r1_pkg_setup
78 }
79
80 src_prepare() {
81 use berkdb && append-cppflags "-I$(db_includedir)"
82
83 use reports ||
84 sed -e '/SUBDIRS =/ s/trml2html//' \
85 -e '/SUBDIRS =/ s/trml2pdf//' \
86 -i libgda-report/RML/Makefile.{am,in} || die
87
88 # Prevent file collisions with libgda:4
89 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-help-collision.patch"
90 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
91 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
92
93 # Move files with mv (since epatch can't handle rename diffs) and
94 # update pre-generated gtk-doc files (for non-git versions of libgda)
95 local f
96 for f in tools/browser/doc/gda-browser* ; do
97 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
98 done
99 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
100 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
101 -i ${f} || die "sed ${f} failed"
102 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
103 done
104 for f in control-center/data/*_gda-control-center.png ; do
105 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
106 die "mv ${f} failed"
107 done
108
109 eautoreconf
110 java-pkg-opt-2_src_prepare
111 gnome2_src_prepare
112 # use vala && vala_src_prepare
113 }
114
115 src_configure() {
116 use oci8 || G2CONF="${G2CONF} --without-oracle"
117 gnome2_src_configure \
118 --disable-scrollkeeper \
119 --disable-static \
120 --enable-system-sqlite \
121 $(use_with berkdb bdb /usr) \
122 $(use_with canvas goocanvas) \
123 $(use_with firebird firebird /usr) \
124 $(use_with gnome-keyring) \
125 $(use_with graphviz) \
126 $(use_with gtk ui) \
127 $(use_with http libsoup) \
128 $(use_enable introspection) \
129 $(use_with java java $JAVA_HOME) \
130 $(use_enable json) \
131 $(use_with ldap) \
132 $(use_with mdb mdb /usr) \
133 $(use_with mysql mysql /usr) \
134 $(use_with postgres postgres /usr) \
135 $(use_enable ssl crypto) \
136 $(use_with sourceview gtksourceview) \
137 --disable-vala \
138 --disable-default-binary
139 }
140
141 src_install() {
142 gnome2_src_install
143 if use reports; then
144 for t in trml2{html,pdf}; do
145 python_scriptinto /usr/share/libgda-5.0/gda_${t}
146 python_doscript libgda-report/RML/${t}/${t}.py
147 done
148 fi
149 }

  ViewVC Help
Powered by ViewVC 1.1.20