summaryrefslogtreecommitdiff
blob: b902018842adc662be7ea1771d7f34a981595a30 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Spider <spider@gentoo.org>
# Maintainer: Spider <spider@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/waimea/waimea-0.3.2.ebuild,v 1.2 2002/07/08 13:47:11 aliz Exp $
 
S=${WORKDIR}/${P}
DESCRIPTION="Window manager based on BlackBox"
SRC_URI="http://download.sourceforge.net/${PN}/${P}.tar.gz
http://130.239.134.83/waimea/files/unstable/source/${P}.tar.gz"
HOMEPAGE="http://waimea.sf.net"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="virtual/x11 media-libs/imlib2"
	
RDEPEND="${DEPEND}"
PROVIDE="virtual/blackbox"

src_compile() {
	local myconf
	econf || die "configure failure whine whine"
	emake || die
}

src_install () {
	make \
		prefix=${D}/usr \
		sysconfdir=${D}/etc/X11/waimea \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		datadir=${D}/usr/share \
		install || die
	
	insinto /etc/skel
	newins data/waimearc.example .waimearc
	
	# just for careful
	insinto /usr/share/Waimea/
	doins data/waimearc.example
	

	dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS

	dodir /etc/X11/Sessions
	echo "/usr/bin/waimea" > ${D}/etc/X11/Sessions/waimea
	chmod +x ${D}/etc/X11/Sessions/waimea
}
pkg_postinst () {
	einfo "unfortunately the older version of this package broke the /etc/skel/.waimearc and made it a directory, please remove this if you want the package to install perfectly"
	einfo "copy /etc/skel/.waimearc to your homedir (cp -a /etc/skel/.waimearc $HOME)"
	
}