Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/goocanvas/
Date: Sun, 03 Sep 2017 22:47:59
Message-Id: 1504478839.e60f70db89da06bbf1c3db6cd922b6393927aa1d.eva@gentoo
1 commit: e60f70db89da06bbf1c3db6cd922b6393927aa1d
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 3 22:38:22 2017 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 3 22:47:19 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e60f70db
7
8 x11-libs/goocanvas: version bump 2.0.2 → 2.0.3
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 x11-libs/goocanvas/Manifest | 1 +
13 x11-libs/goocanvas/goocanvas-2.0.3.ebuild | 68 +++++++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/x11-libs/goocanvas/Manifest b/x11-libs/goocanvas/Manifest
17 index 218d6f1b2fb..46b332f0824 100644
18 --- a/x11-libs/goocanvas/Manifest
19 +++ b/x11-libs/goocanvas/Manifest
20 @@ -1,2 +1,3 @@
21 DIST goocanvas-1.0.0.tar.bz2 570552 SHA256 1c072ef88567cad241fb4addee26e9bd96741b1503ff736d1c152fa6d865711e SHA512 fef4364b57dc777b6dcceb026f940121a24a8a3792e8d37d320eb47b7747ab0d54d8d7911b4ff77c21ca2b251937c9312da04221bbc246a07bbf4062689de644 WHIRLPOOL fb8592136bacf10d73e3aeeac9366c0614f8cd60e74a30d31e475b1ae9a1ac76c97b64837490f916733d31191a90c121ac0d60e077acef7cc61a861f5b57fde7
22 DIST goocanvas-2.0.2.tar.xz 502732 SHA256 f20e5fbef8d1a2633033edbd886dd13146a1b948d1813a9c353a80a29295d1d0 SHA512 2b3014b832a5426884aa472fbfabcca171ef90305afccd312583d259517725a1839509e39b13b30c5097bf54ed9b3dfd2bf9eeca4e813a82d14cf1d5a54578ac WHIRLPOOL 714682b70d747e5db94140e5067e4df3c396332cab9f8b112141f39135758cea0a7e07405d796a70d81b95b76ce68ec17c58b317d0508dc413f2e6139dc39c87
23 +DIST goocanvas-2.0.3.tar.xz 584532 SHA256 6b5b9c25d32c05b9bafc42f5fcc28d55f1426e733e78e9fe4d191cfcd666c800 SHA512 e7db229d029906febc5cc8154cecfe9a7c81497abfb1cdf8e41b8135ef87ef7478dac60bd160adb0d6efbe69680be488c67e78497cb89b1ba295a407af04b786 WHIRLPOOL 8f94970f348d4abdfcc5411a9f5cac6a729db837c6b31693ebcc3af4aee15be898f1f973e58e20f2b6668dc6cc02db26cb9cbbd7f042e79bf25958d6e1a9ffa2
24
25 diff --git a/x11-libs/goocanvas/goocanvas-2.0.3.ebuild b/x11-libs/goocanvas/goocanvas-2.0.3.ebuild
26 new file mode 100644
27 index 00000000000..41235bfdd14
28 --- /dev/null
29 +++ b/x11-libs/goocanvas/goocanvas-2.0.3.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit gnome2 python-r1
38 +
39 +DESCRIPTION="Canvas widget for GTK+ using the cairo 2D library for drawing"
40 +HOMEPAGE="https://wiki.gnome.org/GooCanvas"
41 +
42 +LICENSE="LGPL-2"
43 +SLOT="2.0"
44 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
45 +IUSE="examples +introspection python"
46 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
47 +
48 +# python only enables python specific binding override
49 +RDEPEND="
50 + >=x11-libs/gtk+-3.0.0:3
51 + >=dev-libs/glib-2.28.0:2
52 + >=x11-libs/cairo-1.10.0
53 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
54 + python? (
55 + ${PYTHON_DEPS}
56 + >=dev-python/pygobject-2.90.4:3[${PYTHON_USEDEP}] )
57 +"
58 +DEPEND="${RDEPEND}
59 + >=dev-util/gtk-doc-am-1.8
60 + >=sys-devel/gettext-0.19.4
61 + virtual/pkgconfig
62 +"
63 +
64 +src_prepare() {
65 + # Do not build demos
66 + sed -e 's/^\(SUBDIRS =.*\)demo\(.*\)$/\1\2/' \
67 + -i Makefile.am Makefile.in || die "sed failed"
68 +
69 + # Python bindings are built/installed manually.
70 + sed -e "/SUBDIRS = python/d" -i bindings/Makefile.am bindings/Makefile.in
71 +
72 + gnome2_src_prepare
73 +}
74 +
75 +src_configure() {
76 + gnome2_src_configure \
77 + --disable-rebuilds \
78 + --disable-static \
79 + $(use_enable introspection) \
80 + --disable-python
81 +}
82 +
83 +src_install() {
84 + gnome2_src_install
85 +
86 + if use python; then
87 + sub_install() {
88 + python_moduleinto $(python -c "import gi;print gi._overridesdir")
89 + python_domodule bindings/python/GooCanvas.py
90 + }
91 + python_foreach_impl sub_install
92 + fi
93 +
94 + if use examples; then
95 + insinto "/usr/share/doc/${P}/examples/"
96 + doins demo/*.[ch] demo/*.png
97 + fi
98 +}