From fd6c00b1a10cfdcc8e60b5a3b5bc71ccdc6b9f3c Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sat, 15 Feb 2020 18:22:12 +0100 Subject: [PATCH] bison: add recipe for version 3.5.2 disabled for gcc2. test #132 fails. --- sys-devel/bison/bison-3.5.2.recipe | 79 ++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 sys-devel/bison/bison-3.5.2.recipe diff --git a/sys-devel/bison/bison-3.5.2.recipe b/sys-devel/bison/bison-3.5.2.recipe new file mode 100644 index 000000000..403a03bf1 --- /dev/null +++ b/sys-devel/bison/bison-3.5.2.recipe @@ -0,0 +1,79 @@ +SUMMARY="A yacc-compatible parser generator" +DESCRIPTION="Bison is a general-purpose parser generator that converts an \ +annotated context-free grammar into an LALR(1) or GLR parser for that \ +grammar. Once you are proficient with Bison, you can use it to develop a wide \ +range of language parsers, from those used in simple desk calculators to \ +complex programming languages. + +Bison is upward compatible with Yacc: all properly-written Yacc grammars ought \ +to work with Bison with no change. Anyone familiar with Yacc should be able to \ +use Bison with little trouble. You need to be fluent in C or C++ programming \ +in order to use Bison." +HOMEPAGE="http://www.gnu.org/software/bison/bison.html" +COPYRIGHT="1992-2020 Free Software Foundation, Inc." +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://ftpmirror.gnu.org/bison/bison-$portVersion.tar.xz + https://ftp.gnu.org/gnu/bison/bison-$portVersion.tar.xz" +CHECKSUM_SHA256="24e273db9eb6da8bbb6f0648284d0724a5cbd6268a163db402f961350a4e50dd" +#PATCHES="bison-${portVersion}.patchset" + +ARCHITECTURES="?x86_gcc2 x86 x86_64 ?arm ?ppc ?sparc ?m68k" +SECONDARY_ARCHITECTURES="x86 ?x86_gcc2" + +PROVIDES=" + bison$secondaryArchSuffix = $portVersion compat >= 2 + cmd:bison$secondaryArchSuffix = $portVersion compat >= 2 + cmd:yacc$secondaryArchSuffix + devel:liby$secondaryArchSuffix = $portVersion compat >= 2 + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:m4 + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:awk + cmd:diff + cmd:flex + cmd:gcc$secondaryArchSuffix + cmd:help2man + cmd:ld$secondaryArchSuffix + cmd:m4 + cmd:make + cmd:perl + cmd:sed + " + +TEST_REQUIRES=" + cmd:doxygen + cmd:find + cmd:g++$secondaryArchSuffix + " + +defineDebugInfoPackage bison$secondaryArchSuffix \ + $binDir/bison + +BUILD() +{ + MAKEINFO=true \ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs liby + + rmdir $libDir +} + +TEST() +{ + make check +}