1 |
commit: 802021a945e43c9400779336b0f6d4c0b245531e |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 28 16:20:19 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 28 16:22:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802021a9 |
7 |
|
8 |
gnome-extra/libgda: bump to 5.2.8, compatible with openssl-1.1 |
9 |
|
10 |
Also fix JRE 1.8 patch to not be reverted by the eautoreconf - however no |
11 |
clue if it actually works. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/666156 |
14 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.52, Repoman-2.3.11 |
16 |
|
17 |
gnome-extra/libgda/Manifest | 1 + |
18 |
gnome-extra/libgda/libgda-5.2.8.ebuild | 166 +++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 167 insertions(+) |
20 |
|
21 |
diff --git a/gnome-extra/libgda/Manifest b/gnome-extra/libgda/Manifest |
22 |
index 365859e91e4..ab2677fd061 100644 |
23 |
--- a/gnome-extra/libgda/Manifest |
24 |
+++ b/gnome-extra/libgda/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST libgda-5.2.4.tar.xz 12320228 BLAKE2B 567b82934e9fe05abdd7405f17c3e8db1a335698236aed069c66037bb387f34adfc41eae7663d8cedb1ba97d2b54afda15280d745c574e5b28cb1856ff8376b1 SHA512 90449795a64136389c26ee4bbdbd5c1330d441e6c11ff15eff83d0ee39c4ce3abd686222aaa468995496ba1417c0fbc963898107f1806d80648cdc939d3c87cc |
27 |
+DIST libgda-5.2.8.tar.xz 12506208 BLAKE2B 7174aa862f04ec6c73fe98560914ee307afe75b9713adad70fa7dedf97fd4ddb79c98ad1e9a8919218f7453014d8e71e42730e168fae7c6ca0dc58ae99b0558e SHA512 6512d08df072dfc10837b71b2369ab538fa8bf0cdac51ecbb738a138f5b765f030fc7a88b14232eaab2724af8e749898da146bb63969983d3bcfeb11bc22aece |
28 |
|
29 |
diff --git a/gnome-extra/libgda/libgda-5.2.8.ebuild b/gnome-extra/libgda/libgda-5.2.8.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..1b78dd77194 |
32 |
--- /dev/null |
33 |
+++ b/gnome-extra/libgda/libgda-5.2.8.ebuild |
34 |
@@ -0,0 +1,166 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+GNOME2_LA_PUNT="yes" |
40 |
+GNOME2_EAUTORECONF="yes" |
41 |
+PYTHON_COMPAT=( python2_7 ) |
42 |
+VALA_USE_DEPEND="vapigen" |
43 |
+ |
44 |
+inherit db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python-single-r1 vala |
45 |
+ |
46 |
+DESCRIPTION="GNOME database access library" |
47 |
+HOMEPAGE="http://www.gnome-db.org/" |
48 |
+LICENSE="GPL-2+ LGPL-2+" |
49 |
+ |
50 |
+IUSE="berkdb canvas debug firebird gnome-keyring gtk graphviz http +introspection json ldap mdb mysql oci8 postgres reports sourceview ssl vala" |
51 |
+REQUIRED_USE=" |
52 |
+ reports? ( ${PYTHON_REQUIRED_USE} ) |
53 |
+ canvas? ( gtk ) |
54 |
+ graphviz? ( gtk ) |
55 |
+ sourceview? ( gtk ) |
56 |
+ vala? ( introspection ) |
57 |
+" |
58 |
+# firebird license is not GPL compatible |
59 |
+ |
60 |
+SLOT="5/4" # subslot = libgda-5.0 soname version |
61 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ app-text/iso-codes |
65 |
+ >=dev-libs/glib-2.32:2 |
66 |
+ >=dev-libs/libxml2-2 |
67 |
+ dev-libs/libxslt |
68 |
+ sys-libs/readline:0= |
69 |
+ sys-libs/ncurses:0= |
70 |
+ berkdb? ( sys-libs/db:* ) |
71 |
+ firebird? ( dev-db/firebird ) |
72 |
+ gnome-keyring? ( app-crypt/libsecret ) |
73 |
+ gtk? ( |
74 |
+ >=x11-libs/gtk+-3.0.0:3 |
75 |
+ canvas? ( x11-libs/goocanvas:2.0= ) |
76 |
+ sourceview? ( x11-libs/gtksourceview:3.0 ) |
77 |
+ graphviz? ( media-gfx/graphviz ) |
78 |
+ ) |
79 |
+ http? ( >=net-libs/libsoup-2.24:2.4 ) |
80 |
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= ) |
81 |
+ json? ( dev-libs/json-glib ) |
82 |
+ ldap? ( net-nds/openldap:= ) |
83 |
+ mdb? ( >app-office/mdbtools-0.5:= ) |
84 |
+ mysql? ( virtual/mysql:= ) |
85 |
+ postgres? ( dev-db/postgresql:= ) |
86 |
+ reports? ( |
87 |
+ ${PYTHON_DEPS} |
88 |
+ dev-java/fop |
89 |
+ dev-python/reportlab ) |
90 |
+ ssl? ( dev-libs/openssl:0= ) |
91 |
+ >=dev-db/sqlite-3.10.2:3= |
92 |
+ vala? ( dev-libs/libgee:0.8 ) |
93 |
+" |
94 |
+ |
95 |
+# java dep shouldn't rely on slots, bug #450004 |
96 |
+DEPEND="${RDEPEND} |
97 |
+ >=app-text/gnome-doc-utils-0.9 |
98 |
+ app-text/yelp-tools |
99 |
+ dev-util/glib-utils |
100 |
+ dev-util/gtk-doc-am |
101 |
+ >=dev-util/intltool-0.40.6 |
102 |
+ virtual/pkgconfig |
103 |
+ java? ( >=virtual/jdk-1.6 ) |
104 |
+ vala? ( $(vala_depend) ) |
105 |
+" |
106 |
+ |
107 |
+# FIXME: lots of tests failing. Check if they still fail in 5.1.2 |
108 |
+# firebird support bindist-restricted because it is not GPL compatible |
109 |
+RESTRICT=" |
110 |
+ test |
111 |
+ firebird? ( bindist ) |
112 |
+" |
113 |
+ |
114 |
+pkg_setup() { |
115 |
+ java-pkg-opt-2_pkg_setup |
116 |
+ use reports && python-single-r1_pkg_setup |
117 |
+} |
118 |
+ |
119 |
+src_prepare() { |
120 |
+ # Fix compilation with -Werror=format-security (from 'master') |
121 |
+ eapply "${FILESDIR}"/${PN}-5.2.4-format-security.patch |
122 |
+ |
123 |
+ use berkdb && append-cppflags "-I$(db_includedir)" |
124 |
+ |
125 |
+ use reports || |
126 |
+ sed -e '/SUBDIRS =/ s/trml2html//' \ |
127 |
+ -e '/SUBDIRS =/ s/trml2pdf//' \ |
128 |
+ -i libgda-report/RML/Makefile.{am,in} || die |
129 |
+ |
130 |
+ # Prevent file collisions with libgda:4 |
131 |
+ eapply "${FILESDIR}/${PN}-4.99.1-gda-browser-doc-collision.patch" |
132 |
+ eapply "${FILESDIR}/${PN}-4.99.1-control-center-icon-collision.patch" |
133 |
+ # Move files with mv (since epatch can't handle rename diffs) and |
134 |
+ # update pre-generated gtk-doc files (for non-git versions of libgda) |
135 |
+ local f |
136 |
+ for f in tools/browser/doc/gda-browser* ; do |
137 |
+ mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed" |
138 |
+ done |
139 |
+ for f in tools/browser/doc/html/gda-browser.devhelp* ; do |
140 |
+ sed -e 's:name="gda-browser":name="gda-browser-5.0":' \ |
141 |
+ -i ${f} || die "sed ${f} failed" |
142 |
+ mv ${f} ${f/gda-browser/gda-browser-5.0} || die "mv ${f} failed" |
143 |
+ done |
144 |
+ for f in control-center/data/*_gda-control-center.png ; do |
145 |
+ mv ${f} ${f/_gda-control-center.png/_gda-control-center-5.0.png} || |
146 |
+ die "mv ${f} failed" |
147 |
+ done |
148 |
+ |
149 |
+ gnome2_src_prepare |
150 |
+ java-pkg-opt-2_src_prepare |
151 |
+ use vala && vala_src_prepare |
152 |
+ |
153 |
+ # Support JRE 1.8 (from Fedora) - patches configure, so applied AFTER gnome2_src_prepare runs eautoreconf |
154 |
+ eapply "${FILESDIR}"/${PN}-5.2.4-jre18.patch |
155 |
+ |
156 |
+} |
157 |
+ |
158 |
+src_configure() { |
159 |
+ # Upstream broken configure handling for UI library introspection and vala bindings if passing a choice with use_enable - https://gitlab.gnome.org/GNOME/libgda/issues/158 |
160 |
+ # But if we don't pass an explicit choice, it behaves as we need (only enable them if --enable-ui AND the appropriate --enable-introspection or --enable-vala) |
161 |
+ gnome2_src_configure \ |
162 |
+ --with-help \ |
163 |
+ --disable-default-binary \ |
164 |
+ --disable-static \ |
165 |
+ --enable-system-sqlite \ |
166 |
+ $(use_with berkdb bdb /usr) \ |
167 |
+ $(use_with canvas goocanvas) \ |
168 |
+ $(use_enable debug) \ |
169 |
+ $(use_with firebird firebird /usr) \ |
170 |
+ $(use_with gnome-keyring libsecret) \ |
171 |
+ $(use_with graphviz) \ |
172 |
+ $(use_with gtk ui) \ |
173 |
+ $(use_with http libsoup) \ |
174 |
+ $(use_enable introspection) \ |
175 |
+ "$(use_with java java $JAVA_HOME)" \ |
176 |
+ $(use_enable json) \ |
177 |
+ $(use_with ldap) \ |
178 |
+ $(use_with mdb mdb /usr) \ |
179 |
+ $(use_with mysql mysql /usr) \ |
180 |
+ $(use_with oci8 oracle) \ |
181 |
+ $(use_with postgres postgres /usr) \ |
182 |
+ $(use_enable ssl crypto) \ |
183 |
+ $(use_with sourceview gtksourceview) \ |
184 |
+ $(use_enable vala) |
185 |
+} |
186 |
+ |
187 |
+pkg_preinst() { |
188 |
+ gnome2_pkg_preinst |
189 |
+ java-pkg-opt-2_pkg_preinst |
190 |
+} |
191 |
+ |
192 |
+src_install() { |
193 |
+ gnome2_src_install |
194 |
+ if use reports; then |
195 |
+ for t in trml2{html,pdf}; do |
196 |
+ python_scriptinto /usr/share/libgda-5.0/gda_${t} |
197 |
+ python_doscript libgda-report/RML/${t}/${t}.py |
198 |
+ done |
199 |
+ fi |
200 |
+} |