summaryrefslogtreecommitdiff
blob: 9c50700611bb227c73b1be6a6604451f7b5eba70 (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
62
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/waimea/waimea-0.5.0_pre040506.ebuild,v 1.9 2005/05/05 02:47:10 vapier Exp $

inherit eutils

MY_P="${P%_pre*}"	# 0.5.0_pre040506 -> 0.5.0

S="${WORKDIR}/${MY_P}"
DESCRIPTION="Window manager based on BlackBox"
# Temporary URL until SF's CVS is back online
SRC_URI="http://www.cs.umu.se/~c99drn/waimea/${P/_pre/-}.tar.gz"
HOMEPAGE="http://www.waimea.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="truetype xinerama svg"

DEPEND="virtual/x11
	>=x11-libs/cairo-0.1.22
	svg? ( x11-libs/libsvg-cairo )"

PROVIDE="virtual/blackbox"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${MY_P}-64bit-clean.patch
	epatch ${FILESDIR}/${MY_P}-font.patch
	if has_version '>=x11-libs/cairo-0.3' ; then
		epatch ${FILESDIR}/${MY_P}-includes.patch
	fi
}

src_compile() {
	econf \
		`use_enable xinerama` \
		`use_enable truetype xft` \
		`use_enable svg ` \
		--enable-shape \
		--enable-render \
		--enable-randr \
		--enable-pixmap \
		|| die
	emake || die
}

src_install() {
	einstall sysconfdir=${D}/etc/X11/waimea || die

	dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS

	exeinto /etc/X11/Sessions
	echo "/usr/bin/waimea" > waimea
	doexe waimea
}

pkg_postinst() {
	einfo "Please read the README in /usr/share/doc/${PF}"
	einfo "for info on setting up and configuring waimea"
}