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-r3.ebuild
Date: Sun, 28 Nov 2010 15:02:22
Message-Id: 20101128150215.65F7720051@flycatcher.gentoo.org
1 jlec 10/11/28 15:02:15
2
3 Modified: ChangeLog
4 Added: realpath-1.15-r3.ebuild
5 Log:
6 Resepct optimization level in *FLAGS, #338407
7
8 (Portage version: 2.2.0_alpha6/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 app-misc/realpath/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 18 Jul 2010 13:14:54 -0000 1.10
24 +++ ChangeLog 28 Nov 2010 15:02:15 -0000 1.11
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-misc/realpath
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v 1.10 2010/07/18 13:14:54 nixnut Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/ChangeLog,v 1.11 2010/11/28 15:02:15 jlec Exp $
30 +
31 +*realpath-1.15-r3 (28 Nov 2010)
32 +
33 + 28 Nov 2010; Justin Lecher <jlec@g.o> +realpath-1.15-r3.ebuild,
34 + +files/realpath-1.15-build.patch:
35 + Resepct optimization level in *FLAGS, #338407
36
37 18 Jul 2010; <nixnut@g.o> realpath-1.15-r1.ebuild:
38 ppc stable #322919
39
40
41
42 1.1 app-misc/realpath/realpath-1.15-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/realpath-1.15-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/realpath/realpath-1.15-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: realpath-1.15-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-misc/realpath/realpath-1.15-r3.ebuild,v 1.1 2010/11/28 15:02:15 jlec Exp $
52
53 EAPI="3"
54 inherit eutils toolchain-funcs flag-o-matic prefix
55
56 DESCRIPTION="Return the canonicalized absolute pathname"
57 HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
58 SRC_URI="mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz
59 nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
64 IUSE="nls"
65
66 RDEPEND="!sys-freebsd/freebsd-bin"
67 DEPEND="${RDEPEND}
68 elibc_IRIX? ( dev-libs/gnulib )
69 x86-interix? ( dev-libs/gnulib )
70 virtual/libintl
71 elibc_mintlib? ( virtual/libiconv )"
72
73 src_unpack() {
74 unpack ${PN}_${PV}.tar.gz
75
76 if use nls; then
77 # Unpack the .deb file, in order to get the preprocessed man page
78 # translations. This way we avoid a dependency on app-text/po4a.
79 mkdir deb
80 cd deb
81 unpack ${PN}_${PV}_i386.deb
82 unpack ./data.tar.gz
83 gunzip -r usr/share/man || die "gunzip failed"
84 fi
85 }
86
87 src_prepare() {
88 use nls || epatch "${FILESDIR}"/${P}-nonls.patch
89 epatch "${FILESDIR}"/${P}-build.patch
90 epatch "${FILESDIR}"/${PN}-1.14-no-po4a.patch
91 epatch "${FILESDIR}"/${P}-prefix.patch
92 eprefixify common.mk
93 }
94
95 src_compile() {
96 tc-export CC
97 use !elibc_glibc && append-libs -lintl
98 [[ ${CHOST} == *-mint* ]] && append-libs "-liconv"
99 if [[ ${CHOST} == *-irix* || ${CHOST} == *-interix[35]* ]] ; then
100 append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include
101 append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/$(get_libdir)
102 append-libs -lgnu
103 fi
104
105 emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \
106 || die "emake failed"
107 }
108
109 src_install() {
110 emake VERSION="${PV}" SUBDIRS="src man $(use nls && echo po)" \
111 DESTDIR="${D}" install || die "emake install failed"
112 newdoc debian/changelog ChangeLog.debian || die
113
114 if use nls; then
115 local dir
116 for dir in "${WORKDIR}"/deb/usr/share/man/*; do
117 [ -f "${dir}"/man1/realpath.1 ] || continue
118 newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1 \
119 || die "newman failed"
120 done
121 fi
122 }