aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2011-08-11 13:45:31 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-08-11 13:45:31 -0300
commit3f7169ae65a3e66ae445bf568b0116316c345159 (patch)
treee97373505954f9c6604732cbd91de77464be951a /libraries
parent24f3d5db7c67d7e55813c1a75bca4bf0b17655dd (diff)
libraries/geshi: Added (Generic Syntax Highlighter)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/geshi/README7
-rw-r--r--libraries/geshi/geshi.SlackBuild61
-rw-r--r--libraries/geshi/geshi.info10
-rw-r--r--libraries/geshi/slack-desc19
4 files changed, 97 insertions, 0 deletions
diff --git a/libraries/geshi/README b/libraries/geshi/README
new file mode 100644
index 0000000000000..700423d0f53e1
--- /dev/null
+++ b/libraries/geshi/README
@@ -0,0 +1,7 @@
+GeSHi - Generic Syntax Highlighter written in PHP. GeSHi aims to be a
+simple but powerful highlighting class, with the following goals:
+
+* Support for a wide range of popular languages
+* Easy to add a new language for highlighting
+* Highly customisable output formats
+
diff --git a/libraries/geshi/geshi.SlackBuild b/libraries/geshi/geshi.SlackBuild
new file mode 100644
index 0000000000000..4fa035d47d4d4
--- /dev/null
+++ b/libraries/geshi/geshi.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for GeSHi
+
+# Written by Andrzej Telszewski <atelszewski@gmail.com>
+
+PRGNAM=geshi
+VERSION=${VERSION:-1.0.8.10}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCNAM=GeSHi
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
+mv $PRGNAM $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/php/geshi
+cp -a geshi* $PKG/usr/lib${LIBDIRSUFFIX}/php/geshi
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a docs/* contrib \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/geshi/geshi.info b/libraries/geshi/geshi.info
new file mode 100644
index 0000000000000..57563f2107812
--- /dev/null
+++ b/libraries/geshi/geshi.info
@@ -0,0 +1,10 @@
+PRGNAM="geshi"
+VERSION="1.0.8.10"
+HOMEPAGE="http://qbnz.com/highlighter/"
+DOWNLOAD="http://ignum.dl.sourceforge.net/project/geshi/geshi/GeSHi%201.0.8.10/GeSHi-1.0.8.10.tar.bz2"
+MD5SUM="856414b31caa658dcd66a253b67926d5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Andrzej Telszewski"
+EMAIL="atelszewski@gmail.com"
+APPROVED="Niels Horn"
diff --git a/libraries/geshi/slack-desc b/libraries/geshi/slack-desc
new file mode 100644
index 0000000000000..115c209e5042b
--- /dev/null
+++ b/libraries/geshi/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+geshi: GeSHi (Generic Syntax Highlighter)
+geshi:
+geshi: GeSHi is a Generic Syntax Highlighter written in PHP. It supports
+geshi: wide range of popular languages, easy way to add a new language
+geshi: for highlighting and highly customisable output formats.
+geshi:
+geshi: Homepage: http://qbnz.com/highlighter/
+geshi:
+geshi:
+geshi:
+geshi: