From 0023d714a931f4a5789ed1eb551d5262fdf1bf7a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 2 Sep 2011 13:22:04 +0200 Subject: [PATCH 1/2] proxy-friendly git url --- xap/conkeror/conkeror.SlackBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xap/conkeror/conkeror.SlackBuild b/xap/conkeror/conkeror.SlackBuild index 32022895..cc116784 100755 --- a/xap/conkeror/conkeror.SlackBuild +++ b/xap/conkeror/conkeror.SlackBuild @@ -22,7 +22,7 @@ if [ -e $REPOSITORIES/$PRGNAM ] ; then git pull ) else - git clone git://repo.or.cz/conkeror.git $REPOSITORIES/$PRGNAM + git clone http://repo.or.cz/r/conkeror.git $REPOSITORIES/$PRGNAM fi mkdir -p $PKG$PREFIX/libexec/ From 564f8ea38241d71cc8fe2c2c423be8d0030740fc Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 2 Sep 2011 17:22:09 +0200 Subject: [PATCH 2/2] Added coccigrep --- ap/coccigrep/coccigrep.SlackBuild | 72 +++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 ap/coccigrep/coccigrep.SlackBuild diff --git a/ap/coccigrep/coccigrep.SlackBuild b/ap/coccigrep/coccigrep.SlackBuild new file mode 100755 index 00000000..facfec84 --- /dev/null +++ b/ap/coccigrep/coccigrep.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/sh -x + +# variables +TAG=cyco +TMP=/tmp/$TAG +CWD=$(pwd) +OUTPUT=/tmp + +PRGNAM=$(basename $CWD) +PKG=$TMP/pkg-$PRGNAM + +VERSION=$(date +%Y.%m.%d_%H.%M) + +DOCS="ChangeLog INSTALL LICENSE README.rst doc/ editors/" + +ARCH=$(uname -m) +BUILD=1 + +PREFIX=/usr + +SLCKFLAGS="-fPIC -O2" + +REPOSITORIES=/home/installs/SlackBuilds/repositories +# nettoyage préalable +rm -fr $PKG $TMP/$PRGNAM-$VERSION + +mkdir -p $PKG + +# mise en place +cd $TMP +if [ ! -e $REPOSITORIES/$PRGNAM ] ; then + git clone https://github.com/regit/coccigrep.git $REPOSITORIES/$PRGNAM +else + ( cd $REPOSITORIES/$PRGNAM + git pull + ) +fi +cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION +cd $TMP/$PRGNAM-$VERSION + +# installation +python ./setup.py install --root=$PKG + +mkdir -p mkdir -p $PKG/usr/share/emacs/site-lisp/ +cp editors/*.el $PKG/usr/share/emacs/site-lisp/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -R $DOCS $PKG/usr/doc/$PRGNAM-$VERSION + +# correction +cd $PKG +chown -R root:root * + +# embaumement +mkdir -p $PKG/install +cat < $PKG/install/slack-desc +$PRGNAM: $PRGNAM (Semantic grep for the C language) +$PRGNAM: +$PRGNAM: coccigrep is a semantic grep for the C language based on coccinelle +$PRGNAM: (http://coccinelle.lip6.fr). It can be used to find where a given structure +$PRGNAM: is used in code files. coccigrep depends on the spatch program which comes +$PRGNAM: with coccinelle. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://home.regit.org/software/coccigrep/ +$PRGNAM: +EOF + +# empaquetage +cd $PKG +makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD$TAG.txz