summaryrefslogtreecommitdiff
blob: 28edb0b5467376f6bbd8d08b299f5d2a8921df53 (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
# $Header: /var/cvsroot/gentoo-x86/x11-wm/fluxbox/fluxbox-0.1.12-r2.ebuild,v 1.3 2002/11/04 22:42:39 mkeadle Exp $

inherit commonbox flag-o-matic

S=${WORKDIR}/${P}
DESCRIPTION="Window manager based on Blackbox and pwm -- has tabs. Remember patch applied."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
	mirror://gentoo/${PN}-gentoo.diff.bz2
	http://fluxbox.org/download/patches/unofficial-fluxbox-0.1.12-remember-patch.bz2"
HOMEPAGE="http://fluxbox.sf.net"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

mydoc="ChangeLog COPYING NEWS"
myconf="--enable-xinerama"
filter-flags -fno-exceptions
export WANT_AUTOMAKE_1_6=1
export WANT_AUTOCONF_2_5=1

src_unpack() {

if [ ! "`use nls`" ]
then
	ewarn "You currently have -nls in your USE. This build of Fluxbox will not"
	ewarn "build if nls is disabled. Please try:"
	ewarn "USE=\"nls\" emerge fluxbox"
	exit 1
fi

	unpack ${P}.tar.gz

	cd ${S}
	bzcat ${DISTDIR}/unofficial-fluxbox-0.1.12-remember-patch.bz2 | patch -p1 || die
	bzcat ${DISTDIR}/${PN}-gentoo.diff.bz2 | patch -p1 || die

	ssed -i "s:blackbox.cat:fluxbox.cat:" src/main.cc
}

src_compile() {

	commonbox_src_compile

	cd data
	make \
		pkgdatadir=/usr/share/commonbox init
}


src_install() {

	commonbox_src_install
	cd data
	insinto /usr/share/commonbox
	doins init
	insinto /usr/share/commonbox/fluxbox
	doins keys
}