summaryrefslogtreecommitdiff
blob: 17351d33a0de87b1683f231fbc480f7454754cb0 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-themes/fluxbox-styles-fluxmod/fluxbox-styles-fluxmod-20040502.ebuild,v 1.5 2004/08/11 02:53:28 tgall Exp $

DESCRIPTION="A collection of FluxBox themes from FluxMod"
HOMEPAGE="http://fluxmod.dk"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="creativecommons-by-nc-sa-1.0"

SLOT="0"
KEYWORDS="x86 sparc mips ~ppc ~alpha ~hppa ~amd64 ~ia64 ppc64"

IUSE=""
DEPEND=">=sys-apps/sed-4"
RDEPEND=">=x11-wm/fluxbox-0.9.8"

src_unpack() {
	unpack ${A}
	cd ${S}
	# comment out every rootcommand
	find . -name '*.cfg' -exec \
		sed -i "{}" -e 's-^\(rootcommand\)-!!! \1-i' \;
}

src_install() {
	cd ${S}
	for d in styles backgrounds ; do
		insinto /usr/share/fluxbox/${d}
		cp -R ${d}/* ${D}/usr/share/fluxbox/${d}/
	done
}

pkg_postinst() {
	einfo " "
	einfo "These styles are installed into /usr/share/fluxbox, which will "
	einfo "show up in Fluxbox Menu > System Styles by default. You will have"
	einfo "to either restart Fluxbox or use Fluxbox Menu > Reload config "
	einfo "for changes to show up."
	einfo " "
}