From bc1d33afc7e8435f31ff5a813de98900a1b17132 Mon Sep 17 00:00:00 2001 From: Alex Elliott Date: Tue, 11 May 2010 20:00:44 +0200 Subject: [PATCH] libraries/enchant: Added to 12.0 repository --- libraries/enchant/README | 1 + libraries/enchant/enchant.SlackBuild | 64 ++++++++++++++++++++++++++++ libraries/enchant/enchant.info | 8 ++++ libraries/enchant/slack-desc | 19 +++++++++ 4 files changed, 92 insertions(+) create mode 100644 libraries/enchant/README create mode 100644 libraries/enchant/enchant.SlackBuild create mode 100644 libraries/enchant/enchant.info create mode 100644 libraries/enchant/slack-desc diff --git a/libraries/enchant/README b/libraries/enchant/README new file mode 100644 index 0000000000..fe3a14a0d7 --- /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 0000000000..faf619afef --- /dev/null +++ b/libraries/enchant/enchant.SlackBuild @@ -0,0 +1,64 @@ +#!/bin/sh +# +# Slackware build script for enchant +# Written by Alex Elliott + +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 0000000000..6adcaa4224 --- /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 0000000000..222894651f --- /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: