diff options
author | Boricua <boricua@despiertapr.com> | 2010-05-11 20:00:48 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 20:00:48 +0200 |
commit | b0f9c8ce8d27f3a646677d12f667ac6a8966cef2 (patch) | |
tree | 32905681ad628dd2d521d4d8b6e633ec22d68a3f /libraries/gtkspell | |
parent | a8c1f1310fd4551b791ed5d68d8c5d75ffb568af (diff) |
libraries/gtkspell: Added to 12.0 repository
Diffstat (limited to 'libraries/gtkspell')
-rw-r--r-- | libraries/gtkspell/README | 7 | ||||
-rw-r--r-- | libraries/gtkspell/doinst.sh | 3 | ||||
-rw-r--r-- | libraries/gtkspell/gtkspell.SlackBuild | 103 | ||||
-rw-r--r-- | libraries/gtkspell/gtkspell.info | 8 | ||||
-rw-r--r-- | libraries/gtkspell/slack-desc | 19 |
5 files changed, 140 insertions, 0 deletions
diff --git a/libraries/gtkspell/README b/libraries/gtkspell/README new file mode 100644 index 000000000000..3a039c1bca2e --- /dev/null +++ b/libraries/gtkspell/README @@ -0,0 +1,7 @@ +GtkSpell provides word-processor-style highlighting and replacement of misspelled words in a GtkTextView widget. +Right-clicking a misspelled word pops up a menu of suggested replacements. + +GtkSpell depends on + * GTK+ 2.0 or greater. + * Either Kevin Atkinson's pspell library, or its successor, GNU Aspell. +GTKSPELL IS requiered by sylpheed for spell checking function to work diff --git a/libraries/gtkspell/doinst.sh b/libraries/gtkspell/doinst.sh new file mode 100644 index 000000000000..34be13eb6534 --- /dev/null +++ b/libraries/gtkspell/doinst.sh @@ -0,0 +1,3 @@ +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi diff --git a/libraries/gtkspell/gtkspell.SlackBuild b/libraries/gtkspell/gtkspell.SlackBuild new file mode 100644 index 000000000000..c29246f54ac6 --- /dev/null +++ b/libraries/gtkspell/gtkspell.SlackBuild @@ -0,0 +1,103 @@ +#!/bin/sh + +# Slackware build script for gtkspell - requiered by sylpheed for spell checking + +# Written by (Boricua) (boricua at despiertapr dot com) + +# license : public domain + +# Exit on most errors +set -e + +PRGNAM=gtkspell # replace with name of program +VERSION=2.0.11 # replace with version of program +ARCH=${ARCH:-i686} # this should not change +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} # the "_SBo" is required +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} # Drop the package in /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 +rm -rf $PRGNAM-$VERSION +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + + +# Your application will probably need different configure flags; +# these are provided as an example only. +# Be sure to build only shared libraries unless there's some need for +# static. +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +# Compile the application and install it into the $PKG directory +make +make install DESTDIR=$PKG + +# Strip binaries and libraries - this can be done with 'make install-strip' +# in many source trees, and that's preferable if so, but if not, use this +( 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 +) + +# Compress man pages +# For kde programs, you'll need to do this for /opt/kde/share/man instead +# If the man pages are installed to /usr/share/man instead, you'll need to either +# add the --mandir=/usr/man flag to configure or move them manually after the +# make install process is run. +#( 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 +#) + +# Compress info pages and remove the package's dir file +# If no info pages are installed by the software, don't leave this in the script +#rm -f $PKG/usr/info/dir +#gzip -9 $PKG/usr/info/*.info* + +# Remove perllocal.pod and other special files that don't need to be installed, +# as they will overwrite what's already on the system. If this is not needed, +# remove it from the script. +( cd $PKG + # Remove 'special' files + find . -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f +) + +# Copy program documentation into the package +# The included documentation varies from one application to another, so be sure +# to adjust your script as needed +# Also, include the SlackBuild script in the documentation directory +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +#cp -a <documentation> $PKG/usr/doc/$PRGNAM-$VERSION +#cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +# Make the package; be sure to leave it in $OUTPUT +# If package symlinks need to be created during install *before* +# your custom contents of doinst.sh runs, then add the -p switch to +# the makepkg command below -- see makepkg(8) for details +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/gtkspell/gtkspell.info b/libraries/gtkspell/gtkspell.info new file mode 100644 index 000000000000..2b54d8c32f85 --- /dev/null +++ b/libraries/gtkspell/gtkspell.info @@ -0,0 +1,8 @@ +PRGNAM="gtkspell" +VERSION="2.0.11" +HOMEPAGE="http://gtkspell.sourceforge.net/" +DOWNLOAD="http://gtkspell.sourceforge.net/download/gtkspell-2.0.11.tar.gz" +MD5SUM="494869f67146a12a3f17a958f51aeb05" +MAINTAINER="Boricua" +EMAIL="boricua@despiertapr.com" +APPROVED="BP{k}"
\ No newline at end of file diff --git a/libraries/gtkspell/slack-desc b/libraries/gtkspell/slack-desc new file mode 100644 index 000000000000..1bc11750cbb1 --- /dev/null +++ b/libraries/gtkspell/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------------------------------------------------------| +gtkspell: gtkspell (gtk spell check widget) +gtkspell: +gtkspell: GtkSpell provides word-processor-style highlighting +gtkspell: and replacement of misspelled words in a GtkTextView widget. +gtkspell: +gtkspell: homepage: gtkspell.sourceforge.net +gtkspell: +gtkspell: +gtkspell: +gtkspell: +gtkspell: |