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: 1641934504.98d868c286553238eb2320e14fe6f20bb22536ff.mattst88@gentoo
1 commit: 98d868c286553238eb2320e14fe6f20bb22536ff
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Sat Jan 1 08:50:09 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 11 20:55:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98d868c2
7
8 x11-libs/goocanvas: bump to 3.0.0 and EAPI 8
9
10 Closes: https://bugs.gentoo.org/783018
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/Manifest | 1 +
15 x11-libs/goocanvas/goocanvas-3.0.0.ebuild | 57 +++++++++++++++++++++++++++++++
16 2 files changed, 58 insertions(+)
17
18 diff --git a/x11-libs/goocanvas/Manifest b/x11-libs/goocanvas/Manifest
19 index 0ecdfc19ff97..a44ee5b9ad93 100644
20 --- a/x11-libs/goocanvas/Manifest
21 +++ b/x11-libs/goocanvas/Manifest
22 @@ -1 +1,2 @@
23 DIST goocanvas-2.0.4.tar.xz 584272 BLAKE2B 027ab47c1e9c241f74509001426367e86025ec8ea5901cf64c2014f8c32b83ce60870ca754dd15e8982a7023b77d3856b39dbbbdd636de6da47d361cb15a940e SHA512 e57dfd59d9b9cb64deadfeac193c11a89347c7f0e966377cfb98afcc2b46be13fe05d253a96e63dc7e6981c75e6e871040b83d8d0aee95cb62b79965d6be5688
24 +DIST goocanvas-3.0.0.tar.xz 556832 BLAKE2B 4ee632a614b6b881000bbee8d5e21a166151a94667c603c92b94c5e076fab78a6df44fe1d45fb4d7c4d65c0e060b599abf3970313542836a63efbca33d6a075b SHA512 a53839af4d98afdfc0f92531bdb09013dd71e964185dc2670af077bb7b41b9ff5c75f2801f6e77c99055b38f3603d8cf197f84affb8d7c3196526ce824b228e3
25
26 diff --git a/x11-libs/goocanvas/goocanvas-3.0.0.ebuild b/x11-libs/goocanvas/goocanvas-3.0.0.ebuild
27 new file mode 100644
28 index 000000000000..16b18094e850
29 --- /dev/null
30 +++ b/x11-libs/goocanvas/goocanvas-3.0.0.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit gnome2
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="3.0"
44 +KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
45 +IUSE="examples +introspection"
46 +
47 +RDEPEND="
48 + >=x11-libs/cairo-1.10.0
49 + >=dev-libs/glib-2.28.0:2
50 + >=x11-libs/gtk+-3.0.0:3
51 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
52 +"
53 +DEPEND="${RDEPEND}"
54 +BDEPEND="
55 + dev-util/glib-utils
56 + >=dev-util/gtk-doc-am-1.16
57 + >=sys-devel/gettext-0.19.4
58 + virtual/pkgconfig
59 +"
60 +
61 +src_prepare() {
62 + # Do not build demos
63 + sed -e 's/^\(SUBDIRS =.*\)demo\(.*\)$/\1\2/' \
64 + -i Makefile.{am,in} || die "Failed to sed demo"
65 +
66 + # Python bindings are built/installed manually, but not at all anymore (py2).
67 + sed -e "/SUBDIRS = python/d" \
68 + -i bindings/Makefile.{am,in} || die "Failed to sed python subdirs"
69 +
70 + gnome2_src_prepare
71 +}
72 +
73 +src_configure() {
74 + PYTHON=true gnome2_src_configure \
75 + --disable-rebuilds \
76 + --disable-static \
77 + $(use_enable introspection) \
78 + --disable-python
79 +}
80 +
81 +src_install() {
82 + gnome2_src_install
83 +
84 + if use examples; then
85 + insinto "/usr/share/doc/${P}/examples/"
86 + doins demo/*.[ch] demo/*.png
87 + fi
88 +}