# HG changeset patch # User Christopher Rogers # Date 1286563622 0 # Node ID dc574374a35e7a0ed0cce8e9c2fdc7731de5a84a # Parent ea2730db59541bbbdc39ae93d9523e19be6a41c6 Fixed lemon. Moved the compiling lemon into sqlite. This way lemon is more normal wanted package with only genpkg_rules. diff -r ea2730db5954 -r dc574374a35e lemon/receipt --- a/lemon/receipt Fri Oct 08 18:09:30 2010 +0000 +++ b/lemon/receipt Fri Oct 08 18:47:02 2010 +0000 @@ -5,31 +5,13 @@ CATEGORY="system-tools" SHORT_DESC="The LEMON Parser Generator (from the SQLite project)." MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://www.sqlite.org/" WANTED="sqlite" -WEB_SITE="http://www.sqlite.org/" - -# Rules to configure and make the package. -compile_rules() -{ - mkdir -p sqlite-$VERSION && cd sqlite-$VERSION - cp $src/tool/lemon.c . - cp $src/tool/lempar.c . - sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c - echo -n "Compiling lemon..." - gcc -o lemon lemon.c && status -} # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin $fs/usr/share/lemon - if [ ! -d sqlite-$VERSION ]; then - tazwok compile $PACKAGE - cp sqlite-$VERSION/lemon $fs/usr/bin - cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon - elif [ -d sqlite-$VERSION ]; then - cp sqlite-$VERSION/lemon $fs/usr/bin - cp sqlite-$VERSION/lempar.c $fs/usr/share/lemon - fi + cp -a $src/lemon $fs/usr/bin + cp -a $src/lempar.c $fs/usr/share/lemon } diff -r ea2730db5954 -r dc574374a35e sqlite/receipt --- a/sqlite/receipt Fri Oct 08 18:09:30 2010 +0000 +++ b/sqlite/receipt Fri Oct 08 18:47:02 2010 +0000 @@ -25,6 +25,15 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && make && make DESTDIR=$PWD/_pkg install + # compile lemon here instead of in lemon + if [ -f $src/lemon ]; then + rm $src/lemon + fi + cp $src/tool/lemon.c . + sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c + echo -n "Compiling lemon..." + gcc -o lemon lemon.c && status + } # Rules to gen a SliTaz package suitable for Tazpkg.