1 |
commit: 5608f5e8cf832bceafa92bab3d3789c9399ff47f |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 1 14:05:44 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 1 14:13:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5608f5e8 |
7 |
|
8 |
sys-apps/sed: Bump to version 4.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
11 |
|
12 |
sys-apps/sed/Manifest | 1 + |
13 |
sys-apps/sed/sed-4.5.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/sed/Manifest b/sys-apps/sed/Manifest |
17 |
index 063000c91f0..ab61ab27d0e 100644 |
18 |
--- a/sys-apps/sed/Manifest |
19 |
+++ b/sys-apps/sed/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST sed-4.2.2.tar.bz2 1059414 BLAKE2B aebe0bf90e9f9c7907e0baa8a4d1a16e59a5893198382fb9fe08ed66cab670921c0db1e07f668bf3db8dfe9bb4f0e68b9c34fd7228c70df24be043d3e7ea8d92 SHA512 dbbb0bb348fac54612d29182c09c88bda7096dea03bd94f03c580c24146e65a06db12808c6a1a9adc94548fa3843511e3e80b251cb07142110cf149eab23f573 |
22 |
DIST sed-4.3.tar.xz 1167168 BLAKE2B 5751943cb64d03afef727deba3bee7027a1611b4729c7b33497c28513b61571d1c323f1d07ab68a252a9e45d0f7c95e303f05443310dcae74bedab28160b079d SHA512 4d76a099cf7115763b79b45be5c96338750baa47e34c36075f714e022614397aa9240099d6d009e69aa4d06b6cfc14dcc0f8313442a1465f448b36fb6874a26d |
23 |
DIST sed-4.4.tar.xz 1181664 BLAKE2B 03804c209c2108cca4aa991cd68065fd03a15c726b6daf5212603835b5c046c63e9c2e4c28f76dfe165128f060db5b992c981f314d2fe230f30521545d00a468 SHA512 4e1b0a7403913f1e25047eb2292a0a9b3488b15b4463ce2803e05eaecbc2da19f477a18e6a70c992461c38ced90774415091aa2d8ce85cb74e391610d9eedb70 |
24 |
+DIST sed-4.5.tar.xz 1274252 BLAKE2B 08525659e0e01ec50e736c1665634f3816f57c48aeefa7f6bc7a152cd6c171bb4e96e5c215429fc5edbe6e1de6cc3efe4f2f3bf6865933a30dd1700e921d5b3f SHA512 f95fb27e03b2301dae63878413b4c48e40341cc676945a612e1d0bd911da3192858ae142791292a99fbdaacbc7dab2d6fccb50787c06846f99b0b3740b40c196 |
25 |
|
26 |
diff --git a/sys-apps/sed/sed-4.5.ebuild b/sys-apps/sed/sed-4.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8dba9728987 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/sed/sed-4.5.ebuild |
31 |
@@ -0,0 +1,66 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit flag-o-matic toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Super-useful stream editor" |
40 |
+HOMEPAGE="http://sed.sourceforge.net/" |
41 |
+SRC_URI="mirror://gnu/sed/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
46 |
+IUSE="acl forced-sandbox nls selinux static" |
47 |
+ |
48 |
+RDEPEND="acl? ( virtual/acl ) |
49 |
+ nls? ( virtual/libintl ) |
50 |
+ selinux? ( sys-libs/libselinux )" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ nls? ( sys-devel/gettext )" |
53 |
+ |
54 |
+src_bootstrap_sed() { |
55 |
+ # make sure system-sed works #40786 #650052 |
56 |
+ if ! type -p sed > /dev/null || has_version 'sys-apps/sed[forced-sandbox]' ; then |
57 |
+ mkdir -p "${T}/bootstrap" |
58 |
+ printf '#!/bin/sh\nexec busybox sed "$@"\n' > "${T}/bootstrap/sed" || die |
59 |
+ chmod a+rx "${T}/bootstrap/sed" |
60 |
+ PATH="${T}/bootstrap:${PATH}" |
61 |
+ fi |
62 |
+} |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # Don't use sed before bootstrap if we have to recover a broken host sed. |
66 |
+ src_bootstrap_sed |
67 |
+ |
68 |
+ default |
69 |
+ |
70 |
+ if use forced-sandbox ; then |
71 |
+ # Upstream doesn't want to add a configure flag for this. |
72 |
+ # https://lists.gnu.org/archive/html/bug-sed/2018-03/msg00001.html |
73 |
+ sed -i \ |
74 |
+ -e '/^bool sandbox = false;/s:false:true:' \ |
75 |
+ sed/sed.c || die |
76 |
+ # Make sure the sed took. |
77 |
+ grep -q '^bool sandbox = true;' sed/sed.c || die "forcing sandbox failed" |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local myconf=() |
83 |
+ if use userland_GNU; then |
84 |
+ myconf+=( --exec-prefix="${EPREFIX}" ) |
85 |
+ else |
86 |
+ myconf+=( --program-prefix=g ) |
87 |
+ fi |
88 |
+ |
89 |
+ export ac_cv_search_setfilecon=$(usex selinux -lselinux) |
90 |
+ export ac_cv_header_selinux_{context,selinux}_h=$(usex selinux) |
91 |
+ use static && append-ldflags -static |
92 |
+ myconf+=( |
93 |
+ $(use_enable acl) |
94 |
+ $(use_enable nls) |
95 |
+ ) |
96 |
+ econf "${myconf[@]}" |
97 |
+} |