summaryrefslogtreecommitdiff
blob: 906c94b778632c1c6762e3c197a3bdbfdb8758c1 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/wmpager/wmpager-1.2.ebuild,v 1.6 2003/09/05 23:29:05 msterret Exp $

S=${WORKDIR}/${P}
HOMEPAGE="http://wmpager.sourceforge.net/"
DESCRIPTION="wmpager is a simple pager docklet for the Window Maker."
SRC_URI="mirror://sourceforge/wmpager/wmpager-${PV}.tar.gz"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~x86"
DEPEND="x11-base/xfree
		virtual/glibc"
RDEPEND=""

src_compile() {
	cd ${S}
	mv Makefile Makefile.orig
	sed -e "s:INSTALLDIR = .*:INSTALLDIR=${D}/usr:" Makefile.orig > Makefile
	cd src
	mv wmpager.c wmpager.c.orig
	sed -e "s:WMPAGER_DEFAULT_INSTALL_DIR .*:WMPAGER_DEFAULT_INSTALL_DIR \"/usr/share/wmpager\":" wmpager.c.orig > wmpager.c
	cd ..
	emake || die
}

src_install() {
	cd ${S}
	emake install || die
	dodoc README
}