blob: 2a7ec6a3d9e033c543cb2f7d0ad198b433dc8fed (
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
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/realpath/realpath-1.9.28.ebuild,v 1.4 2007/02/04 01:56:12 dirtyepic Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Return the canonicalized absolute pathname"
HOMEPAGE="http://packages.debian.org/unstable/utils/realpath.html"
SRC_URI="mirror://debian/pool/main/d/dwww/dwww_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86"
IUSE=""
# tests only operate upon things we don't use
RESTRICT="test"
RDEPEND="!sys-freebsd/freebsd-bin"
S=${WORKDIR}/dwww-${PV}
src_unpack() {
if use userland_Darwin; then
local dirname="dwww-${PV}"
tar xzf ${DISTDIR}/${A} \
${dirname}/Makefile \
${dirname}/realpath.c \
${dirname}/README \
${dirname}/TODO \
${dirname}/BUGS \
${dirname}/man/realpath.1 || die "unpack failed."
else
unpack ${A}
fi
cd "${S}"
epatch "${FILESDIR}"/${P}-Makefile.patch
sed -i -e "s:gcc:$(tc-getCC):" Makefile || die "sed failed."
}
src_compile() {
make LIBS='' VERSION="$PV" realpath || die
}
src_install() {
dobin realpath || die
doman man/realpath.1
dodoc README TODO BUGS
}
|