From aac2b105e07b68a01af54eee36caaf6a9cb7cf20 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Mon, 14 Apr 2014 18:26:11 +0000 Subject: [PATCH] flex: added recipe for version 2.5.39 --- sys-devel/flex/flex-2.5.39.recipe | 64 +++++++++++++++++++++ sys-devel/flex/patches/flex-2.5.39.patchset | 35 +++++++++++ 2 files changed, 99 insertions(+) create mode 100644 sys-devel/flex/flex-2.5.39.recipe create mode 100644 sys-devel/flex/patches/flex-2.5.39.patchset diff --git a/sys-devel/flex/flex-2.5.39.recipe b/sys-devel/flex/flex-2.5.39.recipe new file mode 100644 index 000000000..d04cbd940 --- /dev/null +++ b/sys-devel/flex/flex-2.5.39.recipe @@ -0,0 +1,64 @@ +SUMMARY="A tool for generating scanners." +DESCRIPTION=" +Flex is a fast lexical analyser generator. It is a tool for generating \ +programs that perform pattern-matching on text. +" +HOMEPAGE="http://flex.sourceforge.net/" +COPYRIGHT="2001-2007 The Flex Project; 1990, 1997 The Regents of the University of California" +LICENSE="Flex" +SRC_URI="http://sourceforge.net/projects/flex/files/flex-$portVersion.tar.bz2" +CHECKSUM_SIZE="1612101" +CHECKSUM_RMD160="df37c29727c40527fb8b8118a6a580c21a923591" +CHECKSUM_SHA512="8b1b86b81e7d231c746887c0c24fd1004f3f7598af4e41408667f609918a9994721b61d666a1e184822409de329323b829193a4a8dcdf12ce9313d0fe37cbbc1" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" + +PATCHES="flex-2.5.39.patchset" + +PROVIDES=" + flex = $portVersion compat >= 2.5 + cmd:flex = $portVersion compat >= 2.5 + cmd:flex++ = $portVersion compat >= 2.5 + lib:libfl = 2.0.0 compat >= 2 + lib:libfl_pic = 2.0.0 compat >= 2 + devel:libfl = 2.0.0 compat >= 2 + devel:libfl_pic = 2.0.0 compat >= 2 + " +REQUIRES=" + haiku >= $haikuVersion + cmd:m4 + " +BUILD_REQUIRES=" + " +BUILD_PREREQUIRES=" + haiku_devel >= $haikuVersion + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc + cmd:ld + cmd:libtoolize + cmd:make + cmd:makeinfo + " + + +BUILD() +{ + rm aclocal.m4 + libtoolize --force --copy --install + aclocal -I m4 + autoconf + automake --add-missing --force-missing + runConfigure ./configure \ + --disable-rpath --with-gnu-ld + make $jobArgs +} + +INSTALL() +{ + make install + + # prepare develop/lib + prepareInstalledDevelLibs libfl libfl_pic +} diff --git a/sys-devel/flex/patches/flex-2.5.39.patchset b/sys-devel/flex/patches/flex-2.5.39.patchset new file mode 100644 index 000000000..12a54933e --- /dev/null +++ b/sys-devel/flex/patches/flex-2.5.39.patchset @@ -0,0 +1,35 @@ +From 40175da3a270397dcf9f684c360f9161c637039f Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Mon, 14 Apr 2014 17:00:54 +0000 +Subject: initial haiku patch + + +diff --git a/configure.ac b/configure.ac +index 871082f..a3913b7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -48,7 +48,7 @@ LT_INIT + AC_PROG_AWK + AC_PROG_INSTALL + +-AC_PATH_PROG(BISON, bison,bison) ++AC_CHECK_PROG(BISON, bison,bison) + AC_PATH_PROG(HELP2MAN, help2man, help2man) + + # Check for a m4 that supports -P +diff --git a/tests/test-pthread/Makefile.am b/tests/test-pthread/Makefile.am +index fe5d545..e8023e8 100644 +--- a/tests/test-pthread/Makefile.am ++++ b/tests/test-pthread/Makefile.am +@@ -27,7 +27,7 @@ CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) OUTPUT $ + OBJS = scanner.o # parser.o + + AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) +-LIBS = -lpthread ++#LIBS = -lpthread + #LFLAGS = --header="scanner.h" + #YFLAGS = --defines --output=parser.c + +-- +1.8.3.4 +