summaryrefslogtreecommitdiff
blob: b2ab5881d197bd633a331ef693344eba582e7447 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/pekwm/pekwm-0.1.3-r2.ebuild,v 1.13 2006/11/14 04:33:30 omp Exp $

inherit eutils

IUSE="truetype perl xinerama"

DESCRIPTION="A small window mananger based on aewm++"
HOMEPAGE="http://www.pekwm.org/"
SRC_URI="http://pekwm.pekdon.net/files/source/${P}.tar.gz
	mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"

DEPEND="|| ( (
		xinerama? ( x11-libs/libXinerama )
		x11-libs/libXpm
		x11-libs/libXrandr
		x11-libs/libXrender
		)
		virtual/x11
	)
	truetype? ( virtual/xft )
	perl? ( dev-libs/libpcre )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PN}-manpath-gentoo.diff
}

src_compile() {
	econf \
		`use_enable truetype xft` \
		`use_enable xinerama` \
		`use_enable perl pcre` \
		--enable-harbour \
		${myconf} || die
	emake || die
}

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

	cd ${S}
	dodoc docs/pekwmdocs.txt AUTHORS ChangeLog* INSTALL LICENSE README* NEWS ROADMAP TODO
	dohtml docs/pekwmdocs.html
}