summaryrefslogtreecommitdiff
path: root/dev-util/btyacc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/btyacc
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/btyacc')
-rw-r--r--dev-util/btyacc/Manifest5
-rw-r--r--dev-util/btyacc/btyacc-3.0-r2.ebuild39
-rw-r--r--dev-util/btyacc/files/btyacc-3.0-includes.patch10
-rw-r--r--dev-util/btyacc/files/btyacc-3.0-makefile.patch22
-rw-r--r--dev-util/btyacc/metadata.xml8
5 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/btyacc/Manifest b/dev-util/btyacc/Manifest
new file mode 100644
index 000000000000..8e3e0552514a
--- /dev/null
+++ b/dev-util/btyacc/Manifest
@@ -0,0 +1,5 @@
+AUX btyacc-3.0-includes.patch 171 BLAKE2B 5c5679252d0ab3bcccfabef53dd5d77e5112c39337d4a9bda8113728d49c91aa0227e883f54bd46a44b2756b0db3f1e1bd47f1b79be980d16e113e3ca9efcc8d SHA512 09af4417c660653b3dbb0bfabfc82bcf9a5741165f86047328fab5a410d71e5c11b7d4018b4e62339ccc08a96b2e81a1a0200596a82e5a76bb48a2392351a689
+AUX btyacc-3.0-makefile.patch 536 BLAKE2B 24d42d2e324a5911da162fcd7ba167480dbb1bbed75f6e18ce36aa370b375804c789a5f3081298b9c4b293f04a30d6f76f278d1c8b7ddd2ecac266983a1c0c53 SHA512 55e0a54fbb38b4a2dcf95295f3b7f5dd92af767f77641551d74ab9a81197b2d9a1694f2999248b1f6d6492e109fb0c6d1c3ffce87e8dc258d5d16f18fd1adc73
+DIST btyacc-3-0.tar.gz 74770 BLAKE2B 298d6ba020a47a8d894044c464c12efd3ed94b878cd152f4287a35fc0a8ec490186b7603909691cbf036f425fa96316c6cda8b8270b07e3c5c0cd11777d5e62b SHA512 55312e3de7cc783e1386ea98c97464d8d40bb496ce2ce36c84cc559e4c6982fbac730e76b8d44c4a44565f545ac50fb75f802bd8a1b4c926b1fc1af1a0058ef4
+EBUILD btyacc-3.0-r2.ebuild 914 BLAKE2B 54dcf06df457c361e1f6189bc922c7f4ca1a73ebd065ba3cb187712d2e469e8a5c575d1bba7683d5ac1c8f919c671c7f8686819da5b6866a449bc114b9d383de SHA512 402ed5b5c405b7dc1daf609fd2c34a5d2e384f37557b86d64493d523d2a16c05e015d5cc7956696abf906ac59f03fd8dbfb26171d619f5cadcfb155876212256
+MISC metadata.xml 247 BLAKE2B 5a20af3c9732ef7dba68131a08988652f5c93a6d186a82c4deb1bb9c06dc3ae73152a0d241cc346637f7b11caf4676da43301ba596c67b66669535e71db0b03e SHA512 29cf52c16b0cce69899d9c2da8acd9144b7d760442aa323b854dceadb42459e009545193b1df7911ac2241b59f4819b4a6bb1d206d6f57953f770031433bb6b7
diff --git a/dev-util/btyacc/btyacc-3.0-r2.ebuild b/dev-util/btyacc/btyacc-3.0-r2.ebuild
new file mode 100644
index 000000000000..bf06edcf5abb
--- /dev/null
+++ b/dev-util/btyacc/btyacc-3.0-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+MY_P=${P/./-}
+IUSE=""
+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}"
+
+src_prepare() {
+ cp -av Makefile{,.orig}
+ epatch "${FILESDIR}/${P}-includes.patch"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+ # 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
+ [[ ${CHOST} == *-darwin* ]] && sed -i -e 's/-static//' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_install() {
+ dobin btyacc
+ dodoc README README.BYACC
+ 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
new file mode 100644
index 000000000000..a03f58fa3865
--- /dev/null
+++ b/dev-util/btyacc/files/btyacc-3.0-includes.patch
@@ -0,0 +1,10 @@
+--- mstring.c
++++ mstring.c
+@@ -1,6 +1,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <string.h>
+ #include <ctype.h>
+ #include "mstring.h"
+
diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
new file mode 100644
index 000000000000..884b49f46b9d
--- /dev/null
+++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
@@ -0,0 +1,22 @@
+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
+@@ -8,14 +8,13 @@
+
+ HDRS = defs.h mstring.h
+
+-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
+
+-LDFLAGS = -static
++LDFLAGS += -static
+
+ LIBS =
+
+-CC = gcc
+-LINKER = gcc
++LINKER = $(CC)
+ # LINKER = cl
+ # CC = cl
+
diff --git a/dev-util/btyacc/metadata.xml b/dev-util/btyacc/metadata.xml
new file mode 100644
index 000000000000..40aa45df2b01
--- /dev/null
+++ b/dev-util/btyacc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>