Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/librsvg/
Date: Sun, 31 Jan 2021 17:54:20
Message-Id: 1612115477.8a87692552fc230026d63741fa0f5e4832d4d8ad.leio@gentoo
1 commit: 8a87692552fc230026d63741fa0f5e4832d4d8ad
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 31 14:33:02 2021 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 17:51:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a876925
7
8 gnome-base/librsvg: bump to 2.50.3
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 gnome-base/librsvg/Manifest | 1 +
14 gnome-base/librsvg/librsvg-2.50.3.ebuild | 94 ++++++++++++++++++++++++++++++++
15 2 files changed, 95 insertions(+)
16
17 diff --git a/gnome-base/librsvg/Manifest b/gnome-base/librsvg/Manifest
18 index b09e9f20b48..f57410019d1 100644
19 --- a/gnome-base/librsvg/Manifest
20 +++ b/gnome-base/librsvg/Manifest
21 @@ -2,3 +2,4 @@ DIST librsvg-2.40.21.tar.xz 1655860 BLAKE2B a3fd7915d39984057e860da90115d9d95cef
22 DIST librsvg-2.48.8.tar.xz 15302184 BLAKE2B 7d44b58d894afbeff0cb4606ed64191c028e7ac9d987dd3248b90df4ae0c000ee47b02484116bf7ee6e7aad567b91df7a2aae6880514f5ddee3ef4826c2e828e SHA512 7b35afbbad17927168acb3a308bff59ea66e8e1ac18c2ab5626a7d494e90d87d2dc552959ad72974d3ed8ba4c2f919335cf9110a0d0a09148e606222e4fcee43
23 DIST librsvg-2.48.9.tar.xz 15309204 BLAKE2B 2547f9eb2bb81c7c879356df0df674ba27a09e3b1f0eb8df99df7a9a9c5e6838e94e143f50a00a742a4fd7043c01b4f484cfa78c84c4d5e6ec281bde35fd98b2 SHA512 91fc480a9e9ff3755ed2685170a1fadea9232ab9a727a66da5085df09cd1a160cb8f443de7dec950799de5f4cb88b1ee33384107e316f573940147346c155a40
24 DIST librsvg-2.50.2.tar.xz 16354004 BLAKE2B 485c14bf898fdcf2ad55cd6191eb5d315de73d02a34f15b528e36e64549f0eb2597b90d277c28d7d8d584b59c69f8eaa9f90820dcbaeb4a457d4ce1e2e2adf30 SHA512 f7e4990e1d74750246ec5816327c606607bb864ea7c44bce3ba9254a90b71692ed397e90343473d266f71eae3df7085c00e5a9a90b02d27ed6648e717d69fb45
25 +DIST librsvg-2.50.3.tar.xz 18868408 BLAKE2B 8b245a233ddd56137880e43f4da2df623237bb1ce2e143cee09da3fadc1edd9b3e4f4753fe48cf814d2372e532775573a34982a6cc88ace9be336e16ae473c20 SHA512 21710b6b5810b959679b7908aa371b8af02c85549efbc64f5fda01cfc3881539b5afc6bc304ce2289719dee48f583b1eb9867546e09f36941f81af968434e389
26
27 diff --git a/gnome-base/librsvg/librsvg-2.50.3.ebuild b/gnome-base/librsvg/librsvg-2.50.3.ebuild
28 new file mode 100644
29 index 00000000000..01b20ea0c5c
30 --- /dev/null
31 +++ b/gnome-base/librsvg/librsvg-2.50.3.ebuild
32 @@ -0,0 +1,94 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +VALA_USE_DEPEND="vapigen"
38 +
39 +inherit gnome2 multilib-minimal rust-toolchain vala
40 +
41 +DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
42 +HOMEPAGE="https://wiki.gnome.org/Projects/LibRsvg"
43 +
44 +LICENSE="LGPL-2+"
45 +SLOT="2"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
47 +
48 +IUSE="+introspection +vala"
49 +REQUIRED_USE="vala? ( introspection )"
50 +
51 +RDEPEND="
52 + >=x11-libs/cairo-1.16.0[${MULTILIB_USEDEP}]
53 + >=media-libs/freetype-2.9:2[${MULTILIB_USEDEP}]
54 + >=x11-libs/gdk-pixbuf-2.20:2[introspection?,${MULTILIB_USEDEP}]
55 + >=dev-libs/glib-2.50.0:2[${MULTILIB_USEDEP}]
56 + >=media-libs/harfbuzz-2.0.0:=[${MULTILIB_USEDEP}]
57 + >=dev-libs/libxml2-2.9.1-r4:2[${MULTILIB_USEDEP}]
58 + >=x11-libs/pango-1.38.0[${MULTILIB_USEDEP}]
59 +
60 + introspection? ( >=dev-libs/gobject-introspection-0.10.8:= )
61 +"
62 +DEPEND="${RDEPEND}
63 + >=virtual/rust-1.40[${MULTILIB_USEDEP}]
64 + dev-util/glib-utils
65 + >=sys-devel/gettext-0.19.8
66 + virtual/pkgconfig
67 + vala? ( $(vala_depend) )
68 +"
69 +# >=gtk-doc-am-1.13, gobject-introspection-common, vala-common needed by eautoreconf
70 +
71 +RESTRICT="test" # Lots of issues on 32bit builds, 64bit build seems to get into an infinite compilation sometimes, etc.
72 +
73 +src_prepare() {
74 + use vala && vala_src_prepare
75 + gnome2_src_prepare
76 +}
77 +
78 +multilib_src_configure() {
79 + local myconf=(
80 + --disable-static
81 + --disable-debug
82 + --disable-tools # the tools/ subdirectory is useful only for librsvg devs
83 + $(multilib_native_use_enable introspection)
84 + $(multilib_native_use_enable vala)
85 + --enable-pixbuf-loader
86 + )
87 +
88 + if ! multilib_is_native_abi; then
89 + myconf+=(
90 + # Set the rust target, which can differ from CHOST
91 + RUST_TARGET="$(rust_abi)"
92 + # RUST_TARGET is only honored if cross_compiling, but non-native ABIs aren't cross as
93 + # far as C parts and configure auto-detection are concerned as CHOST equals CBUILD
94 + cross_compiling=yes
95 + )
96 + fi
97 +
98 + ECONF_SOURCE=${S} \
99 + gnome2_src_configure "${myconf[@]}"
100 +
101 + if multilib_is_native_abi; then
102 + ln -s "${S}"/doc/html doc/html || die
103 + fi
104 +}
105 +
106 +multilib_src_compile() {
107 + # causes segfault if set, see bug #411765
108 + unset __GL_NO_DSO_FINALIZER
109 + gnome2_src_compile
110 +}
111 +
112 +multilib_src_install() {
113 + gnome2_src_install
114 +}
115 +
116 +pkg_postinst() {
117 + # causes segfault if set, see bug 375615
118 + unset __GL_NO_DSO_FINALIZER
119 + multilib_foreach_abi gnome2_pkg_postinst
120 +}
121 +
122 +pkg_postrm() {
123 + # causes segfault if set, see bug 375615
124 + unset __GL_NO_DSO_FINALIZER
125 + multilib_foreach_abi gnome2_pkg_postrm
126 +}