Files
haikuports/sys-devel/bison/bison-2.6.5.recipe
2015-08-04 12:08:31 -04:00

73 lines
1.7 KiB
Bash

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-2011 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SOURCE_URI="http://ftp.gnu.org/gnu/bison/bison-$portVersion.tar.gz"
CHECKSUM_SHA256="856487963d9d57eff2c5de54841d00ff36399f6a9f232711702701ce589c3afa"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PATCHES="bison-${portVersion}.patchset"
PROVIDES="
bison$secondaryArchSuffix = $portVersion compat >= 2.6
cmd:bison$secondaryArchSuffix = $portVersion compat >= 2.6
cmd:yacc$secondaryArchSuffix
devel:liby$secondaryArchSuffix = $portVersion compat >= 2.6
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:m4
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:awk
cmd:m4
cmd:make
cmd:sed
cmd:flex
cmd:makeinfo
cmd:perl
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs liby
rm $libDir/charset.alias
rmdir $libDir
}
TEST()
{
make check
}