mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
Convert bison-2.5 to recipe but marked untested on x86 only.
It builds and works on x86, but won't build on x86_gcc2 due to C99.
This commit is contained in:
@@ -1,33 +1,68 @@
|
|||||||
DESCRIPTION="bison - A yacc-compatible parser generator"
|
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"
|
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
|
||||||
|
COPYRIGHT="1992-2011 Free Software Foundation, Inc."
|
||||||
|
LICENSE="GNU GPL v3"
|
||||||
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz"
|
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz"
|
||||||
CHECKSUM_MD5="687e1dcd29452789d34eaeea4c25abe4"
|
CHECKSUM_MD5="687e1dcd29452789d34eaeea4c25abe4"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
STATUS_HAIKU="stable"
|
|
||||||
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
|
ARCHITECTURES="?x86"
|
||||||
DEPEND=""
|
|
||||||
|
PATCHES="${portVersionedName}.patch"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
bison = $portVersion compat >= 2.5
|
||||||
|
cmd:bison = $portVersion compat >= 2.5
|
||||||
|
cmd:yacc
|
||||||
|
devel:liby = $portVersion compat >= 2.5
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRES="
|
||||||
|
haiku >= $haikuVersion
|
||||||
|
cmd:m4
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
haiku_devel >= $haikuVersion
|
||||||
|
cmd:gcc
|
||||||
|
cmd:ld
|
||||||
|
cmd:m4
|
||||||
|
cmd:make
|
||||||
|
cmd:sed
|
||||||
|
"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
cd bison-2.5
|
runConfigure ./configure
|
||||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
make $jobArgs
|
||||||
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
|
|
||||||
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
|
|
||||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
|
||||||
--disable-nls
|
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
cd bison-2.5
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs liby
|
||||||
|
|
||||||
|
rm $libDir/charset.alias
|
||||||
|
rmdir $libDir
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST()
|
TEST()
|
||||||
{
|
{
|
||||||
cd bison-2.5
|
|
||||||
make check
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
LICENSE="GNU GPL v3"
|
|
||||||
COPYRIGHT="1992-2011 Free Software Foundation, Inc."
|
|
||||||
|
|||||||
Reference in New Issue
Block a user