Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 544978 Details for
Bug 664546
dev-util/btyacc: EAPI7 revbump, improve ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
btyacc.patch
btyacc.patch (text/plain), 2.18 KB, created by
Michael Mair-Keimberger (mm1ke)
on 2018-08-25 08:26:09 UTC
(
hide
)
Description:
btyacc.patch
Filename:
MIME Type:
Creator:
Michael Mair-Keimberger (mm1ke)
Created:
2018-08-25 08:26:09 UTC
Size:
2.18 KB
patch
obsolete
>diff --git a/dev-util/btyacc/btyacc-3.0-r3.ebuild b/dev-util/btyacc/btyacc-3.0-r3.ebuild >new file mode 100644 >index 00000000000..81b9cc89dd0 >--- /dev/null >+++ b/dev-util/btyacc/btyacc-3.0-r3.ebuild >@@ -0,0 +1,45 @@ >+# Copyright 1999-2018 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+ >+EAPI=7 >+ >+inherit toolchain-funcs >+ >+MY_P=${P/./-} >+DESCRIPTION="Backtracking YACC - modified from Berkeley YACC" >+HOMEPAGE="http://www.siber.com/btyacc" >+SRC_URI="http://www.siber.com/btyacc/${MY_P}.tar.gz" >+ >+LICENSE="freedist" >+SLOT="0" >+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-linux ~ppc-macos ~x86-macos" >+ >+S="${WORKDIR}" >+ >+PATCHES=( >+ "${FILESDIR}/${P}-includes.patch" >+ "${FILESDIR}/${P}-makefile.patch" >+) >+DOCS=( README README.BYACC ) >+ >+src_prepare() { >+ cp -av Makefile{,.orig} || die >+ default >+ # fix memory issue/glibc corruption >+ sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c" >+ # Darwin doesn't do static binaries >+ if [[ ${CHOST} == *-darwin* ]]; then >+ sed -i -e 's/-static//' Makefile || die >+ fi >+} >+ >+src_compile() { >+ tc-export CC >+ emake CC=$(tc-getCC) >+} >+ >+src_install() { >+ dobin btyacc >+ einstalldocs >+ newman manpage btyacc.1 >+} >diff --git a/dev-util/btyacc/files/btyacc-3.0-includes.patch b/dev-util/btyacc/files/btyacc-3.0-includes.patch >index a03f58fa386..e415574213e 100644 >--- a/dev-util/btyacc/files/btyacc-3.0-includes.patch >+++ b/dev-util/btyacc/files/btyacc-3.0-includes.patch >@@ -1,5 +1,5 @@ >---- mstring.c >-+++ mstring.c >+--- a/mstring.c >++++ b/mstring.c > @@ -1,6 +1,7 @@ > #include <stdlib.h> > #include <stdio.h> >diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch >index 884b49f46b9..60187256d1a 100644 >--- a/dev-util/btyacc/files/btyacc-3.0-makefile.patch >+++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch >@@ -1,7 +1,7 @@ > Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer > >---- Makefile.orig 1999-07-15 19:40:12.000000000 +0200 >-+++ Makefile 2009-09-04 15:27:15.000000000 +0200 >+--- a/Makefile 1999-07-15 19:40:12.000000000 +0200 >++++ b/Makefile 2009-09-04 15:27:15.000000000 +0200 > @@ -8,14 +8,13 @@ > > HDRS = defs.h mstring.h
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 664546
: 544978