From 93e8a5624278cddd7abd9942f3900df87719b3d0 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Tue, 3 May 2016 21:49:07 +0000 Subject: [PATCH] re2c: rewrite recipe and bump to 0.16. --- dev-util/re2c/re2c-0.13.5.recipe | 31 ------------------ dev-util/re2c/re2c-0.16.recipe | 55 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 31 deletions(-) delete mode 100644 dev-util/re2c/re2c-0.13.5.recipe create mode 100644 dev-util/re2c/re2c-0.16.recipe diff --git a/dev-util/re2c/re2c-0.13.5.recipe b/dev-util/re2c/re2c-0.13.5.recipe deleted file mode 100644 index 52841b5df..000000000 --- a/dev-util/re2c/re2c-0.13.5.recipe +++ /dev/null @@ -1,31 +0,0 @@ -DESCRIPTION="tool for generating C-based recognizers from regular expressions" -HOMEPAGE="http://re2c.org" -SOURCE_URI="http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/download" -REVISION="1" -STATUS_HAIKU="broken" -DEPEND="" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." -CHECKSUM_MD5="4a97d8f77ed6d2c76c8bd840a43f5633" -BUILD() -{ - cd re2c-0.13.5 - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd re2c-0.13.5 - make install -} - -TEST() -{ - cd re2c-0.13.5 -# make test -# make check -} - -#LICENSE="Public Domain" -#COPYRIGHT -#Written by 2003 Peter Bumbulis, currently maintained by Dan Nuffer, Marcus Boerger and Hartmut Kaiser diff --git a/dev-util/re2c/re2c-0.16.recipe b/dev-util/re2c/re2c-0.16.recipe new file mode 100644 index 000000000..8198d72ee --- /dev/null +++ b/dev-util/re2c/re2c-0.16.recipe @@ -0,0 +1,55 @@ +SUMMARY="Tool for generating recognizers from regular expressions" +DESCRIPTION="re2c is a lexer generator for C/C++. Unlike full-featured \ +table-based lexers, re2c generates code that is believed to be as good \ +(and fast) as a carefully tuned hand-crafted C/C++ lexer." +HOMEPAGE="http://re2c.org/" +COPYRIGHT="2003-2016 Peter Bumbulis, Brian Young, Dan Nuffer, Marcus Boerger, \ +Hartmut Kaiser, Emmanuel Mogenet, Ulya Trofimovich" +LICENSE="Public Domain" +REVISION="1" +SOURCE_URI="https://github.com/skvadrik/re2c/releases/download/$portVersion/re2c-$portVersion.tar.gz" +CHECKSUM_SHA256="48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +if [ "$targetArchitecture" != x86_gcc2 ]; then + commandSuffix=$secondaryArchSuffix + commandBinDir=$binDir +else + commandSuffix= + commandBinDir=$prefix/bin +fi +PROVIDES=" + re2c$secondaryArchSuffix = $portVersion + cmd:re2c$commandSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:awk + cmd:g++$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir + make $jobArgs +} + +INSTALL() +{ + make install +} + +TEST() +{ + make check +}