Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/grep/
Date: Mon, 28 Sep 2020 07:18:32
Message-Id: 1601277503.d325131ef40bab2699454e231209f90f4fe232bd.polynomial-c@gentoo
1 commit: d325131ef40bab2699454e231209f90f4fe232bd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 28 07:18:23 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 28 07:18:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d325131e
7
8 sys-apps/grep: Bump to version 3.5
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/grep/Manifest | 1 +
14 sys-apps/grep/grep-3.5.ebuild | 54 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/sys-apps/grep/Manifest b/sys-apps/grep/Manifest
18 index ca923bbfebe..adc41b7c6e7 100644
19 --- a/sys-apps/grep/Manifest
20 +++ b/sys-apps/grep/Manifest
21 @@ -1,2 +1,3 @@
22 DIST grep-3.3.tar.xz 1473056 BLAKE2B e1592b623d1f32d1b21d127b0d28f8f6501d4b854ff2de810d12d43292c00e6af887b038f22d0c4c45c314b6e9d73a82dec6d737519c674bb139c2ef70511aa0 SHA512 e4805dbddf7cd0f0faf412557d408509650c1ccf703bc450f10a3f727c690dbfaa1235aa81939a0e4b7ac6190f88c15ea1fcc562b343d4b4c7550f967aeb15db
23 DIST grep-3.4.tar.xz 1555820 BLAKE2B 4e1924d6d5eb66faca93b405cce9784d726a476f26a384c3b44375cb09f817008aeedaa701a30b6c1f21c030902d603a80ec80105b2d5d76eadf09b910d573a7 SHA512 0f1506bd19971fbdcb47a111277ca63e8ad045456f096980852fd0a61c860f29f4b369bbaaa5cbce4b0a81718e3e3274d9a078b491f2109baa9a02ce600ee206
24 +DIST grep-3.5.tar.xz 1586396 BLAKE2B 62c98acb29b9998e60b64cacbe82df4f03a8d8a427a060d00283506155e6acadc4d77e8b8c2fa110227715c314ac7cde38a38eff0b92eb0ec793c59ba2562ea5 SHA512 8367aa930ecf7fa5c07153666bf7991097648bd7bf4ca672e6b14e0bb806c89991ec55d2880812877761cbde1d33562f22803835d74bfcd293c2246e274306c4
25
26 diff --git a/sys-apps/grep/grep-3.5.ebuild b/sys-apps/grep/grep-3.5.ebuild
27 new file mode 100644
28 index 00000000000..a581969446e
29 --- /dev/null
30 +++ b/sys-apps/grep/grep-3.5.ebuild
31 @@ -0,0 +1,54 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic toolchain-funcs
38 +
39 +DESCRIPTION="GNU regular expression matcher"
40 +HOMEPAGE="https://www.gnu.org/software/grep/"
41 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
42 + mirror://gentoo/${P}.tar.xz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="nls pcre static"
48 +
49 +LIB_DEPEND="pcre? ( >=dev-libs/libpcre-7.8-r1[static-libs(+)] )"
50 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
51 + nls? ( virtual/libintl )
52 + virtual/libiconv"
53 +DEPEND="${RDEPEND}
54 + static? ( ${LIB_DEPEND} )"
55 +BDEPEND="
56 + virtual/pkgconfig
57 + nls? ( sys-devel/gettext )
58 +"
59 +
60 +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
61 +
62 +src_prepare() {
63 + sed -i \
64 + -e "s:@SHELL@:${EPREFIX}/bin/sh:g" \
65 + -e "s:@grep@:${EPREFIX}/bin/grep:" \
66 + src/egrep.sh || die #523898
67 +
68 + default
69 +}
70 +
71 +src_configure() {
72 + use static && append-ldflags -static
73 + # don't link against libsigsegv even when available
74 + export ac_cv_libsigsegv=no
75 + # Always use pkg-config to get lib info for pcre.
76 + export ac_cv_search_pcre_compile=$(
77 + usex pcre "$($(tc-getPKG_CONFIG) --libs $(usex static --static '') libpcre)" ''
78 + )
79 + local myeconfargs=(
80 + --bindir="${EPREFIX}"/bin
81 + $(use_enable nls)
82 + $(use_enable pcre perl-regexp)
83 + )
84 + econf "${myeconfargs[@]}"
85 +}