1 |
commit: cb4cd7feff3c370bae7a26034274efdc5c3caaa7 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Aug 25 08:26:06 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 27 04:30:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb4cd7fe |
7 |
|
8 |
dev-util/btyacc: EAPI7 revbump, improve ebuild |
9 |
|
10 |
Closes: https://bugs.gentoo.org/664546 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/9692 |
13 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
14 |
|
15 |
dev-util/btyacc/btyacc-3.0-r3.ebuild | 43 +++++++++++++++++++++++++ |
16 |
dev-util/btyacc/files/btyacc-3.0-includes.patch | 4 +-- |
17 |
dev-util/btyacc/files/btyacc-3.0-makefile.patch | 4 +-- |
18 |
3 files changed, 47 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/dev-util/btyacc/btyacc-3.0-r3.ebuild b/dev-util/btyacc/btyacc-3.0-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..2de9c25574c |
23 |
--- /dev/null |
24 |
+++ b/dev-util/btyacc/btyacc-3.0-r3.ebuild |
25 |
@@ -0,0 +1,43 @@ |
26 |
+# Copyright 1999-2018 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit toolchain-funcs |
32 |
+ |
33 |
+MY_P="${PN}-3-0" |
34 |
+DESCRIPTION="Backtracking YACC - modified from Berkeley YACC" |
35 |
+HOMEPAGE="http://www.siber.com/btyacc" |
36 |
+SRC_URI="http://www.siber.com/btyacc/${MY_P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="freedist" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-linux ~ppc-macos ~x86-macos" |
41 |
+ |
42 |
+S="${WORKDIR}" |
43 |
+ |
44 |
+PATCHES=( |
45 |
+ "${FILESDIR}/${P}-includes.patch" |
46 |
+ "${FILESDIR}/${P}-makefile.patch" |
47 |
+) |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ cp -av Makefile{,.orig} || die |
51 |
+ default |
52 |
+ # fix memory issue/glibc corruption |
53 |
+ sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c" |
54 |
+ # Darwin doesn't do static binaries |
55 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
56 |
+ sed -i -e 's/-static//' Makefile || die |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+src_compile() { |
61 |
+ emake CC=$(tc-getCC) |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ dobin btyacc |
66 |
+ dodoc README README.BYACC |
67 |
+ newman manpage btyacc.1 |
68 |
+} |
69 |
|
70 |
diff --git a/dev-util/btyacc/files/btyacc-3.0-includes.patch b/dev-util/btyacc/files/btyacc-3.0-includes.patch |
71 |
index a03f58fa386..e415574213e 100644 |
72 |
--- a/dev-util/btyacc/files/btyacc-3.0-includes.patch |
73 |
+++ b/dev-util/btyacc/files/btyacc-3.0-includes.patch |
74 |
@@ -1,5 +1,5 @@ |
75 |
---- mstring.c |
76 |
-+++ mstring.c |
77 |
+--- a/mstring.c |
78 |
++++ b/mstring.c |
79 |
@@ -1,6 +1,7 @@ |
80 |
#include <stdlib.h> |
81 |
#include <stdio.h> |
82 |
|
83 |
diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch |
84 |
index 884b49f46b9..60187256d1a 100644 |
85 |
--- a/dev-util/btyacc/files/btyacc-3.0-makefile.patch |
86 |
+++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch |
87 |
@@ -1,7 +1,7 @@ |
88 |
Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer |
89 |
|
90 |
---- Makefile.orig 1999-07-15 19:40:12.000000000 +0200 |
91 |
-+++ Makefile 2009-09-04 15:27:15.000000000 +0200 |
92 |
+--- a/Makefile 1999-07-15 19:40:12.000000000 +0200 |
93 |
++++ b/Makefile 2009-09-04 15:27:15.000000000 +0200 |
94 |
@@ -8,14 +8,13 @@ |
95 |
|
96 |
HDRS = defs.h mstring.h |