Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/grep: ChangeLog grep-2.5.3-r1.ebuild
Date: Tue, 07 Oct 2008 09:01:42
Message-Id: E1Kn8Ro-0007Gu-4Q@stork.gentoo.org
1 robbat2 08/10/07 09:01:40
2
3 Modified: ChangeLog
4 Added: grep-2.5.3-r1.ebuild
5 Log:
6 Fix bug #238235. This is a very important upgrade for anybody using the 2.5.3-r0, which breaks grep -i in UTF-8 environments.
7 (Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
8
9 Revision Changes Path
10 1.76 sys-apps/grep/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/grep/ChangeLog?rev=1.76&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/grep/ChangeLog?rev=1.76&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/grep/ChangeLog?r1=1.75&r2=1.76
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/grep/ChangeLog,v
19 retrieving revision 1.75
20 retrieving revision 1.76
21 diff -p -w -b -B -u -u -r1.75 -r1.76
22 --- ChangeLog 19 Sep 2008 21:28:39 -0000 1.75
23 +++ ChangeLog 7 Oct 2008 09:01:39 -0000 1.76
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-apps/grep
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/ChangeLog,v 1.75 2008/09/19 21:28:39 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/ChangeLog,v 1.76 2008/10/07 09:01:39 robbat2 Exp $
29 +
30 +*grep-2.5.3-r1 (07 Oct 2008)
31 +
32 + 07 Oct 2008; Robin H. Johnson <robbat2@g.o> +grep-2.5.3-r1.ebuild:
33 + Fix bug #238235. This is a very important upgrade for anybody using the
34 + 2.5.3-r0, which breaks grep -i in UTF-8 environments.
35
36 19 Sep 2008; Mike Frysinger <vapier@g.o> grep-2.5.3.ebuild:
37 Apply Debian patchset to fix "-o -i" failures.
38
39
40
41 1.1 sys-apps/grep/grep-2.5.3-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/grep/grep-2.5.3-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/grep/grep-2.5.3-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: grep-2.5.3-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/grep/grep-2.5.3-r1.ebuild,v 1.1 2008/10/07 09:01:39 robbat2 Exp $
51
52 inherit flag-o-matic eutils
53
54 DEB_VER="${PV}~dfsg-6"
55 DESCRIPTION="GNU regular expression matcher"
56 HOMEPAGE="http://www.gnu.org/software/grep/"
57 SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2
58 mirror://gentoo/${P}.tar.bz2
59 mirror://debian/pool/main/g/grep/grep_${DEB_VER}.diff.gz"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
64 IUSE="nls pcre static"
65
66 RDEPEND="nls? ( virtual/libintl )"
67 DEPEND="${RDEPEND}
68 pcre? ( dev-libs/libpcre )
69 nls? ( sys-devel/gettext )"
70
71 src_unpack() {
72 unpack ${A}
73 cd "${S}"
74
75 epatch "${WORKDIR}"/grep_${DEB_VER}.diff
76 EPATCH_FORCE="yes" \
77 EPATCH_SUFFIX="patch" \
78 EPATCH_MULTI_MSG="Applying Debian patchset (${DEB_VER}) ..." \
79 epatch ${P}~dfsg/debian/patches/
80
81 use static && append-ldflags -static
82 }
83
84 src_compile() {
85 econf \
86 --bindir=/bin \
87 $(use_enable nls) \
88 $(use_enable pcre perl-regexp) \
89 --without-included-regex \
90 || die "econf failed"
91
92 use static || sed -i 's:-lpcre:-Wl,-Bstatic -lpcre -Wl,-Bdynamic:g' src/Makefile
93
94 emake || die "emake failed"
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die "make install failed"
99 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
100 }