summaryrefslogtreecommitdiff
blob: f305465047b829a40644a929ec5d5abed99487cf (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
56
57
58
59
60
# Copyright 1999-2007 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-r1.ebuild,v 1.9 2007/02/19 00:50:31 dirtyepic Exp $

inherit eutils

IUSE=""
DESCRIPTION="Enhancements for workspace management within Fluxbox."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://fluxspace.sourceforge.net/"

DEPEND="dev-lang/swig"
RDEPEND="x11-wm/fluxbox
		>=dev-lang/python-2.1
		dev-python/pyxml
		media-libs/imlib2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ppc ~sparc x86"

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}"/${P}-gcc41.patch
}

src_compile() {
	econf || die "Configure failed"
	emake || die "Compile failed"
}

src_install () {
	einstall || die "Install failed"
	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() {
	elog " NOTES:"
	elog
	elog " 1. If you want to use the optional features for idesk and rox,"
	elog "    you must emerge them separately. (e.g., 'emerge idesk')"
	elog
	elog " 2. Copy /usr/share/fluxspace/examples/fluxspace.xml to"
	elog "    ~/.fluxbox and edit the file.  Change the settings from"
	elog "    \"no\" to \"yes\" depending on what features you want enabled."
	elog
	elog " 3. Edit ~/.fluxbox/init to 'turn on' fluxspace.  Change line:"
	elog "        session.screen0.rootCommand:"
	elog "    to..."
	elog "        session.screen0.rootCommand: fluxspace"
	elog
	elog " 4. Full documentation is available online at:"
	elog "    http://sourceforge.net/docman/display_doc.php?docid=16037&group_id=76737"
	elog
}