wok-next rev 2823

Add lemon (parser generator)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 29 21:29:04 2009 +0200 (2009-04-29)
parents ac4a4ec1c9e1
children 9840e52f2442
files lemon/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lemon/receipt	Wed Apr 29 21:29:04 2009 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="lemon"
     1.7 +VERSION="3.6.10"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="The LEMON Parser Generator (from the SQLite project)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +WANTED="sqlite"
    1.12 +WEB_SITE="http://www.sqlite.org/"
    1.13 +
    1.14 +# Rules to configure and make the package.
    1.15 +compile_rules()
    1.16 +{
    1.17 +	mkdir -p lemon-$VERSION && cd lemon-$VERSION
    1.18 +	cp $src/tool/lemon.c .
    1.19 +	cp $src/tool/lempar.c .
    1.20 +	sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
    1.21 +	echo -n "Compiling lemon..."
    1.22 +	gcc -o lemon lemon.c && status
    1.23 +}
    1.24 +
    1.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 +genpkg_rules()
    1.27 +{
    1.28 +	mkdir -p $fs/usr/bin $fs/usr/share/lemon
    1.29 +	cp lemon-$VERSION/lemon $fs/usr/bin
    1.30 +	cp lemon-$VERSION/lempar.c $fs/usr/share/lemon
    1.31 +}