1 |
|
# Copyright 1999-2018 Gentoo Foundation
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=6
|
5 |
|
inherit gnome2-utils
|
|
4 |
EAPI=7
|
6 |
5 |
|
7 |
|
MY_PN="${PN/-icon-theme/}"
|
|
6 |
inherit xdg-utils toolchain-funcs
|
8 |
7 |
|
|
8 |
MY_P="${PN%-icon-theme}-${PV}"
|
9 |
9 |
DESCRIPTION="Elementary icons forked from upstream, extended and maintained for Xfce"
|
10 |
10 |
HOMEPAGE="https://github.com/shimmerproject/elementary-xfce"
|
11 |
|
SRC_URI="https://github.com/shimmerproject/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
11 |
SRC_URI="https://github.com/shimmerproject/elementary-xfce/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
|
12 |
S="${WORKDIR}/${MY_P}"
|
12 |
13 |
|
13 |
14 |
LICENSE="public-domain GPL-1 GPL-2 GPL-3"
|
14 |
15 |
SLOT="0"
|
15 |
|
KEYWORDS="amd64 x86"
|
16 |
|
IUSE=""
|
|
16 |
KEYWORDS="~amd64 ~x86"
|
17 |
17 |
|
18 |
|
RDEPEND=""
|
19 |
|
DEPEND="media-gfx/optipng"
|
|
18 |
BDEPEND="
|
|
19 |
media-gfx/optipng
|
|
20 |
x11-libs/gdk-pixbuf:2
|
|
21 |
x11-libs/gtk+:3"
|
|
22 |
|
|
23 |
src_configure() {
|
|
24 |
# custom script
|
|
25 |
./configure --prefix="${EPREFIX}/usr" || die
|
|
26 |
}
|
20 |
27 |
|
21 |
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
28 |
src_compile() {
|
|
29 |
emake CC="$(tc-getCC)"
|
|
30 |
}
|
22 |
31 |
|
23 |
32 |
src_install() {
|
24 |
|
insinto /usr/share/icons/
|
25 |
|
for shade in elementary-xfce*; do
|
26 |
|
for doc in {AUTHORS,CONTRIBUTORS,LICENSE}; do
|
27 |
|
if [[ -f ${shade}/${doc} ]]; then
|
28 |
|
newdoc ${shade}/${doc} ${shade}-${doc}
|
29 |
|
rm -f ${shade}/${doc} || die
|
30 |
|
elif [[ -L ${shade}/${doc} ]]; then
|
31 |
|
unlink ${shade}/${doc} || die
|
32 |
|
fi
|
33 |
|
done
|
34 |
|
doins -r ${shade}
|
35 |
|
done
|
|
33 |
default
|
|
34 |
# delete dangling doc links
|
|
35 |
find -L "${D}" -type l -delete || die
|
36 |
36 |
}
|
37 |
37 |
|
38 |
|
pkg_preinst() { gnome2_icon_savelist; }
|
39 |
|
pkg_postinst() { gnome2_icon_cache_update; }
|
40 |
|
pkg_postrm() { gnome2_icon_cache_update; }
|
|
38 |
pkg_postinst() {
|
|
39 |
xdg_icon_cache_update
|
|
40 |
}
|
|
41 |
|
|
42 |
pkg_postrm() {
|
|
43 |
xdg_icon_cache_update
|
|
44 |
}
|