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/tangerine-icon-theme/files/, x11-themes/tangerine-icon-theme/
Date: Tue, 24 Dec 2019 11:53:50
Message-Id: 1577188405.b6c8f92eaee6c4efeb410e069b23b8bafeb62e2e.soap@gentoo
1 commit: b6c8f92eaee6c4efeb410e069b23b8bafeb62e2e
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 11:53:25 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 11:53:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c8f92e
7
8 x11-themes/tangerine-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 .../files/tangerine-icon-theme-0.27-libexec.patch | 11 +++++++
14 .../tangerine-icon-theme-0.27.ebuild | 36 ++++++++++++----------
15 2 files changed, 30 insertions(+), 17 deletions(-)
16
17 diff --git a/x11-themes/tangerine-icon-theme/files/tangerine-icon-theme-0.27-libexec.patch b/x11-themes/tangerine-icon-theme/files/tangerine-icon-theme-0.27-libexec.patch
18 new file mode 100644
19 index 00000000000..4ca0b88c8c1
20 --- /dev/null
21 +++ b/x11-themes/tangerine-icon-theme/files/tangerine-icon-theme-0.27-libexec.patch
22 @@ -0,0 +1,11 @@
23 +--- a/Makefile
24 ++++ b/Makefile
25 +@@ -19,7 +19,7 @@
26 +
27 + # run icon-naming-utils
28 + for d in $$DESTDIR/usr/share/icons/Tangerine/*; do \
29 +- (cd $$d; for c in *; do /usr/lib/icon-naming-utils/icon-name-mapping -c $$c; done); \
30 ++ (cd $$d; for c in *; do /usr/libexec/icon-name-mapping -c $$c; done); \
31 + done
32 +
33 + # install mo files
34
35 diff --git a/x11-themes/tangerine-icon-theme/tangerine-icon-theme-0.27.ebuild b/x11-themes/tangerine-icon-theme/tangerine-icon-theme-0.27.ebuild
36 index 457528857ff..365c0df5978 100644
37 --- a/x11-themes/tangerine-icon-theme/tangerine-icon-theme-0.27.ebuild
38 +++ b/x11-themes/tangerine-icon-theme/tangerine-icon-theme-0.27.ebuild
39 @@ -1,37 +1,43 @@
40 -# Copyright 1999-2016 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="a derivative of the standard Tango theme, using a more orange approach"
51 HOMEPAGE="http://packages.ubuntu.com/gutsy/x11/tangerine-icon-theme"
52 -SRC_URI="mirror://ubuntu/pool/universe/t/${PN}/${PN}_${PV}.tar.gz
53 +SRC_URI="
54 + mirror://ubuntu/pool/universe/t/${PN}/${PN}_${PV}.tar.gz
55 https://www.gentoo.org/images/gentoo-logo.svg"
56
57 LICENSE="CC-BY-SA-2.5 LGPL-2.1"
58 SLOT="0"
59 KEYWORDS="amd64 x86"
60 IUSE="minimal"
61 -
62 RESTRICT="binchecks strip"
63
64 -RDEPEND="!minimal? ( || ( x11-themes/adwaita-icon-theme kde-frameworks/oxygen-icons ) )"
65 -DEPEND="dev-util/intltool
66 - >=gnome-base/librsvg-2.34
67 +RDEPEND="
68 + !minimal? (
69 + || (
70 + x11-themes/adwaita-icon-theme
71 + kde-frameworks/oxygen-icons
72 + )
73 + )"
74 +BDEPEND="
75 + dev-util/intltool
76 + gnome-base/librsvg
77 sys-devel/gettext
78 - >=x11-misc/icon-naming-utils-0.8.90"
79 + x11-misc/icon-naming-utils"
80
81 -DOCS="AUTHORS README"
82 +PATCHES=( "${FILESDIR}"/${PN}-0.27-libexec.patch )
83
84 src_unpack() {
85 unpack ${PN}_${PV}.tar.gz
86 }
87
88 src_prepare() {
89 - sed -i \
90 - -e 's:lib/icon-naming-utils/icon:libexec/icon:' \
91 - Makefile || die
92 + xdg_src_prepare
93
94 cp "${DISTDIR}"/gentoo-logo.svg scalable/places/start-here.svg || die
95
96 @@ -45,7 +51,3 @@ src_prepare() {
97 src_compile() {
98 emake index.theme
99 }
100 -
101 -pkg_preinst() { gnome2_icon_savelist; }
102 -pkg_postinst() { gnome2_icon_cache_update; }
103 -pkg_postrm() { gnome2_icon_cache_update; }