summaryrefslogtreecommitdiff
blob: 02899f449703299246374f4f7beffd6365b55dfd (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/fakeroot/fakeroot-1.0.7.ebuild,v 1.1 2004/11/02 21:22:40 agriffis Exp $

DESCRIPTION="Run commands in an environment faking root privileges"
HOMEPAGE="http://joostje.op.het.net/fakeroot/index.html"
SRC_URI="mirror://debian/pool/main/f/fakeroot/${PN}_${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64 ~ia64"
IUSE=""

RDEPEND="virtual/libc"

src_compile() {
	mkdir obj-tcp obj

	cd ${S}/obj-tcp || die
	../configure \
		--prefix=/usr --mandir=/usr/share/man \
		--with-ipc=tcp --program-suffix=-tcp || die
	emake || die

	cd ${S}/obj || die
	../configure \
		--prefix=/usr --mandir=/usr/share/man || die
	emake || die
}

src_install() {
	local f

	cd ${S}/obj-tcp
	make DESTDIR=${D} install || die "install problem"
	cd ${D}/usr/lib; for f in *; do mv -v ${f} ${f%%.*}-tcp.${f#*.}; done
	sed -i -e 's/\(libfakeroot\)\./\1-tcp./g' libfakeroot-tcp.la

	cd ${S}/obj
	make DESTDIR=${D} install || die "install problem"
}