From 92043e82ae1604a21b8d818e14df25b382a28655 Mon Sep 17 00:00:00 2001 From: vvoody Date: Sun, 13 Jun 2010 03:08:30 -0500 Subject: development/pyenchant: Added (spellcheck library in python) Signed-off-by: Robby Workman --- development/pyenchant/README | 2 ++ development/pyenchant/pyenchant.SlackBuild | 52 ++++++++++++++++++++++++++++++ development/pyenchant/pyenchant.info | 10 ++++++ development/pyenchant/slack-desc | 19 +++++++++++ 4 files changed, 83 insertions(+) create mode 100644 development/pyenchant/README create mode 100644 development/pyenchant/pyenchant.SlackBuild create mode 100644 development/pyenchant/pyenchant.info create mode 100644 development/pyenchant/slack-desc (limited to 'development/pyenchant') diff --git a/development/pyenchant/README b/development/pyenchant/README new file mode 100644 index 0000000000..c63e4b0333 --- /dev/null +++ b/development/pyenchant/README @@ -0,0 +1,2 @@ +PyEnchant is a spellchecking library for Python, based on the +excellent Enchant library. diff --git a/development/pyenchant/pyenchant.SlackBuild b/development/pyenchant/pyenchant.SlackBuild new file mode 100644 index 0000000000..ea142f2d9e --- /dev/null +++ b/development/pyenchant/pyenchant.SlackBuild @@ -0,0 +1,52 @@ +#!/bin/sh + +# Slackware build script for pyenchant + +# Written by vvoody + +PRGNAM=pyenchant +VERSION=${VERSION:-1.6.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +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 . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +python setup.py install --prefix=/usr --root=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE.txt README.txt $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/development/pyenchant/pyenchant.info b/development/pyenchant/pyenchant.info new file mode 100644 index 0000000000..14083f3887 --- /dev/null +++ b/development/pyenchant/pyenchant.info @@ -0,0 +1,10 @@ +PRGNAM="pyenchant" +VERSION="1.6.2" +HOMEPAGE="http://www.rfk.id.au/software/pyenchant/" +DOWNLOAD="http://pypi.python.org/packages/source/p/pyenchant/pyenchant-1.6.2.tar.gz" +MD5SUM="1e710996e4e38f14a96c377d4c019392" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="vvoody" +EMAIL="ydoovv@gmail.com" +APPROVED="rworkman" diff --git a/development/pyenchant/slack-desc b/development/pyenchant/slack-desc new file mode 100644 index 0000000000..e1185260b5 --- /dev/null +++ b/development/pyenchant/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------------------------------------------------------| +pyenchant: PyEnchant (a spellchecking library for Python) +pyenchant: +pyenchant: PyEnchant is a spellchecking library for Python, +pyenchant: based on the excellent Enchant library. +pyenchant: +pyenchant: +pyenchant: +pyenchant: +pyenchant: +pyenchant: +pyenchant: -- cgit v1.2.3