Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/libgda/
Date: Mon, 11 Feb 2019 18:25:25
Message-Id: 1549909501.b02183ab8fc017f9f800ad3c455e59e583257af8.grknight@gentoo
1 commit: b02183ab8fc017f9f800ad3c455e59e583257af8
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 11 18:25:01 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 11 18:25:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b02183ab
7
8 gnome-extra/libgda: Revbump for mysql dependency change
9
10 Non-maintainer commit
11
12 Ack-by: leio <AT> gentoo.org
13 Bug: https://bugs.gentoo.org/665902
14 Package-Manager: Portage-2.3.59, Repoman-2.3.12
15 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
16
17 ...{libgda-5.2.8.ebuild => libgda-5.2.4-r3.ebuild} | 45 ++++++++++++++--------
18 ...{libgda-5.2.8.ebuild => libgda-5.2.8-r1.ebuild} | 4 +-
19 2 files changed, 31 insertions(+), 18 deletions(-)
20
21 diff --git a/gnome-extra/libgda/libgda-5.2.8.ebuild b/gnome-extra/libgda/libgda-5.2.4-r3.ebuild
22 similarity index 83%
23 copy from gnome-extra/libgda/libgda-5.2.8.ebuild
24 copy to gnome-extra/libgda/libgda-5.2.4-r3.ebuild
25 index 6570bb39df7..17ea3fb66a1 100644
26 --- a/gnome-extra/libgda/libgda-5.2.8.ebuild
27 +++ b/gnome-extra/libgda/libgda-5.2.4-r3.ebuild
28 @@ -1,13 +1,12 @@
29 -# Copyright 1999-2018 Gentoo Authors
30 +# Copyright 1999-2019 Gentoo Authors
31 # Distributed under the terms of the GNU General Public License v2
32
33 EAPI=6
34 GNOME2_LA_PUNT="yes"
35 -GNOME2_EAUTORECONF="yes"
36 PYTHON_COMPAT=( python2_7 )
37 VALA_USE_DEPEND="vapigen"
38
39 -inherit db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python-single-r1 vala
40 +inherit autotools db-use eutils flag-o-matic gnome2 java-pkg-opt-2 python-single-r1 vala
41
42 DESCRIPTION="GNOME database access library"
43 HOMEPAGE="http://www.gnome-db.org/"
44 @@ -47,21 +46,19 @@ RDEPEND="
45 json? ( dev-libs/json-glib )
46 ldap? ( net-nds/openldap:= )
47 mdb? ( >app-office/mdbtools-0.5:= )
48 - mysql? ( virtual/mysql:= )
49 + mysql? ( dev-db/mysql-connector-c:0= )
50 postgres? ( dev-db/postgresql:= )
51 reports? (
52 ${PYTHON_DEPS}
53 dev-java/fop
54 dev-python/reportlab )
55 - ssl? ( dev-libs/openssl:0= )
56 - >=dev-db/sqlite-3.10.2:3=
57 + ssl? ( <dev-libs/openssl-1.1:0= )
58 + >=dev-db/sqlite-3.6.22:3=
59 vala? ( dev-libs/libgee:0.8 )
60 "
61
62 # java dep shouldn't rely on slots, bug #450004
63 -# TODO: libgee shouldn't be needed at build with USE=-vala, but needs build system fixes - bug 674066
64 DEPEND="${RDEPEND}
65 - dev-libs/libgee:0.8
66 >=app-text/gnome-doc-utils-0.9
67 app-text/yelp-tools
68 dev-util/glib-utils
69 @@ -88,6 +85,13 @@ src_prepare() {
70 # Fix compilation with -Werror=format-security (from 'master')
71 eapply "${FILESDIR}"/${PN}-5.2.4-format-security.patch
72
73 + # Support JRE 1.8 (from Fedora)
74 + eapply "${FILESDIR}"/${PN}-5.2.4-jre18.patch
75 +
76 + # Fix vala test,
77 + # https://bugzilla.gnome.org/show_bug.cgi?id=761424
78 + eapply "${FILESDIR}"/${PN}-5.2.4-vala-check.patch
79 +
80 use berkdb && append-cppflags "-I$(db_includedir)"
81
82 use reports ||
83 @@ -114,18 +118,25 @@ src_prepare() {
84 die "mv ${f} failed"
85 done
86
87 + eautoreconf
88 gnome2_src_prepare
89 java-pkg-opt-2_src_prepare
90 use vala && vala_src_prepare
91 -
92 - # Support JRE 1.8 (from Fedora) - patches configure, so applied AFTER gnome2_src_prepare runs eautoreconf
93 - eapply "${FILESDIR}"/${PN}-5.2.4-jre18.patch
94 -
95 }
96
97 src_configure() {
98 - # 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
99 - # 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)
100 + local myconf=( )
101 + if use introspection ; then
102 + myconf+=( $(use_enable gtk gdaui-gi) )
103 + else
104 + myconf+=( --disable-gdaui-gi )
105 + fi
106 + if use vala ; then
107 + myconf+=( $(use_enable gtk gdaui-vala) )
108 + else
109 + myconf+=( --disable-gdaui-vala )
110 + fi
111 +
112 gnome2_src_configure \
113 --with-help \
114 --disable-default-binary \
115 @@ -140,17 +151,19 @@ src_configure() {
116 $(use_with gtk ui) \
117 $(use_with http libsoup) \
118 $(use_enable introspection) \
119 + $(use_enable introspection gda-gi) \
120 "$(use_with java java $JAVA_HOME)" \
121 $(use_enable json) \
122 $(use_with ldap) \
123 - --with-ldap-libdir-name="$(get_libdir)" \
124 $(use_with mdb mdb /usr) \
125 $(use_with mysql mysql /usr) \
126 $(use_with oci8 oracle) \
127 $(use_with postgres postgres /usr) \
128 $(use_enable ssl crypto) \
129 $(use_with sourceview gtksourceview) \
130 - $(use_enable vala)
131 + $(use_enable vala) \
132 + $(use_enable vala vala-extensions) \
133 + ${myconf[@]}
134 }
135
136 pkg_preinst() {
137
138 diff --git a/gnome-extra/libgda/libgda-5.2.8.ebuild b/gnome-extra/libgda/libgda-5.2.8-r1.ebuild
139 similarity index 98%
140 rename from gnome-extra/libgda/libgda-5.2.8.ebuild
141 rename to gnome-extra/libgda/libgda-5.2.8-r1.ebuild
142 index 6570bb39df7..afb0f66db4c 100644
143 --- a/gnome-extra/libgda/libgda-5.2.8.ebuild
144 +++ b/gnome-extra/libgda/libgda-5.2.8-r1.ebuild
145 @@ -1,4 +1,4 @@
146 -# Copyright 1999-2018 Gentoo Authors
147 +# Copyright 1999-2019 Gentoo Authors
148 # Distributed under the terms of the GNU General Public License v2
149
150 EAPI=6
151 @@ -47,7 +47,7 @@ RDEPEND="
152 json? ( dev-libs/json-glib )
153 ldap? ( net-nds/openldap:= )
154 mdb? ( >app-office/mdbtools-0.5:= )
155 - mysql? ( virtual/mysql:= )
156 + mysql? ( dev-db/mysql-connector-c:0= )
157 postgres? ( dev-db/postgresql:= )
158 reports? (
159 ${PYTHON_DEPS}