summaryrefslogtreecommitdiffstats
path: root/flex
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-12 04:39:04 +0100
committerLukc <lukc@upyum.com>2010-12-12 04:39:04 +0100
commitc3ebeca6a8336defc66022534ba9bcbb800537d5 (patch)
treee0f45c7cc44868ded780dd7d0142e530c2b49e25 /flex
parent422c828aea452052911de29c85d1c212852c3ebb (diff)
downloaddevel-c3ebeca6a8336defc66022534ba9bcbb800537d5.tar.gz
devel-c3ebeca6a8336defc66022534ba9bcbb800537d5.tar.bz2
devel-c3ebeca6a8336defc66022534ba9bcbb800537d5.tar.xz
devel-c3ebeca6a8336defc66022534ba9bcbb800537d5.zip
Recette de flex ajoutée.
Diffstat (limited to 'flex')
-rw-r--r--flex/.footprint62
-rw-r--r--flex/.md5sum2
-rw-r--r--flex/.sha256sum2
-rw-r--r--flex/Pkgfile21
-rw-r--r--flex/Pkgfile.old20
-rw-r--r--flex/flex-2.5.35-gcc44-1.patch24
6 files changed, 131 insertions, 0 deletions
diff --git a/flex/.footprint b/flex/.footprint
new file mode 100644
index 0000000..c5727ce
--- /dev/null
+++ b/flex/.footprint
@@ -0,0 +1,62 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/flex
+lrwxrwxrwx root/root usr/bin/lex -> flex
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/FlexLexer.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libfl.a
+-rw-r--r-- root/root usr/lib/libfl_pic.a
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/locale/
+drwxr-xr-x root/root usr/share/locale/ca/
+drwxr-xr-x root/root usr/share/locale/ca/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/ca/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/da/
+drwxr-xr-x root/root usr/share/locale/da/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/da/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/de/
+drwxr-xr-x root/root usr/share/locale/de/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/de/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/es/
+drwxr-xr-x root/root usr/share/locale/es/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/es/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/fr/
+drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/ga/
+drwxr-xr-x root/root usr/share/locale/ga/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/ga/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/ko/
+drwxr-xr-x root/root usr/share/locale/ko/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/ko/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/nl/
+drwxr-xr-x root/root usr/share/locale/nl/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/nl/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/pl/
+drwxr-xr-x root/root usr/share/locale/pl/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/pl/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/pt_BR/
+drwxr-xr-x root/root usr/share/locale/pt_BR/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/pt_BR/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/ro/
+drwxr-xr-x root/root usr/share/locale/ro/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/ro/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/ru/
+drwxr-xr-x root/root usr/share/locale/ru/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/ru/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/sv/
+drwxr-xr-x root/root usr/share/locale/sv/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/sv/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/tr/
+drwxr-xr-x root/root usr/share/locale/tr/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/tr/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/vi/
+drwxr-xr-x root/root usr/share/locale/vi/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/vi/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/locale/zh_CN/
+drwxr-xr-x root/root usr/share/locale/zh_CN/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/zh_CN/LC_MESSAGES/flex.mo
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/flex.1.bz2
diff --git a/flex/.md5sum b/flex/.md5sum
new file mode 100644
index 0000000..91c1aba
--- /dev/null
+++ b/flex/.md5sum
@@ -0,0 +1,2 @@
+ad9109820534278c6dd0898178c0788f flex-2.5.35-gcc44-1.patch
+10714e50cea54dc7a227e3eddcd44d57 flex-2.5.35.tar.bz2
diff --git a/flex/.sha256sum b/flex/.sha256sum
new file mode 100644
index 0000000..176f055
--- /dev/null
+++ b/flex/.sha256sum
@@ -0,0 +1,2 @@
+6f53b9ee7a2273e8686894a60bc06d58f5fbca4fac1ff81f421e95a2137e5799 flex-2.5.35-gcc44-1.patch
+0becbd4b2b36b99c67f8c22ab98f7f80c9860aec70f0350a0018f29a88704e7b flex-2.5.35.tar.bz2
diff --git a/flex/Pkgfile b/flex/Pkgfile
new file mode 100644
index 0000000..0645a06
--- /dev/null
+++ b/flex/Pkgfile
@@ -0,0 +1,21 @@
+description="Fast Lexical Analyzer Generator."
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
+url="http://flex.sourceforge.net/"
+depends=()
+
+name=flex
+version=2.5.35
+release=2
+source=(http://downloads.sourceforge.net/project/flex/flex/$name-$version/$name-$version.tar.bz2 $name-$version-gcc44-1.patch)
+build ()
+{
+ cd $name-$version;
+ patch -p1 -i $SRC/$name-$version-gcc44-1.patch;
+ ./configure --prefix=$prefix --mandir=$mandir $(use_enable nls);
+ make;
+ make DESTDIR=$PKG install;
+ ln -sf flex $PKG$prefix/bin/lex;
+ ln -sf flex.1.gz $PKG$mandir/man1/lex.1.gz;
+ rm -rf $PKG$prefix/info
+}
diff --git a/flex/Pkgfile.old b/flex/Pkgfile.old
new file mode 100644
index 0000000..f62d7a8
--- /dev/null
+++ b/flex/Pkgfile.old
@@ -0,0 +1,20 @@
+# Description: Fast Lexical Analyzer Generator
+# URL: http://flex.sourceforge.net/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=flex
+version=2.5.35
+release=2
+source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.bz2
+ $name-$version-gcc44-1.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 -i $SRC/$name-$version-gcc44-1.patch
+ ./configure --prefix=/usr --disable-nls
+ make
+ make DESTDIR=$PKG install
+ ln -sf flex $PKG/usr/bin/lex
+ ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
+ rm -rf $PKG/usr/info
+}
diff --git a/flex/flex-2.5.35-gcc44-1.patch b/flex/flex-2.5.35-gcc44-1.patch
new file mode 100644
index 0000000..8f0e80f
--- /dev/null
+++ b/flex/flex-2.5.35-gcc44-1.patch
@@ -0,0 +1,24 @@
+Submitted by: Matt Burgess (matthew at linuxfromscratch dot org)
+Date: 2009-05-03
+Initial Package Version: 2.5.35
+Origin: Matt Burgess
+Upstream Status: Submitted (attached to sourceforge bug 2178663)
+Description: Fixes an error caused by header cleanups in GCC 4.4.0 that is
+ evident from the test suite and would affect any C++ lexers
+ generated by Flex. Without this patch, Flex will generate lexers
+ containing references to the 'EOF' symbol without including the
+ necessary C++ header file, leading to:
+
+ error: 'EOF' was not declared in this scope
+
+diff -Naur flex-2.5.35.orig/skel.c flex-2.5.35/skel.c
+--- flex-2.5.35.orig/skel.c 2008-02-26 21:34:19.000000000 +0000
++++ flex-2.5.35/skel.c 2009-05-03 15:18:14.000000000 +0000
+@@ -284,6 +284,7 @@
+ "/* begin standard C++ headers. */",
+ "#include <iostream> ",
+ "#include <errno.h>",
++ "#include <cstdio>",
+ "#include <cstdlib>",
+ "#include <cstring>",
+ "/* end standard C++ headers. */",