aboutsummaryrefslogtreecommitdiff
path: root/libraries/clearsilver
diff options
context:
space:
mode:
authorLyle Sigurdson <lyle_s@myrealbox.com>2010-05-11 14:56:12 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:56:12 +0200
commit19c8f0f674abe659dee397b2be68f13002fa5831 (patch)
tree56271514dfb5c84f71bae5e767a095fbf6856f7b /libraries/clearsilver
parentb25fcc249a4a28b23f1ab467b0a14aeee7a9d211 (diff)
libraries/clearsilver: Initial import
Diffstat (limited to 'libraries/clearsilver')
-rw-r--r--libraries/clearsilver/README9
-rw-r--r--libraries/clearsilver/clearsilver.SlackBuild97
-rw-r--r--libraries/clearsilver/clearsilver.info8
-rw-r--r--libraries/clearsilver/slack-desc11
4 files changed, 125 insertions, 0 deletions
diff --git a/libraries/clearsilver/README b/libraries/clearsilver/README
new file mode 100644
index 0000000000000..ddf0cf4ebd1c3
--- /dev/null
+++ b/libraries/clearsilver/README
@@ -0,0 +1,9 @@
+Clearsilver is a fast, powerful, and language-neutral template system
+meant primarly for html.
+
+In both static content sites and dynamic HTML applications, it
+provides a separation between presentation code and application logic
+which makes working with your project easier.
+
+clearsilver.Slackbuild requires that PERL and Python be installed.
+
diff --git a/libraries/clearsilver/clearsilver.SlackBuild b/libraries/clearsilver/clearsilver.SlackBuild
new file mode 100644
index 0000000000000..847df2281b086
--- /dev/null
+++ b/libraries/clearsilver/clearsilver.SlackBuild
@@ -0,0 +1,97 @@
+#!/bin/sh
+
+# Slackware build script for clearsilver.
+
+# $Revision: 1.3 $
+# $Date: 2006/12/03 14:31:16 $
+#
+# Written by Lyle Sigurdson <lyle_s@myrealbox.com>.
+#
+# Free for any use; no warranty.
+
+# Exit immediately if a simple command exits with a non-zero status.
+# Exit immediately if expansion is attempted on an unset variable.
+set -eu
+
+if [ $UID != 0 ];
+then
+ echo "$0: Must be root. Exiting."
+ exit 1
+fi
+
+PRGNAM=clearsilver
+VERSION=0.10.4
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $TMP/$PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+rw,go-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --disable-apache \
+ --disable-java \
+ --disable-ruby \
+ --disable-csharp
+
+make
+make -e install DESTDIR=$PKG
+
+# Let's build the libneo shared object anyway, even though we've disabled C#
+# This is useful to have around for some other applications
+cd dso
+ make
+ make install DESTDIR=$PKG
+cd -
+
+# Put the libneo shared object in /usr/lib so everything will find it
+mv $PKG/usr/lib/python2.4/site-packages/libneo.so $PKG/usr/lib
+( cd $PKG/usr/lib/python2.4/site-packages ; ln -s ../../libneo.so libneo.so )
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Move the ClearSilver man page from $PKG/usr/share/man ; kill $PKG/usr/share
+# since nothing else is in there
+mv $PKG/usr/share/man/man3/* $PKG/usr/man/man3
+rm -rf $PKG/usr/share
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+# Remove the perllocal.pod file installed by this package so that it
+# doesn't overwrite the one on the system already.
+rm -rf $PKG/usr/lib/perl5/5.8.8/i486-linux/perllocal.pod
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CS_LICENSE INSTALL LICENSE README README.python \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/clearsilver.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/clearsilver.SlackBuild
+
+mkdir -p $PKG/install
+cp $CWD/slack-desc $PKG/install
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/libraries/clearsilver/clearsilver.info b/libraries/clearsilver/clearsilver.info
new file mode 100644
index 0000000000000..a1feefceb5e8e
--- /dev/null
+++ b/libraries/clearsilver/clearsilver.info
@@ -0,0 +1,8 @@
+PRGNAM="ClearSilver"
+VERSION="0.10.4"
+HOMEPAGE="http://www.clearsilver.net"
+DOWNLOAD="http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz"
+MD5SUM="9523df7ef17e41a01dbae5032a3e450b"
+MAINTAINER="Lyle Sigurdson"
+EMAIL="lyle_s@myrealbox.com"
+APPROVED="robw810"
diff --git a/libraries/clearsilver/slack-desc b/libraries/clearsilver/slack-desc
new file mode 100644
index 0000000000000..2f2d202f156b6
--- /dev/null
+++ b/libraries/clearsilver/slack-desc
@@ -0,0 +1,11 @@
+clearsilver: Clearsilver (template system)
+clearsilver:
+clearsilver: Clearsilver is a fast, powerful, and language-neutral template system
+clearsilver: meant primarly for html.
+clearsilver: In both static content sites and dynamic HTML applications, it
+clearsilver: provides a separation between presentation code and application logic
+clearsilver: which makes working with your project easier.
+clearsilver:
+clearsilver: SlackBuild script written by Lyle Sigurdson.
+clearsilver:
+clearsilver: