blob: e140a2379100af65e5bfe3c9bb3fb2fda3dd48fc (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmpager/wmpager-1.2-r1.ebuild,v 1.13 2010/10/27 08:52:41 s4t4n Exp $
EAPI=2
DESCRIPTION="A simple pager docklet for the WindowMaker window manager."
HOMEPAGE="http://wmpager.sourceforge.net/"
SRC_URI="mirror://sourceforge/wmpager/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~sparc x86"
IUSE=""
RDEPEND="x11-libs/libX11
x11-libs/libXpm
x11-libs/libXext"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_prepare() {
sed -i "s:\(WMPAGER_DEFAULT_INSTALL_DIR \).*:\1\"/usr/share/wmpager\":" src/wmpager.c
#Honour Gentoo CFLAGS
sed -i "s/-g/${CFLAGS}/" src/Makefile
#Honour Gentoo LDFLAGS, see bug #337604
sed -i "s/\${LIBS}/\${LIBS} \${LDFLAGS}/" src/Makefile
}
src_install() {
emake INSTALLDIR="${D}/usr" install || die
rm -rf "${D}"/usr/man
doman man/man1/*.1x
dodoc README
}
|