wok-4.x rev 6577
Fixed lemon. Moved the compiling lemon into sqlite. This way lemon is more normal wanted package with only genpkg_rules.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 08 18:47:02 2010 +0000 (2010-10-08) |
parents | ea2730db5954 |
children | 7125b977ddaf |
files | lemon/receipt sqlite/receipt |
line diff
1.1 --- a/lemon/receipt Fri Oct 08 18:09:30 2010 +0000 1.2 +++ b/lemon/receipt Fri Oct 08 18:47:02 2010 +0000 1.3 @@ -5,31 +5,13 @@ 1.4 CATEGORY="system-tools" 1.5 SHORT_DESC="The LEMON Parser Generator (from the SQLite project)." 1.6 MAINTAINER="pankso@slitaz.org" 1.7 +WEB_SITE="http://www.sqlite.org/" 1.8 WANTED="sqlite" 1.9 -WEB_SITE="http://www.sqlite.org/" 1.10 - 1.11 -# Rules to configure and make the package. 1.12 -compile_rules() 1.13 -{ 1.14 - mkdir -p sqlite-$VERSION && cd sqlite-$VERSION 1.15 - cp $src/tool/lemon.c . 1.16 - cp $src/tool/lempar.c . 1.17 - sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c 1.18 - echo -n "Compiling lemon..." 1.19 - gcc -o lemon lemon.c && status 1.20 -} 1.21 1.22 # Rules to gen a SliTaz package suitable for Tazpkg. 1.23 genpkg_rules() 1.24 { 1.25 - 1.26 mkdir -p $fs/usr/bin $fs/usr/share/lemon 1.27 - if [ ! -d sqlite-$VERSION ]; then 1.28 - tazwok compile $PACKAGE 1.29 - cp sqlite-$VERSION/lemon $fs/usr/bin 1.30 - cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon 1.31 - elif [ -d sqlite-$VERSION ]; then 1.32 - cp sqlite-$VERSION/lemon $fs/usr/bin 1.33 - cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon 1.34 - fi 1.35 + cp -a $src/lemon $fs/usr/bin 1.36 + cp -a $src/lempar.c $fs/usr/share/lemon 1.37 }
2.1 --- a/sqlite/receipt Fri Oct 08 18:09:30 2010 +0000 2.2 +++ b/sqlite/receipt Fri Oct 08 18:47:02 2010 +0000 2.3 @@ -25,6 +25,15 @@ 2.4 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && 2.5 make && 2.6 make DESTDIR=$PWD/_pkg install 2.7 + # compile lemon here instead of in lemon 2.8 + if [ -f $src/lemon ]; then 2.9 + rm $src/lemon 2.10 + fi 2.11 + cp $src/tool/lemon.c . 2.12 + sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c 2.13 + echo -n "Compiling lemon..." 2.14 + gcc -o lemon lemon.c && status 2.15 + 2.16 } 2.17 2.18 # Rules to gen a SliTaz package suitable for Tazpkg.