Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 269905 | Differences between
and this patch

Collapse All | Expand All

(-)realpath-1.14-r1.ebuild (-2 / +26 lines)
Lines 7-21 Link Here
7
7
8
DESCRIPTION="Return the canonicalized absolute pathname"
8
DESCRIPTION="Return the canonicalized absolute pathname"
9
HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
9
HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
10
SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz"
10
SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz
11
	nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )"
11
12
12
LICENSE="GPL-2"
13
LICENSE="GPL-2"
13
SLOT="0"
14
SLOT="0"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
15
IUSE=""
16
IUSE="nls"
16
17
17
RDEPEND="!sys-freebsd/freebsd-bin"
18
RDEPEND="!sys-freebsd/freebsd-bin"
18
19
20
src_unpack() {
21
	unpack ${PN}_${PV}.tar.gz
22
23
	if use nls; then
24
		# Unpack the .deb file, in order to get the preprocessed man page
25
		# translations. This way we avoid a dependency on app-text/po4a.
26
		mkdir deb
27
		cd deb
28
		unpack ${PN}_${PV}_i386.deb
29
		unpack ./data.tar.gz
30
		gunzip -r usr/share/man || die "gunzip failed"
31
	fi
32
}
33
19
src_prepare() {
34
src_prepare() {
20
	epatch "${FILESDIR}"/${P}-build.patch
35
	epatch "${FILESDIR}"/${P}-build.patch
21
	epatch "${FILESDIR}"/${P}-no-po4a.patch
36
	epatch "${FILESDIR}"/${P}-no-po4a.patch
Lines 29-32 Link Here
29
src_install() {
44
src_install() {
30
	emake VERSION="${PV}" DESTDIR="${D}" install || die "emake install failed"
45
	emake VERSION="${PV}" DESTDIR="${D}" install || die "emake install failed"
31
	newdoc debian/changelog ChangeLog.debian
46
	newdoc debian/changelog ChangeLog.debian
47
48
	if use nls; then
49
		local dir
50
		for dir in "${WORKDIR}"/deb/usr/share/man/*; do
51
			[ -f "${dir}"/man1/realpath.1 ] || continue
52
			newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1 \
53
				|| die "newman failed"
54
		done
55
	fi
32
}
56
}

Return to bug 269905