Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/goocanvas/
Date: Tue, 11 Jan 2022 20:55:15
Message-Id: 1641934505.1a7d0e790a6ce106b43ec3c8108bc6dcd8e69870.mattst88@gentoo
1 commit: 1a7d0e790a6ce106b43ec3c8108bc6dcd8e69870
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Tue Jan 11 20:47:54 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 11 20:55:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a7d0e79
7
8 x11-libs/goocanvas: EAPI=8
9
10 Closes: https://github.com/gentoo/gentoo/pull/23610
11 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 x11-libs/goocanvas/goocanvas-2.0.4-r2.ebuild | 57 ++++++++++++++++++++++++++++
15 1 file changed, 57 insertions(+)
16
17 diff --git a/x11-libs/goocanvas/goocanvas-2.0.4-r2.ebuild b/x11-libs/goocanvas/goocanvas-2.0.4-r2.ebuild
18 new file mode 100644
19 index 000000000000..73563a3e29f3
20 --- /dev/null
21 +++ b/x11-libs/goocanvas/goocanvas-2.0.4-r2.ebuild
22 @@ -0,0 +1,57 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=8
27 +
28 +inherit gnome2
29 +
30 +DESCRIPTION="Canvas widget for GTK+ using the cairo 2D library for drawing"
31 +HOMEPAGE="https://wiki.gnome.org/GooCanvas"
32 +
33 +LICENSE="LGPL-2"
34 +SLOT="2.0"
35 +KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
36 +IUSE="examples +introspection"
37 +
38 +RDEPEND="
39 + >=x11-libs/cairo-1.10.0
40 + >=dev-libs/glib-2.28.0:2
41 + >=x11-libs/gtk+-3.0.0:3
42 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
43 +"
44 +DEPEND="${RDEPEND}"
45 +BDEPEND="
46 + dev-util/glib-utils
47 + >=dev-util/gtk-doc-am-1.16
48 + >=sys-devel/gettext-0.19.4
49 + virtual/pkgconfig
50 +"
51 +
52 +src_prepare() {
53 + # Do not build demos
54 + sed -e 's/^\(SUBDIRS =.*\)demo\(.*\)$/\1\2/' \
55 + -i Makefile.{am,in} || die "Failed to sed demo"
56 +
57 + # Python bindings are built/installed manually, but not at all anymore (py2).
58 + sed -e "/SUBDIRS = python/d" \
59 + -i bindings/Makefile.{am,in} || die "Failed to sed python subdirs"
60 +
61 + gnome2_src_prepare
62 +}
63 +
64 +src_configure() {
65 + PYTHON=true gnome2_src_configure \
66 + --disable-rebuilds \
67 + --disable-static \
68 + $(use_enable introspection) \
69 + --disable-python
70 +}
71 +
72 +src_install() {
73 + gnome2_src_install
74 +
75 + if use examples; then
76 + insinto "/usr/share/doc/${P}/examples/"
77 + doins demo/*.[ch] demo/*.png
78 + fi
79 +}