1 |
commit: 41e8f19fc798420d0eb8d3c794f777aa3f19e5be |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 26 08:15:53 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 26 08:29:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41e8f19f |
7 |
|
8 |
dev-libs/gom: bump to 0.4, improve python handling, py3.8 |
9 |
|
10 |
* Fix for gdk-pixbuf being test-only dep |
11 |
* Add python-3.8 support; should be fine, as it's just simple gi |
12 |
overrides |
13 |
* Handle python gobject-introspection overrides manually to avoid |
14 |
building the whole source tree up to 3 times. The build system |
15 |
way is completely broken for us as well with upstream changes in |
16 |
0.4 and we'd need to pass the overrides install path manually |
17 |
anyhow (upstream changes make it ignore python3.6 being in |
18 |
/usr/lib64 and python3.7+ being in /usr/lib properly) |
19 |
* python isn't needed without introspection; take the chance to also |
20 |
add a IUSE=python for this, as we handle it manually anyways and |
21 |
don't need upstream support anymore |
22 |
|
23 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
24 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
25 |
|
26 |
dev-libs/gom/Manifest | 1 + |
27 |
dev-libs/gom/gom-0.4.ebuild | 61 +++++++++++++++++++++++++++++++++++++++++++++ |
28 |
2 files changed, 62 insertions(+) |
29 |
|
30 |
diff --git a/dev-libs/gom/Manifest b/dev-libs/gom/Manifest |
31 |
index e44cf06de93..8e2c6b844aa 100644 |
32 |
--- a/dev-libs/gom/Manifest |
33 |
+++ b/dev-libs/gom/Manifest |
34 |
@@ -1,2 +1,3 @@ |
35 |
DIST gom-0.3.2.tar.xz 410300 BLAKE2B c0c79c1c3f8a28a0ee992fa4c316538eb87ec26c77def353e8b2038e32f30f9daed433c6d6f6c81069e05e46a980f7d944c955182d973d42f3bd84a341c5a34d SHA512 a7bfb263e5ff6f89768d8fcbdcc949d4ec9b82ecbb80952becd357a3d5781a60e52a327e865e39e46d542b2a2c5e5c861e5302d7ae3c3a2258d3c3f698263675 |
36 |
DIST gom-0.3.3.tar.xz 101580 BLAKE2B 08e0abb9eaf23ba3bbbca54289ebaa695af705e65b9b612f125e72c62f337baec899d16e657d3de51baeb4ffb79b583716a01d74067e256d59e1dcb63723273e SHA512 152924e704c92f39c493a8becc73fac1f7fe396f4f9e7c154dccec2b4413476821e43abf3c108cc1304de471e61f56c265f124710379ad8568b68f8902064e03 |
37 |
+DIST gom-0.4.tar.xz 102744 BLAKE2B 8116ac388a56e85effbb37c3d5ea5036f6de2f4ad7ee8fe119bd058e1ac3e293eab612a739cdba7467202bc9e258f7cd65b1f116e146577d3a103fc03afba37f SHA512 d847928ce09c53a3f64777c313cb843052e5e001873f29d3f7acf02772cadf0e4b133fb0137aa0463b4ff95dd54810bde87062d8e396ff4fc6d142ba59c8e9c8 |
38 |
|
39 |
diff --git a/dev-libs/gom/gom-0.4.ebuild b/dev-libs/gom/gom-0.4.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..7b2f1c4142b |
42 |
--- /dev/null |
43 |
+++ b/dev-libs/gom/gom-0.4.ebuild |
44 |
@@ -0,0 +1,61 @@ |
45 |
+# Copyright 1999-2020 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+GCONF_DEBUG="yes" |
50 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
51 |
+ |
52 |
+inherit gnome.org gnome2-utils meson python-r1 |
53 |
+ |
54 |
+DESCRIPTION="GObject to SQLite object mapper library" |
55 |
+HOMEPAGE="https://wiki.gnome.org/Projects/Gom" |
56 |
+ |
57 |
+LICENSE="LGPL-2+" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
60 |
+IUSE="gtk-doc +introspection python test" |
61 |
+RESTRICT="!test? ( test )" |
62 |
+REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} )" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ >=dev-db/sqlite-3.7:3 |
66 |
+ >=dev-libs/glib-2.36:2 |
67 |
+ introspection? ( >=dev-libs/gobject-introspection-1.30.0:= ) |
68 |
+ python? ( ${PYTHON_DEPS} |
69 |
+ >=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}] ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ gtk-doc? ( dev-util/gtk-doc ) |
73 |
+ virtual/pkgconfig |
74 |
+ test? ( x11-libs/gdk-pixbuf:2 ) |
75 |
+" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ default |
79 |
+ sed -i -e '/subdir.*python/d' bindings/meson.build || die |
80 |
+ # drop test building and deps if not enabled |
81 |
+ if ! use test; then |
82 |
+ sed -i -e '/gdkpixbuf_dep/d' meson.build || die |
83 |
+ sed -i -e '/subdir(.*tests.*)/d' meson.build || die |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local emesonargs=( |
89 |
+ $(meson_use introspection enable-introspection) |
90 |
+ $(meson_use gtk-doc enable-gtk-doc) |
91 |
+ ) |
92 |
+ |
93 |
+ meson_src_configure |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ docinto examples |
98 |
+ dodoc examples/*.py |
99 |
+ |
100 |
+ meson_src_install |
101 |
+ |
102 |
+ if use python; then |
103 |
+ python_foreach_impl python_domodule bindings/python/gi |
104 |
+ fi |
105 |
+} |