summaryrefslogtreecommitdiff
blob: 117f03bbb4bdb79ef60b56f491049f6d036dd0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

MY_PN=Xfce-Theme-Manager
MY_P=${MY_PN}-${PV}

DESCRIPTION="An alternative theme manager for The Xfce Desktop Environment"
HOMEPAGE="http://khapplications.darktech.org/pages/apps.html#themeed"
SRC_URI="https://dl.dropboxusercontent.com/s/bh16k3am8q7zvat/${MY_P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=dev-libs/glib-2.30
	>=x11-libs/gtk+-2.24:2
	x11-libs/libXcursor
	>=xfce-base/libxfce4ui-4.10:=
	>=xfce-base/xfconf-4.10:=
	>=xfce-base/xfdesktop-4.10:="
DEPEND="${RDEPEND}
	virtual/pkgconfig"

S=${WORKDIR}/${MY_P}

src_prepare() {
	local PATCHES=(
		"${FILESDIR}"/${PN}-0.3.6-format-security.patch
	)

	default

	sed -i \
		-e '/^Cat/s:;;Settings::' \
		-e '/^Cat/s:Gnome:GNOME:' \
		${MY_PN}/resources/pixmaps/${MY_PN}.desktop || die

	local desktopversion=10
	has_version '>=xfce-base/xfdesktop-4.11' && desktopversion=11

	sed -i \
		-e '/^CFLAGS/s:-Wall:& ${CFLAGS}:' \
		-e '/^CXXFLAGS/s:-Wall:& ${CXXFLAGS}:' \
		-e "/^desktopversion/s:=.*:=${desktopversion}:" \
		configure || die
}

src_install() {
	default
	find "${D}" -name '*.gz' -exec gzip -d {} + || die
	rm -f "${ED%/}"/usr/share/${MY_PN}/docs/gpl-3.0.txt || die
}