summaryrefslogtreecommitdiff
blob: 0d854b8ff439c50ceb3a897f143d52c729a936be (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/fluxspace/fluxspace-0.0.3.ebuild,v 1.6 2005/07/09 16:30:55 swegener Exp $

IUSE=""
DESCRIPTION="Enhancements for workspace management within Fluxbox."
SRC_URI="http://www.isomedia.com/homes/stevencooper/files/${P}.tar.gz"
HOMEPAGE="http://www.isomedia.com/homes/stevencooper/"
DEPEND="x11-wm/fluxbox
		x11-misc/idesk
		rox-base/rox
		media-libs/imlib2
		dev-lang/python
		dev-python/pyxml
		dev-lang/swig"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"

myconf="--prefix=/usr"

src_compile() {
	export LDFLAGS="-lstdc++"
	econf ${myconf} || die
	emake || die
}

src_install () {
	einstall || die
	dosym /usr/lib/python2.2/site-packages/fluxspace.py /usr/lib/python2.2/site-packages/fluxspace/__init__.py
	dosym /usr/lib/libfluxspace.so /usr/lib/python2.2/site-packages/_fluxspace.so
	dodoc README COPYING AUTHORS ChangeLog NEWS README TODO
}

pkg_postinst() {
	# there is a typo in the xml file, so i'll fix it =)

	sed -e "s/no\"\\\/no\"\//g" /usr/share/fluxspace/examples/fluxspace.xml > /tmp/fluxspace.xml
	cp -f /tmp/fluxspace.xml /usr/share/fluxspace/examples/fluxspace.xml
	rm -f /tmp/fluxspace.xml

	einfo
	einfo "  Copy /usr/share/fluxspace/examples/fluxspace.xml to your"
	einfo "  ~/.fluxbox and edit it!"
	einfo "  (just to make it work change all the \"no\" to \"yes\")"
	einfo
	einfo "  In your ~/.fluxbox/init change:"
	einfo "                       session.screen0.rootCommand:"
	einfo "  to:"
	einfo "                       session.screen0.rootCommand:    fluxspace"
	einfo
}