2016-02-24 01:27:23 +01:00
|
|
|
# Description: A tool for generating text-scanning programs
|
|
|
|
# URL: http://flex.sourceforge.net
|
|
|
|
# Maintainers: Will Estes,John Millaway,Aaron Stone,Vern Paxson,Van Jacobson,Jef Poskanzer,Kevin Gong,Vern Paxson
|
|
|
|
# Packager: pierre at nutyx dot org
|
|
|
|
|
|
|
|
name=flex
|
|
|
|
version=2.5.39
|
|
|
|
release=1
|
|
|
|
|
|
|
|
source=(http://prdownloads.sourceforge.net/flex/flex-$version.tar.xz)
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
cd flex-$version
|
|
|
|
sed -i -e '/test-bison/d' tests/Makefile.in
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/lib --bindir=/bin --sbindir=/sbin \
|
|
|
|
--docdir=/usr/share/doc/flex-$version
|
|
|
|
|
|
|
|
make
|
|
|
|
make -k check||true
|
|
|
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
ln -sv libfl.a $PKG/lib/libl.a
|
|
|
|
cat > $PKG/bin/lex << "EOF"
|
|
|
|
#!/bin/sh
|
|
|
|
# Begin /bin/lex
|
|
|
|
exec /bin/flex -l "$@"
|
|
|
|
# End /bin/lex
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod -v 755 $PKG/bin/lex
|
|
|
|
|
2016-03-07 13:45:49 +01:00
|
|
|
rm -r $PKG/usr/share/{info,doc}
|
2016-02-24 01:27:23 +01:00
|
|
|
}
|