1 |
commit: 56cde5cfef6dfaeed1eb8a76a0d06a176f913c49 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 13:31:46 2015 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 13:32:05 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56cde5cf |
7 |
|
8 |
sys-apps/grep: Bump to version 2.22 |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-apps/grep/Manifest | 1 + |
14 |
sys-apps/grep/grep-2.22.ebuild | 46 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 47 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest |
18 |
index 9bd956a..416d1e37 100644 |
19 |
--- a/sys-apps/grep/Manifest |
20 |
+++ b/sys-apps/grep/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST grep-2.21-heap_buffer_overrun.patch 3302 SHA256 4bc7e744fd34b268a798daf6a5aa85f55c141747149fa7b015eefbf9318ed478 SHA512 eaea33238f179b17dd152ed27a07c211646d9572be250eb7997c25ea0c8de232d21d8bc1b1e865b26545e6817e5c116e18d9115fb497d39426ac8212839f0f82 WHIRLPOOL 5ead7c22c8fe98289322a03685e9fc04e834a01144c55c9ea3b1970fa61b400ce669e6947cb3564fbbba5c7ddf079fd30e66352e4f6eed888e8fe883e369e601 |
23 |
DIST grep-2.21.tar.xz 1261548 SHA256 5244a11c00dee8e7e5e714b9aaa053ac6cbfa27e104abee20d3c778e4bb0e5de SHA512 bc894325f89d37413c773d4812cb24180560037ccc8d72c015462043ef3479ea7eefd62557e3a9d191d6d94c68262563d3c68e634acd4e77ba56e96c92805dfd WHIRLPOOL 2272286c10695a51eecafcc5ca8986adb5486d4494b284904f588717c6fb06de37933faa5f62eabf0ecc856334b3a1179b864dedc06f223047471168d2d86bb0 |
24 |
+DIST grep-2.22.tar.xz 1297864 SHA256 ca91d22f017bfcb503d4bc3b44295491c89a33a3df0c3d8b8614f2d3831836eb SHA512 c0756e4aa360cc29b3123384eef654743df108cc606372142c79893a09a0c8053b03d048768e972221e0ed96f378b8564f848f9acc180fca499f0494fbe9113c WHIRLPOOL 612c72fd61605a4f4e6052980db72ff2e6dfa6d0a975186ebd8f9101ab4b62caf31c5a634318156df6407e44456edf74ea1070d489da0625fee1dc029b978404 |
25 |
|
26 |
diff --git a/sys-apps/grep/grep-2.22.ebuild b/sys-apps/grep/grep-2.22.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..c1392f6 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/grep/grep-2.22.ebuild |
31 |
@@ -0,0 +1,46 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="4" |
37 |
+ |
38 |
+inherit eutils flag-o-matic toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="GNU regular expression matcher" |
41 |
+HOMEPAGE="https://www.gnu.org/software/grep/" |
42 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
43 |
+ mirror://gentoo/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
+IUSE="nls pcre static" |
49 |
+ |
50 |
+LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )" |
51 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
52 |
+ nls? ( virtual/libintl ) |
53 |
+ virtual/libiconv" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ virtual/pkgconfig |
56 |
+ nls? ( sys-devel/gettext ) |
57 |
+ static? ( ${LIB_DEPEND} )" |
58 |
+ |
59 |
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ sed -i \ |
63 |
+ -e "s:@SHELL@:${EPREFIX}/bin/sh:g" \ |
64 |
+ src/egrep.sh || die #523898 |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ use static && append-ldflags -static |
69 |
+ # Always use pkg-config to get lib info for pcre. |
70 |
+ export ac_cv_search_pcre_compile=$( |
71 |
+ usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" '' |
72 |
+ ) |
73 |
+ econf \ |
74 |
+ --bindir="${EPREFIX}"/bin \ |
75 |
+ $(use_enable nls) \ |
76 |
+ $(use_enable pcre perl-regexp) |
77 |
+} |