summaryrefslogtreecommitdiff
blob: 9b8e753272cb22f76d37cdf55682d89da6cdab20 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/pekwm/pekwm-0.1.3-r1.ebuild,v 1.2 2003/09/04 07:41:11 msterret Exp $

IUSE=""

S="${WORKDIR}/${P}"

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

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

DEPEND="dev-util/pkgconfig
	virtual/x11
	perl? dev-libs/libpcre"

src_compile() {
	if pkg-config xft
	    then
		myconf="${myconf} --disable-xft"
	    else
		myconf="${myconf} --enable-xft"
	fi
	use perl \
		&& myconf="${myconf} --enable-pcre" \
		|| myconf="${myconf} --disable-pcre"
	econf \
	    --enable-xinerama \
	    --enable-harbour \
	    ${myconf} || die
	emake || die
}

src_install() {
	exeinto /usr/bin
	doexe src/pekwm

	insinto /usr/share/${PN}/themes/default
	doins data/themes/default/*.xpm data/themes/default/theme

	exeinto /usr/share/${PN}/scripts
	doexe data/scripts/pekwm*

	insinto /usr/share/${PN}
	cd ${S}/data
	doins autoproperties config keys menu mouse start

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