1 |
commit: e3cfabe13e91df178207d14493ef57a52fa1c19d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 13:22:00 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 13:23:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3cfabe1 |
7 |
|
8 |
app-text/enscript: add Prefix changes |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
app-text/enscript/enscript-1.6.6.ebuild | 3 +- |
14 |
.../files/enscript-1.6.4-fsf-gcc-darwin.patch | 37 ++++++++++++++++++++++ |
15 |
2 files changed, 39 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-text/enscript/enscript-1.6.6.ebuild b/app-text/enscript/enscript-1.6.6.ebuild |
18 |
index 7c4cc7ab16e..d84f32db4b8 100644 |
19 |
--- a/app-text/enscript/enscript-1.6.6.ebuild |
20 |
+++ b/app-text/enscript/enscript-1.6.6.ebuild |
21 |
@@ -9,7 +9,7 @@ DESCRIPTION="Powerful text-to-postscript converter" |
22 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
23 |
HOMEPAGE="https://www.gnu.org/software/enscript/enscript.html" |
24 |
|
25 |
-KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86" |
26 |
+KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris" |
27 |
SLOT="0" |
28 |
LICENSE="GPL-3" |
29 |
IUSE="nls ruby" |
30 |
@@ -24,6 +24,7 @@ RDEPEND="nls? ( virtual/libintl )" |
31 |
src_prepare() { |
32 |
epatch "${FILESDIR}"/enscript-1.6.4-ebuild.st.patch |
33 |
epatch "${FILESDIR}"/enscript-1.6.5.2-php.st.patch |
34 |
+ epatch "${FILESDIR}"/enscript-1.6.4-fsf-gcc-darwin.patch |
35 |
use ruby && epatch "${FILESDIR}"/enscript-1.6.2-ruby.patch |
36 |
sed -i src/tests/passthrough.test -e 's|tail +2|tail -n +2|g' || die |
37 |
default |
38 |
|
39 |
diff --git a/app-text/enscript/files/enscript-1.6.4-fsf-gcc-darwin.patch b/app-text/enscript/files/enscript-1.6.4-fsf-gcc-darwin.patch |
40 |
new file mode 100644 |
41 |
index 00000000000..3ea4bf97efd |
42 |
--- /dev/null |
43 |
+++ b/app-text/enscript/files/enscript-1.6.4-fsf-gcc-darwin.patch |
44 |
@@ -0,0 +1,37 @@ |
45 |
+darwin: __private_extern__ is an Apple-ism, we really don't want |
46 |
+ |
47 |
+In particular FSF GCC barfs about this, which is much preferred over |
48 |
+ancient gcc-apple (4.2.1). |
49 |
+ |
50 |
+--- compat/regex.c |
51 |
++++ compat/regex.c |
52 |
+@@ -5539,9 +5539,6 @@ |
53 |
+ It returns 0 if it succeeds, nonzero if it doesn't. (See regex.h for |
54 |
+ the return codes and their meanings.) */ |
55 |
+ |
56 |
+-#ifdef __APPLE__ |
57 |
+-__private_extern__ |
58 |
+-#endif |
59 |
+ int |
60 |
+ regcomp (preg, pattern, cflags) |
61 |
+ regex_t *preg; |
62 |
+@@ -5620,9 +5617,6 @@ |
63 |
+ |
64 |
+ We return 0 if we find a match and REG_NOMATCH if not. */ |
65 |
+ |
66 |
+-#ifdef __APPLE__ |
67 |
+-__private_extern__ |
68 |
+-#endif |
69 |
+ int |
70 |
+ regexec (preg, string, nmatch, pmatch, eflags) |
71 |
+ const regex_t *preg; |
72 |
+@@ -5728,9 +5722,6 @@ |
73 |
+ |
74 |
+ /* Free dynamically allocated space used by PREG. */ |
75 |
+ |
76 |
+-#ifdef __APPLE__ |
77 |
+-__private_extern__ |
78 |
+-#endif |
79 |
+ void |
80 |
+ regfree (preg) |
81 |
+ regex_t *preg; |