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/nimbus/files/, x11-themes/nimbus/
Date: Tue, 24 Dec 2019 11:53:49
Message-Id: 1577188401.52c93764c13cdfd87b7a424c811e1ff7e9d89fab.soap@gentoo
1 commit: 52c93764c13cdfd87b7a424c811e1ff7e9d89fab
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 24 11:53:21 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 24 11:53:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52c93764
7
8 x11-themes/nimbus: 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 .../nimbus/files/nimbus-0.1.7-fix-themes.patch | 43 +++++++++++++++
14 x11-themes/nimbus/nimbus-0.1.7-r1.ebuild | 62 +++++++++++-----------
15 2 files changed, 74 insertions(+), 31 deletions(-)
16
17 diff --git a/x11-themes/nimbus/files/nimbus-0.1.7-fix-themes.patch b/x11-themes/nimbus/files/nimbus-0.1.7-fix-themes.patch
18 new file mode 100644
19 index 00000000000..8135bb1dfd2
20 --- /dev/null
21 +++ b/x11-themes/nimbus/files/nimbus-0.1.7-fix-themes.patch
22 @@ -0,0 +1,43 @@
23 +- Tango is deprecated
24 +- Encoding= key is obsolete
25 +
26 +--- a/dark-index.theme.in
27 ++++ b/dark-index.theme.in
28 +@@ -2,7 +2,6 @@
29 + Type=X-GNOME-Metatheme
30 + _Name=Dark Nimbus
31 + _Comment=Sun Microsystems, Inc. alternative theme
32 +-Encoding=UTF-8
33 +
34 + [X-GNOME-Metatheme]
35 + GtkTheme=dark-nimbus
36 +--- a/icons/index.theme.in
37 ++++ b/icons/index.theme.in
38 +@@ -1,6 +1,6 @@
39 + [Icon Theme]
40 + Name=nimbus
41 +-Inherits=Tango
42 ++Inherits=gnome,Tango
43 + Directories=12x12/actions,12x12/emblems,12x12/places,16x16/actions,16x16/apps,16x16/categories,16x16/devices,16x16/emblems,16x16/places,16x16/mimetypes,16x16/status,20x20/status,24x24/actions,24x24/animations,24x24/apps,24x24/categories,24x24/devices,24x24/emblems,24x24/places,24x24/mimetypes,24x24/status,32x32/actions,32x32/apps,32x32/categories,32x32/devices,32x32/emblems,32x32/places,32x32/mimetypes,32x32/status,36x36/actions,36x36/animations,36x36/apps,36x36/categories,36x36/devices,36x36/places,36x36/mimetypes,48x48/actions,48x48/animations,48x48/apps,48x48/categories,48x48/devices,48x48/places,48x48/mimetypes,48x48/status,48x48/emblems,72x72/apps,72x72/categories,72x72/places,72x72/mimetypes,96x96/apps,96x96/categories,96x96/devices,96x96/places,96x96/mimetypes,192x192/apps,192x192/categories,192x192/devices,192x192/places,192x192/mimetypes
44 + Example=user-desktop
45 +
46 +--- a/index.theme.in
47 ++++ b/index.theme.in
48 +@@ -2,7 +2,6 @@
49 + Type=X-GNOME-Metatheme
50 + _Name=Nimbus
51 + _Comment=Sun Microsystems, Inc. default theme
52 +-Encoding=UTF-8
53 +
54 + [X-GNOME-Metatheme]
55 + GtkTheme=nimbus
56 +--- a/light-index.theme.in
57 ++++ b/light-index.theme.in
58 +@@ -2,7 +2,6 @@
59 + Type=X-GNOME-Metatheme
60 + _Name=Light Nimbus
61 + _Comment=Sun Microsystems, Inc. alternative theme
62 +-Encoding=UTF-8
63 +
64 + [X-GNOME-Metatheme]
65 + GtkTheme=light-nimbus
66
67 diff --git a/x11-themes/nimbus/nimbus-0.1.7-r1.ebuild b/x11-themes/nimbus/nimbus-0.1.7-r1.ebuild
68 index 44cf2230a16..6ee30e99e32 100644
69 --- a/x11-themes/nimbus/nimbus-0.1.7-r1.ebuild
70 +++ b/x11-themes/nimbus/nimbus-0.1.7-r1.ebuild
71 @@ -1,9 +1,10 @@
72 -# Copyright 1999-2017 Gentoo Foundation
73 +# Copyright 1999-2019 Gentoo Authors
74 # Distributed under the terms of the GNU General Public License v2
75
76 -EAPI=4
77 +EAPI=7
78 +
79 AUTOTOOLS_AUTO_DEPEND=no
80 -inherit autotools gnome2-utils
81 +inherit autotools xdg
82
83 DESCRIPTION="The default OpenSolaris theme (GTK+ 2.x engine, icon- and metacity theme)"
84 HOMEPAGE="http://dlc.sun.com/osol/jds/downloads/extras/nimbus/"
85 @@ -14,47 +15,46 @@ SLOT="0"
86 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
87 IUSE="gtk minimal"
88
89 -COMMON_DEPEND="gtk? ( x11-libs/gtk+:2 )"
90 -RDEPEND="${COMMON_DEPEND}
91 - !minimal? ( || ( x11-themes/adwaita-icon-theme x11-themes/tango-icon-theme ) )"
92 -DEPEND="${COMMON_DEPEND}
93 +DEPEND="gtk? ( x11-libs/gtk+:2 )"
94 +RDEPEND="
95 + ${DEPEND}
96 + !minimal? (
97 + || (
98 + x11-themes/adwaita-icon-theme
99 + x11-themes/tango-icon-theme
100 + )
101 + )"
102 +BDEPEND="
103 dev-util/intltool
104 virtual/pkgconfig
105 - >=x11-misc/icon-naming-utils-0.8.90
106 - !gtk? ( ${AUTOTOOLS_DEPEND} )
107 - elibc_Interix? ( ${AUTOTOOLS_DEPEND} )"
108 -
109 -src_prepare() {
110 - # Tango is deprecated
111 - sed -i -e '/^Inherits/s:Tango:gnome,&:' icons/index.theme.in || die
112 + x11-misc/icon-naming-utils
113 + !gtk? ( ${AUTOTOOLS_DEPEND} )"
114
115 - # Encoding= key is obsolete
116 - sed -i -e '/^Encoding/d' *.theme.in || die
117 +PATCHES=( "${FILESDIR}"/${PN}-0.1.7-fix-themes.patch )
118
119 - use gtk || { sed -i \
120 - -e '/^gtk-engine/d' -e '/GTK2/d' -e '/^SUBDIRS/s:gtk-engine ::' \
121 - configure.in Makefile.am || die; }
122 +src_prepare() {
123 + xdg_src_prepare
124
125 - local f=po/POTFILES.skip
126 - echo light-index.theme.in >> ${f}
127 - echo dark-index.theme.in >> ${f}
128 + echo light-index.theme.in >> po/POTFILES.skip || die
129 + echo dark-index.theme.in >> po/POTFILES.skip || die
130
131 - if [[ ${CHOST} == *-interix* ]] || ! use gtk; then
132 + if ! use gtk; then
133 + sed -e '/GTK2/d' \
134 + -e '/^gtk-engine/d' \
135 + -e '/^SUBDIRS/s:gtk-engine ::' \
136 + -i configure.in Makefile.am || die
137 + mv configure.{in,ac} || die
138 eautoreconf
139 fi
140 }
141
142 src_configure() {
143 - econf $(use gtk && echo --disable-static)
144 + econf --disable-static
145 }
146
147 src_install() {
148 - emake DESTDIR="${D}" install
149 - dodoc AUTHORS ChangeLog
150 + default
151
152 - use gtk && find "${ED}"/usr -name libnimbus.la -exec rm -f {} +
153 + # no static archives
154 + find "${D}" -name '*.la' -delete || die
155 }
156 -
157 -pkg_preinst() { gnome2_icon_savelist; }
158 -pkg_postinst() { gnome2_icon_cache_update; }
159 -pkg_postrm() { gnome2_icon_cache_update; }