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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jun 20 09:59:11 2015 UTC (3 years, 1 month ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Version bump, fix java detection (#450004 by Juergen Rose and Tom Wijsman (TomWij)), enable vala (#507022 by Markus Moll), fix compilation with format-security (#517610 by Agostino Sarubbo)

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

1 # Copyright 1999-2015 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.2.2.ebuild,v 1.8 2015/04/18 08:08:07 pacho Exp $
4
5 EAPI="5"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="yes"
8 PYTHON_COMPAT=( python2_7 )
9 VALA_MIN_API_VERSION="0.26"
10 VALA_MAX_API_VERSION="0.26" # configure explicitly checks for that version
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 canvas firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres reports sourceview ssl vala"
20 REQUIRED_USE="
21 reports? ( ${PYTHON_REQUIRED_USE} )
22 canvas? ( gtk )
23 graphviz? ( gtk )
24 sourceview? ( gtk )
25 "
26 # firebird license is not GPL compatible
27
28 SLOT="5/4" # subslot = libgda-5.0 soname version
29 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
30
31 RDEPEND="
32 app-text/iso-codes
33 >=dev-libs/glib-2.32:2
34 >=dev-libs/libxml2-2
35 dev-libs/libxslt
36 sys-libs/readline:=
37 sys-libs/ncurses:=
38 berkdb? ( sys-libs/db:* )
39 firebird? ( dev-db/firebird )
40 gnome-keyring? ( app-crypt/libsecret )
41 gtk? (
42 >=x11-libs/gtk+-3.0.0:3
43 canvas? ( x11-libs/goocanvas:2.0= )
44 sourceview? ( x11-libs/gtksourceview:3.0 )
45 graphviz? ( media-gfx/graphviz )
46 )
47 http? ( >=net-libs/libsoup-2.24:2.4 )
48 introspection? ( >=dev-libs/gobject-introspection-1.30:= )
49 json? ( dev-libs/json-glib )
50 ldap? ( net-nds/openldap:= )
51 mdb? ( >app-office/mdbtools-0.5:= )
52 mysql? ( virtual/mysql:= )
53 postgres? ( dev-db/postgresql:= )
54 reports? (
55 ${PYTHON_DEPS}
56 dev-java/fop
57 dev-python/reportlab )
58 ssl? ( dev-libs/openssl:= )
59 >=dev-db/sqlite-3.6.22:3=
60 vala? ( dev-libs/libgee:0.8 )
61 "
62
63 # java dep shouldn't rely on slots, bug #450004
64 DEPEND="${RDEPEND}
65 >=app-text/gnome-doc-utils-0.9
66 app-text/yelp-tools
67 dev-util/gtk-doc-am
68 >=dev-util/intltool-0.40.6
69 virtual/pkgconfig
70 java? ( >=virtual/jdk-1.6 )
71 vala? ( $(vala_depend) )
72 "
73
74 # FIXME: lots of tests failing. Check if they still fail in 5.1.2
75 # firebird support bindist-restricted because it is not GPL compatible
76 RESTRICT="
77 test
78 firebird? ( bindist )
79 "
80
81 pkg_setup() {
82 java-pkg-opt-2_pkg_setup
83 use reports && python-single-r1_pkg_setup
84 }
85
86 src_prepare() {
87 # Fix compilation with -Werror=format-security (from 'master')
88 epatch "${FILESDIR}"/${PN}-5.2.4-format-security.patch
89
90 # Support JRE 1.8 (from Fedora)
91 epatch "${FILESDIR}"/${PN}-5.2.4-jre18.patch
92
93 use berkdb && append-cppflags "-I$(db_includedir)"
94
95 use reports ||
96 sed -e '/SUBDIRS =/ s/trml2html//' \
97 -e '/SUBDIRS =/ s/trml2pdf//' \
98 -i libgda-report/RML/Makefile.{am,in} || die
99
100 # Prevent file collisions with libgda:4
101 epatch "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch"
102 epatch "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch"
103 # Move files with mv (since epatch can't handle rename diffs) and
104 # update pre-generated gtk-doc files (for non-git versions of libgda)
105 local f
106 for f in tools/browser/doc/gda-browser* ; do
107 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
108 done
109 for f in tools/browser/doc/html/gda-browser.devhelp* ; do
110 sed -e 's:name="gda-browser":name="gda-browser-5.0":' \
111 -i ${f} || die "sed ${f} failed"
112 mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed"
113 done
114 for f in control-center/data/*_gda-control-center.png ; do
115 mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} ||
116 die "mv ${f} failed"
117 done
118
119 eautoreconf
120 gnome2_src_prepare
121 java-pkg-opt-2_src_prepare
122 use vala && vala_src_prepare
123 }
124
125 src_configure() {
126 gnome2_src_configure \
127 --with-help \
128 --disable-default-binary \
129 --disable-static \
130 --enable-system-sqlite \
131 $(use_with berkdb bdb /usr) \
132 $(use_with canvas goocanvas) \
133 $(use_with firebird firebird /usr) \
134 $(use_with gnome-keyring libsecret) \
135 $(use_with graphviz) \
136 $(use_with gtk ui) \
137 $(use_with http libsoup) \
138 $(use_enable introspection) \
139 "$(use_with java java $JAVA_HOME)" \
140 $(use_enable json) \
141 $(use_with ldap) \
142 $(use_with mdb mdb /usr) \
143 $(use_with mysql mysql /usr) \
144 $(use_with oci8 oracle) \
145 $(use_with postgres postgres /usr) \
146 $(use_enable ssl crypto) \
147 $(use_with sourceview gtksourceview) \
148 $(use_enable vala) \
149 $(use_enable vala vala-extensions) \
150 $(use_enable vala gda-gi) \
151 $(use_enable vala gdaui-gi) \
152 $(use_enable vala gdaui-vala)
153 }
154
155 pkg_preinst() {
156 gnome2_pkg_preinst
157 java-pkg-opt-2_pkg_preinst
158 }
159
160 src_install() {
161 gnome2_src_install
162 if use reports; then
163 for t in trml2{html,pdf}; do
164 python_scriptinto /usr/share/libgda-5.0/gda_${t}
165 python_doscript libgda-report/RML/${t}/${t}.py
166 done
167 fi
168 }

  ViewVC Help
Powered by ViewVC 1.1.20