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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Feb 9 13:00:05 2014 UTC (5 years, 2 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, drop old

(Portage version: 2.2.8-r1/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.1.2.ebuild,v 1.1 2013/07/28 21:30:30 tetromino 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.18"
10 #VALA_MAX_API_VERSION="0.18" # configure explicitly checks for 0.18
11 #VALA_USE_DEPEND="vapigen"
12
13 inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python-single-r1 # vala
14
15 DESCRIPTION="GNOME database access library"
16 HOMEPAGE="http://www.gnome-db.org/"
17 LICENSE="GPL-2+ LGPL-2+"
18
19 IUSE="berkdb bindist canvas firebird gtk graphviz http +introspection json ldap libsecret mdb mysql oci8 postgres reports sourceview ssl" # vala
20 REQUIRED_USE="
21 reports? ( ${PYTHON_REQUIRED_USE} )
22 canvas? ( gtk )
23 firebird? ( !bindist )
24 graphviz? ( gtk )
25 sourceview? ( gtk )"
26 # firebird license is not GPL compatible
27 SLOT="5/4" # subslot = libgda-5.0 soname version
28 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
29
30 RDEPEND="
31 app-text/iso-codes
32 >=dev-libs/glib-2.32:2
33 >=dev-libs/libxml2-2
34 dev-libs/libxslt
35 sys-libs/readline:=
36 sys-libs/ncurses:=
37 berkdb? ( sys-libs/db )
38 !bindist? ( firebird? ( dev-db/firebird ) )
39 gtk? (
40 >=x11-libs/gtk+-3.0.0:3
41 canvas? ( x11-libs/goocanvas:2.0= )
42 sourceview? ( x11-libs/gtksourceview:3.0 )
43 graphviz? ( media-gfx/graphviz )
44 )
45 http? ( >=net-libs/libsoup-2.24:2.4 )
46 introspection? ( >=dev-libs/gobject-introspection-1.30 )
47 json? ( dev-libs/json-glib )
48 ldap? ( net-nds/openldap:= )
49 libsecret? ( app-crypt/libsecret )
50 mdb? ( >app-office/mdbtools-0.5:= )
51 mysql? ( virtual/mysql:= )
52 postgres? ( dev-db/postgresql-base:= )
53 reports? (
54 ${PYTHON_DEPS}
55 dev-java/fop
56 dev-python/reportlab )
57 ssl? ( dev-libs/openssl:= )
58 >=dev-db/sqlite-3.6.22:3=
59 "
60 # vala? ( dev-libs/libgee:0.8 )
61 DEPEND="${RDEPEND}
62 >=app-text/gnome-doc-utils-0.9
63 dev-util/gtk-doc-am
64 >=dev-util/intltool-0.40.6
65 virtual/pkgconfig
66 java? ( virtual/jdk:1.6 )"
67 # vala? ( $(vala_depend) )
68
69 # FIXME: lots of tests failing. Check if they still fail in 5.1.2
70 RESTRICT="test"
71
72 pkg_setup() {
73 java-pkg-opt-2_pkg_setup
74 use reports && python-single-r1_pkg_setup
75 }
76
77 src_prepare() {
78 use berkdb && append-cppflags "-I$(db_includedir)"
79
80 use reports ||
81 sed -e '/SUBDIRS =/ s/trml2html//' \
82 -e '/SUBDIRS =/ s/trml2pdf//' \
83 -i libgda-report/RML/Makefile.{am,in} || die
84
85 # fixed in 5.1.3
86 epatch "${FILESDIR}/${P}-graphviz.patch"
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 # Move files with mv (since epatch can't handle rename diffs) and
93 # update pre-generated gtk-doc files (for non-git versions of libgda)
94 local f
95 for f in tools/browser/doc/gda-browser* ; do
96 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
97 done
98 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
99 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
100 -i ${f} || die "sed ${f} failed"
101 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
102 done
103 for f in control-center/data/*_gda-control-center.png ; do
104 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
105 die "mv ${f} failed"
106 done
107
108 eautoreconf
109 gnome2_src_prepare
110 java-pkg-opt-2_src_prepare
111 # use vala && vala_src_prepare
112 }
113
114 src_configure() {
115 gnome2_src_configure \
116 --disable-scrollkeeper \
117 --disable-static \
118 --enable-system-sqlite \
119 $(use_with berkdb bdb /usr) \
120 $(use_with canvas goocanvas) \
121 $(use_with firebird firebird /usr) \
122 $(use_with graphviz) \
123 $(use_with gtk ui) \
124 $(use_with http libsoup) \
125 $(use_enable introspection) \
126 "$(use_with java java $JAVA_HOME)" \
127 $(use_enable json) \
128 $(use_with ldap) \
129 $(use_with libsecret) \
130 $(use_with mdb mdb /usr) \
131 $(use_with mysql mysql /usr) \
132 $(use_with oci8 oracle) \
133 $(use_with postgres postgres /usr) \
134 $(use_enable ssl crypto) \
135 $(use_with sourceview gtksourceview) \
136 --disable-default-binary \
137 --disable-vala
138 # vala bindings fail to build
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