diff options
author | Ryan Tolboom <ryan@gentoo.org> | 2001-10-14 21:55:53 +0000 |
---|---|---|
committer | Ryan Tolboom <ryan@gentoo.org> | 2001-10-14 21:55:53 +0000 |
commit | f1697355fba558c82679784b62bdc351dfc16284 (patch) | |
tree | cca84b690084b7bffec55b434eb4d4fc8d6035c3 /x11-wm | |
parent | updated, lots of bugfixes (diff) | |
download | gentoo-2-f1697355fba558c82679784b62bdc351dfc16284.tar.gz gentoo-2-f1697355fba558c82679784b62bdc351dfc16284.tar.bz2 gentoo-2-f1697355fba558c82679784b62bdc351dfc16284.zip |
Now reads its config files correctly.
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/pwm/pwm-1.0-r3.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/x11-wm/pwm/pwm-1.0-r3.ebuild b/x11-wm/pwm/pwm-1.0-r3.ebuild new file mode 100644 index 000000000000..9f55f4caa9b3 --- /dev/null +++ b/x11-wm/pwm/pwm-1.0-r3.ebuild @@ -0,0 +1,58 @@ +# 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-r3.ebuild,v 1.1 2001/10/14 21:55:53 ryan Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="A lightweight window manager" +SRC_URI="http://www.students.tut.fi/~tuomov/dl/${P}.tar.gz" +HOMEPAGE="http://www.students.tut.fi/~tuomov/pwm" + +DEPEND="virtual/x11" + + +src_unpack() { + + unpack ${A} + + cd ${S} + cp Makefile Makefile.orig + sed -e "s:\$(DOCDIR)/pwm:\$(DOCDIR)/${PF}:g" \ + -e "s:^MANDIR=.*$::" \ + -e "s:^DOCDIR=.*$::" \ + -e "s:^ETCDIR=.*$::" \ + Makefile.orig >Makefile + cp system.mk system.orig + sed -e "s:-g -O2:${CFLAGS}:" \ + -e 's:\$(WARN)::' \ + system.orig >system.mk + cp config.h config.orig + sed -e "s:^#define CF_SYS_CONFIG_LOCATION.*$:#define CF_SYS_CONFIG_LOCATION \"/etc/X11/pwm/\":"\ + config.orig >config.h +} + +src_compile() { + + make PREFIX=/usr \ + MANDIR=/usr/share/man/man1 \ + DOCDIR=/usr/share/doc \ + ETCDIR=/etc/X11 \ + || die +} + +src_install() { + + make PREFIX=${D}/usr \ + MANDIR=${D}/usr/share/man/man1 \ + DOCDIR=${D}/usr/share/doc \ + ETCDIR=${D}/etc/X11 \ + install || die + + if [ "`use gnome`" ] ; then + + insinto /usr/share/gnome/wm-properties + doins support/PWM.desktop + fi + + dodoc ChangeLog README +} |