aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorAlex Elliott <alex@alex-elliott.co.uk>2010-05-11 20:00:44 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:44 +0200
commitbc1d33afc7e8435f31ff5a813de98900a1b17132 (patch)
tree6aa46cb59856b10808e0efdd3e2f1668d70fbf37 /libraries
parent43e13dd599cabf4b935b4708cfa94eb3dac8efce (diff)
libraries/enchant: Added to 12.0 repository
Diffstat (limited to 'libraries')
-rw-r--r--libraries/enchant/README1
-rw-r--r--libraries/enchant/enchant.SlackBuild64
-rw-r--r--libraries/enchant/enchant.info8
-rw-r--r--libraries/enchant/slack-desc19
4 files changed, 92 insertions, 0 deletions
diff --git a/libraries/enchant/README b/libraries/enchant/README
new file mode 100644
index 0000000000000..fe3a14a0d7091
--- /dev/null
+++ b/libraries/enchant/README
@@ -0,0 +1 @@
+Enchant is a wrapper for spellcheck libraries like aspell.
diff --git a/libraries/enchant/enchant.SlackBuild b/libraries/enchant/enchant.SlackBuild
new file mode 100644
index 0000000000000..faf619afef6a4
--- /dev/null
+++ b/libraries/enchant/enchant.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+#
+# Slackware build script for enchant
+# Written by Alex Elliott <alex@alex-elliott.co.uk>
+
+PRGNAM=enchant
+VERSION=1.3.0
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+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
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-aspell-prefix=/usr \
+ --enable-static=no
+
+make
+make install DESTDIR=$PKG
+
+( 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
+)
+
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS BUGS COPYING.LIB HACKING MAINTAINERS NEWS README TODO \
+ ChangeLog $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.tgz
diff --git a/libraries/enchant/enchant.info b/libraries/enchant/enchant.info
new file mode 100644
index 0000000000000..6adcaa4224a9a
--- /dev/null
+++ b/libraries/enchant/enchant.info
@@ -0,0 +1,8 @@
+PRGNAM="enchant"
+VERSION="1.3.0"
+HOMEPAGE="http://www.abisource.com/projects/enchant/"
+DOWNLOAD="http://www.abisource.com/downloads/enchant/1.3.0/enchant-1.3.0.tar.gz"
+MD5SUM="f7edafae875616b83e7a17a7e5c2d585"
+MAINTAINER="Alex Elliott"
+EMAIL="alex@alex-elliott.co.uk"
+APPROVED="rworkman"
diff --git a/libraries/enchant/slack-desc b/libraries/enchant/slack-desc
new file mode 100644
index 0000000000000..222894651f2c4
--- /dev/null
+++ b/libraries/enchant/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 ':'.
+
+ |---handy-ruler------------------------------------------------------|
+enchant: Enchant (wrapper for spellcheck libraries)
+enchant:
+enchant: Enchant supports:
+enchant: * Aspell/Pspell
+enchant: * Ispell
+enchant: * MySpell/HunSpell
+enchant: * Uspell (Yiddish, Hebrew and Eastern European languages)
+enchant: * Hspell (Hebrew) and others
+enchant:
+enchant: http://www.abisource.com/projects/enchant/
+enchant: