summaryrefslogtreecommitdiff
blob: a1edbae26dbc8812c715a28cd636982e54b0bf16 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/blwm/blwm-1.0.4.ebuild,v 1.3 2005/04/03 14:33:37 usata Exp $

inherit gnuconfig

DESCRIPTION="BLWM is a Windows 2000 like window manager localized for Brazil."
HOMEPAGE="http://www.blanes.com.br"
SRC_URI="http://labdid.if.usp.br/~blanes/arquivos/${P}.tar.gz"

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

RDEPEND="virtual/x11"

DEPEND="${RDEPEND}
	=sys-devel/autoconf-2.13*
	=sys-devel/automake-1.4*
	sys-devel/flex
	sys-devel/bison"

src_compile(){
	export WANT_AUTOCONF=2.1
	export WANT_AUTOMAKE=1.4
	aclocal || die
	autoheader || die
	autoconf || die
	# automake fails on some systems, but harmless to build
	automake

	econf --with-blwmdir=/usr/share/blwm --with-confdir=/etc/blwm || die
	emake || die
}

src_install(){
	make DESTDIR=${D} install || die

	dodoc doc/*
	insinto /etc/skel
	newins rc/system.blwmrc .blwmrc

	exeinto /etc/X11/Sessions
	echo "#!/bin/bash" > blwm
	echo "/usr/bin/blwm" >> blwm
	doexe blwm
}