Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gom/
Date: Mon, 28 Dec 2015 23:10:01
Message-Id: 1451344186.7250b77b6aa1c981b6dd9928f837e5d2aa88b541.eva@gentoo
1 commit: 7250b77b6aa1c981b6dd9928f837e5d2aa88b541
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 23:06:49 2015 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 23:09:46 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7250b77b
7
8 dev-libs/gom: version bump to 0.3.2
9
10 Now provides python overrides for introspection, hence the "weird" REQUIRED_USE.
11
12 Package-Manager: portage-2.2.26
13
14 dev-libs/gom/Manifest | 1 +
15 dev-libs/gom/gom-0.3.2.ebuild | 77 +++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 78 insertions(+)
17
18 diff --git a/dev-libs/gom/Manifest b/dev-libs/gom/Manifest
19 index 8671591..823a38a 100644
20 --- a/dev-libs/gom/Manifest
21 +++ b/dev-libs/gom/Manifest
22 @@ -1,2 +1,3 @@
23 DIST gom-0.3.0.tar.xz 382924 SHA256 352a8bee8dc47e7bd5d08af35b0d67e1f3c54bca23a058a00004cb56ede6f4fd SHA512 ab26dbbb4cbeaa637ca835eff96caf647428505129652d0229808951b3ba5ec2225e2d37054a6b61ccad59954fda7d95bb04d61f75c1ec1ebbc1abea7025b627 WHIRLPOOL 98b7fc358635e17c1c878f2439f667cecd9304a8b5d10023d2e084d01e2950201404156add20da5e05f2a1e09bd42811a31f0765fa9e196e58d4c09496ba7664
24 DIST gom-0.3.1.tar.xz 385836 SHA256 7951eb46ee784cbdbee6e3f2da084ffbf776c11ca1c904404b05feafe37e38f5 SHA512 7596b7be0de6f10ef1fbe8a278d917c07ecc714e9af24f2b61a7d871c6a1b1cf19ea92d5b4fbf7802c9c097dc2ae7a65ac47b8ca8f6689b49a3e4930cff6d54c WHIRLPOOL 9fa3a42411e3892a3648f31614462d43b5a4f52a166e5edd80e97741427a9444c39d2200a4ce1ac3e1e87d3b3e974b9dad6f11ee252ba3d10fa1d63b00a09bde
25 +DIST gom-0.3.2.tar.xz 410300 SHA256 bce8f0f94af6ff7847b853580ba6baebbab8ae531cedb0c78a5c473f39c758fd SHA512 a7bfb263e5ff6f89768d8fcbdcc949d4ec9b82ecbb80952becd357a3d5781a60e52a327e865e39e46d542b2a2c5e5c861e5302d7ae3c3a2258d3c3f698263675 WHIRLPOOL b676f4117c66fbe47b4216b3f5e4259e0569bcf355ca2f474498c29218d42093ac66e3afb0eb1cd946837e813f4e7c3ff981e99a726458150c00c89653d06559
26
27 diff --git a/dev-libs/gom/gom-0.3.2.ebuild b/dev-libs/gom/gom-0.3.2.ebuild
28 new file mode 100644
29 index 0000000..5c7c94b
30 --- /dev/null
31 +++ b/dev-libs/gom/gom-0.3.2.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2015 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="5"
38 +GCONF_DEBUG="yes"
39 +PYTHON_COMPAT=( python{3_4,3_5} )
40 +
41 +inherit gnome2 python-r1
42 +
43 +DESCRIPTION="GObject to SQLite object mapper library"
44 +HOMEPAGE="https://wiki.gnome.org/Projects/Gom"
45 +
46 +LICENSE="LGPL-2+"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
49 +IUSE="+introspection python"
50 +REQUIRED_IUSE="python? ( ${PYTHON_REQUIRED_USE} introspection )"
51 +
52 +RDEPEND="
53 + >=dev-db/sqlite-3.7:3
54 + >=dev-libs/glib-2.36:2
55 + introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
56 + python? (
57 + ${PYTHON_DEPS}
58 + >=dev-python/pygobject-3.16:3[${PYTHON_USEDEP}] )
59 +"
60 +DEPEND="${RDEPEND}
61 + >=dev-util/gtk-doc-am-1.14
62 + >=dev-util/intltool-0.40.0
63 + sys-devel/gettext
64 + virtual/pkgconfig
65 + x11-libs/gdk-pixbuf:2
66 +"
67 +# TODO: make gdk-pixbuf properly optional with USE=test
68 +
69 +pkg_setup() {
70 + use python && python_setup
71 +}
72 +
73 +src_prepare() {
74 + gnome2_src_prepare
75 +
76 + use python && python_copy_sources
77 +}
78 +
79 +src_configure() {
80 + # glibtest is a relic from AM_PATH_GLIB macro
81 + local myconf=(
82 + --disable-static
83 + --disable-glibtest
84 + )
85 +
86 + gnome2_src_configure \
87 + ${myconf[@]} \
88 + --disable-python \
89 + $(use_enable introspection) \
90 +
91 + if use python ; then
92 + python_foreach_impl run_in_build_dir \
93 + gnome2_src_configure \
94 + ${myconf[@]} \
95 + --enable-python
96 + fi
97 +}
98 +
99 +src_install() {
100 + gnome2_src_install
101 +
102 + if use python ; then
103 + docinto examples
104 + dodoc examples/*.py
105 +
106 + python_foreach_impl run_in_build_dir \
107 + emake DESTDIR="${D}" install-overridesPYTHON
108 + fi
109 +}