Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 150992
Collapse All | Expand All

(-)/mnt/repos/gentoo/x11-misc/xtrlock/xtrlock-2.0-r1.ebuild (-16 / +11 lines)
Lines 2-43 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xtrlock/xtrlock-2.0-r1.ebuild,v 1.8 2006/01/13 12:21:05 nelchael Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xtrlock/xtrlock-2.0-r1.ebuild,v 1.8 2006/01/13 12:21:05 nelchael Exp $
4
4
5
inherit eutils flag-o-matic
5
MY_P=${P/-/_}-12
6
7
MY_P=${P/-/_}-6
8
DESCRIPTION="A simplistic screen locking program for X"
6
DESCRIPTION="A simplistic screen locking program for X"
9
SRC_URI="mirror://debian/dists/potato/main/source/x11/${MY_P}.tar.gz"
7
SRC_URI="mirror://debian/pool/main/x/xtrlock/${MY_P}.tar.gz"
10
HOMEPAGE="ftp://ftp.debian.org/debian/dists/stable/main/source/x11/"
8
HOMEPAGE="http://ftp.debian.org/debian/pool/main/x/xtrlock/"
11
9
12
SLOT="0"
10
SLOT="0"
13
LICENSE="GPL-2"
11
LICENSE="GPL-2"
14
KEYWORDS="x86 ppc ~amd64"
12
KEYWORDS="~amd64 ~ppc ~x86"
15
IUSE=""
13
IUSE=""
16
14
17
RDEPEND="|| ( (
15
RDEPEND="|| ( x11-libs/libX11 virtual/x11 )"
18
			x11-libs/libX11
19
			x11-misc/imake )
20
		virtual/x11 )"
21
16
22
DEPEND="${RDEPEND}
17
DEPEND="${RDEPEND}
23
		|| ( x11-proto/xproto virtual/x11 )"
18
		|| ( (
19
			x11-proto/xproto
20
			x11-misc/imake )
21
		virtual/x11 )"
24
22
25
src_unpack() {
23
src_unpack() {
26
	unpack ${A}
24
	unpack ${A}
27
	cd ${S}
25
	cd "${S}"
28
	epatch ${FILESDIR}/${P}-overflow.patch
29
	epatch ${FILESDIR}/${P}-gcc34.patch
30
}
26
}
31
27
32
src_compile() {
28
src_compile() {
33
	xmkmf || die
29
	xmkmf || die
34
	cp Makefile Makefile.orig
35
	make CFLAGS="${CFLAGS} -DSHADOW_PWD" xtrlock || die
30
	make CFLAGS="${CFLAGS} -DSHADOW_PWD" xtrlock || die
36
}
31
}
37
32
38
src_install() {
33
src_install() {
39
	dobin xtrlock
34
	dobin xtrlock
40
	chmod u+s ${D}/usr/bin/xtrlock
35
	chmod u+s "${D}"/usr/bin/xtrlock
41
	mv xtrlock.man xtrlock.1
36
	mv xtrlock.man xtrlock.1
42
	doman xtrlock.1
37
	doman xtrlock.1
43
}
38
}

Return to bug 150992