summaryrefslogtreecommitdiff
blob: 0b2cb03f8e7b8ec92adb6d438092f0c315520416 (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
61
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Karl Trygve Kalleberg <karltk@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/fluxbox/fluxbox-0.1.7-r3.ebuild,v 1.3 2002/03/21 02:48:58 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Window manager based on BlackBox"
SRC_URI="http://download.sourceforge.net/fluxbox/fluxbox-${PV}.tar.gz http://fluxbox.sourceforge.net/download/patches/${P}-bugfix1.patch"
HOMEPAGE="http://fluxbox.sf.net"

DEPEND="virtual/x11
	virtual/glibc
	nls? ( >=sys-devel/gettext-0.10.38 ) "
	
RDEPEND="$DEPEND"

src_unpack() {
	unpack ${P}.tar.gz
	cd ${S}
	patch -p1 < ${DISTDIR}/${P}-bugfix1.patch
}

PROVIDE="virtual/blackbox"

src_compile() {
	local myconf
	use nls && myconf="${myconf} --enable-nls" \
		|| myconf="${myconf} --disable-nls"
	use kde && myconf="${myconf} --enable-kde" \
		&& export KDEDIR=/usr/kde/2 \
		|| myconf="${myconf} --disable-kde"
	use gnome && myconf="${myconf --enable-gnome" \
		|| myconf="${myconf} --disable-gnome"
	 
	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$myconf || die "./configure failed"
		
	emake || die
}

src_install () {
	make \
		prefix=${D}/usr \
		sysconfdir=${D}/etc/X11/fluxbox \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die

	dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS
	docinto data
	dodoc data/README*

	dodir /etc/X11/Sessions
	echo "/usr/bin/fluxbox" > ${D}/etc/X11/Sessions/fluxbox
	chmod +x ${D}/etc/X11/Sessions/fluxbox

}