Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/tango-icon-theme/files/, x11-themes/tango-icon-theme/
Date: Tue, 24 Dec 2019 11:53:51
Message-Id: 1577188406.74c0ee1311223f86b0783bc5d1a49b5d8f2a30c5.soap@gentoo
1 commit: 74c0ee1311223f86b0783bc5d1a49b5d8f2a30c5
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 11:53:26 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 11:53:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c0ee13
7
8 x11-themes/tango-icon-theme: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.82, Repoman-2.3.20
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 .../tango-icon-theme-0.8.90-rsvg-convert.patch | 11 ++++++
14 .../tango-icon-theme-0.8.90-r1.ebuild | 41 ++++++++++------------
15 2 files changed, 30 insertions(+), 22 deletions(-)
16
17 diff --git a/x11-themes/tango-icon-theme/files/tango-icon-theme-0.8.90-rsvg-convert.patch b/x11-themes/tango-icon-theme/files/tango-icon-theme-0.8.90-rsvg-convert.patch
18 new file mode 100644
19 index 00000000000..f681d55f840
20 --- /dev/null
21 +++ b/x11-themes/tango-icon-theme/files/tango-icon-theme-0.8.90-rsvg-convert.patch
22 @@ -0,0 +1,11 @@
23 +--- a/configure
24 ++++ b/configure
25 +@@ -6554,7 +6554,7 @@
26 + enable_large_bitmaps=no
27 + fi
28 + if test "x$enable_large_bitmaps" = "xyes"; then
29 +- svgconvert_prog="rsvg"
30 ++ svgconvert_prog="rsvg-convert"
31 + else
32 + svgconvert_prog="ksvgtopng"
33 + fi
34
35 diff --git a/x11-themes/tango-icon-theme/tango-icon-theme-0.8.90-r1.ebuild b/x11-themes/tango-icon-theme/tango-icon-theme-0.8.90-r1.ebuild
36 index c4913359517..74c2e45634c 100644
37 --- a/x11-themes/tango-icon-theme/tango-icon-theme-0.8.90-r1.ebuild
38 +++ b/x11-themes/tango-icon-theme/tango-icon-theme-0.8.90-r1.ebuild
39 @@ -1,8 +1,9 @@
40 -# Copyright 1999-2017 Gentoo Foundation
41 +# Copyright 1999-2019 Gentoo Authors
42 # Distributed under the terms of the GNU General Public License v2
43
44 -EAPI=4
45 -inherit gnome2-utils
46 +EAPI=7
47 +
48 +inherit xdg
49
50 DESCRIPTION="SVG and PNG icon theme from the Tango project"
51 HOMEPAGE="http://tango.freedesktop.org"
52 @@ -12,31 +13,31 @@ LICENSE="public-domain"
53 SLOT="0"
54 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
55 IUSE="minimal png"
56 +RESTRICT="binchecks strip"
57
58 RDEPEND="!hppa? ( !minimal? ( x11-themes/adwaita-icon-theme ) )
59 >=x11-themes/hicolor-icon-theme-0.12"
60 -DEPEND="${RDEPEND}
61 +BDEPEND="
62 dev-util/intltool
63 - virtual/pkgconfig
64 - >=gnome-base/librsvg-2.34
65 - virtual/imagemagick-tools[png?]
66 + gnome-base/librsvg
67 sys-devel/gettext
68 - >=x11-misc/icon-naming-utils-0.8.90"
69 -
70 -RESTRICT="binchecks strip"
71 + virtual/imagemagick-tools[png?]
72 + virtual/pkgconfig
73 + x11-misc/icon-naming-utils"
74
75 -DOCS="AUTHORS ChangeLog README"
76 +PATCHES=(
77 + # https://bugs.gentoo.org/413183
78 + "${FILESDIR}"/${PN}-0.8.90-rsvg-convert.patch
79 +)
80
81 src_prepare() {
82 - sed -i -e '/svgconvert_prog/s:rsvg:&-convert:' configure || die #413183
83 + xdg_src_prepare
84
85 # https://bugs.gentoo.org/472766
86 - shopt -s nullglob
87 - cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
88 - if test -n "${cards}"; then
89 - addpredict "${cards}"
90 - fi
91 - shopt -u nullglob
92 + local d
93 + for d in /dev/dri/card*; do
94 + [[ -s ${d} ]] && addpredict "${d}"
95 + done
96 }
97
98 src_configure() {
99 @@ -49,7 +50,3 @@ src_install() {
100 addwrite /root/.gnome2
101 default
102 }
103 -
104 -pkg_preinst() { gnome2_icon_savelist; }
105 -pkg_postinst() { gnome2_icon_cache_update; }
106 -pkg_postrm() { gnome2_icon_cache_update; }