blob: 9c9f3783160caeb2b62317c235dd61a11f3b84cc (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Ryan Tolboom <ryan@intphsys.com>
# $Header: /var/cvsroot/gentoo-x86/x11-wm/pwm/pwm-1.0-r1.ebuild,v 1.2 2001/06/03 09:54:22 achim Exp $
S=${WORKDIR}/pwm-1.0
SRC_URI="http://www.students.tut.fi/~tuomov/dl/pwm-1.0.tar.gz"
HOMEPAGE="http://www.students.tut.fi/~tuomov/pwm"
DESCRIPTION="A lightweight window manager"
DEPEND=">=x11-base/xfree-4.0.1"
src_unpack() {
unpack ${A}
cd ${S}
cp config.h config.orig
sed -e "s:PREFIX\"/etc/pwm/\":\"/etc/X11/pwm/\":" \
config.orig > config.h
cp system.mk system.orig
sed -e "s:-g -O2:${CFLAGS}:" -e 's:\$(WARN)::' system.orig > system.mk
}
src_compile() {
try make
}
src_install() {
try make PREFIX=${D}/usr/X11R6 ETCDIR=${D}/etc/X11 DOCDIR=${D}/usr/doc/${PF} install
dodoc config.txt
exeinto /usr/X11R6/bin/wm
doexe ${FILESDIR}/pwm
}
|