Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/realpath: ChangeLog realpath-1.15-r1.ebuild
Date: Fri, 30 Apr 2010 17:09:56
Message-Id: 20100430170952.868D32C04C@corvid.gentoo.org
1 jlec 10/04/30 17:09:52
2
3 Modified: ChangeLog
4 Added: realpath-1.15-r1.ebuild
5 Log:
6 Fix for #300657, thanks Gianluigi Tiesi for providing the patches
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 app-misc/realpath/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/realpath/ChangeLog?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/realpath/ChangeLog?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/realpath/ChangeLog?r1=1.2&r2=1.3
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- ChangeLog 1 Apr 2010 17:14:14 -0000 1.2
23 +++ ChangeLog 30 Apr 2010 17:09:52 -0000 1.3
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-misc/realpath
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v 1.2 2010/04/01 17:14:14 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v 1.3 2010/04/30 17:09:52 jlec Exp $
29 +
30 +*realpath-1.15-r1 (30 Apr 2010)
31 +
32 + 30 Apr 2010; Justin Lecher <jlec@g.o> +realpath-1.15-r1.ebuild,
33 + +files/realpath-1.15-nonls.patch:
34 + Fix for #300657, thanks Gianluigi Tiesi for providing the patches
35
36 01 Apr 2010; Raúl Porcel <armin76@g.o> realpath-1.15.ebuild:
37 m68k/s390/sh stable
38
39
40
41 1.1 app-misc/realpath/realpath-1.15-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/realpath/realpath-1.15-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/realpath/realpath-1.15-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: realpath-1.15-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/realpath-1.15-r1.ebuild,v 1.1 2010/04/30 17:09:52 jlec Exp $
51
52 EAPI=2
53 inherit eutils toolchain-funcs
54
55 DESCRIPTION="Return the canonicalized absolute pathname"
56 HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
57 SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz
58 nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
63 IUSE="nls"
64
65 RDEPEND="!sys-freebsd/freebsd-bin"
66
67 src_unpack() {
68 unpack ${PN}_${PV}.tar.gz
69
70 if use nls; then
71 # Unpack the .deb file, in order to get the preprocessed man page
72 # translations. This way we avoid a dependency on app-text/po4a.
73 mkdir deb
74 cd deb
75 unpack ${PN}_${PV}_i386.deb
76 unpack ./data.tar.gz
77 gunzip -r usr/share/man || die "gunzip failed"
78 else
79 epatch "${FILESDIR}"/${PN}-1.15-nonls.patch
80 fi
81 }
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${PN}-1.14-build.patch
85 epatch "${FILESDIR}"/${PN}-1.14-no-po4a.patch
86 }
87
88 src_compile() {
89 tc-export CC
90 emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \
91 || die "emake failed"
92 }
93
94 src_install() {
95 emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \
96 DESTDIR="${D}" install || die "emake install failed"
97 newdoc debian/changelog ChangeLog.debian
98
99 if use nls; then
100 local dir
101 for dir in "${WORKDIR}"/deb/usr/share/man/*; do
102 [ -f "${dir}"/man1/realpath.1 ] || continue
103 newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1 \
104 || die "newman failed"
105 done
106 fi
107 }