misc/itstool: Added (Translate XML documents with PO files)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Sebastián Salazar Molina 2012-04-29 20:54:46 -04:00 committed by Erik Hanson
parent 58ba9651be
commit 50b5f7b3a2
4 changed files with 113 additions and 0 deletions

4
misc/itstool/README Normal file
View File

@ -0,0 +1,4 @@
ITS Tool allows you to translate your XML documents with PO
files, using rules from the W3C Internationalization Tag Set
(ITS) to determine what to translate and how to separate it
into PO file messages.

View File

@ -0,0 +1,80 @@
#!/bin/sh
# Slackware build script for itstool
# Written by Sebastián Salazar Molina <sebastian@sebastian.cl>
# All rights reserved.
#
PRGNAM=itstool
VERSION=1.1.2
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
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
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
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 \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING COPYING.GPL3 ChangeLog INSTALL NEWS README \
$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}

10
misc/itstool/itstool.info Normal file
View File

@ -0,0 +1,10 @@
PRGNAM="itstool"
VERSION="1.1.2"
HOMEPAGE="http://itstool.org"
DOWNLOAD="http://files.itstool.org/itstool/itstool-1.1.2.tar.bz2"
MD5SUM="eb65689a98508a36a0fc778af2c22858"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Sebastián Salazar Molina"
EMAIL="sebastian@sebastian.cl"
APPROVED="dsomero"

19
misc/itstool/slack-desc Normal file
View File

@ -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------------------------------------------------------|
itstool: itstool (Translate XML documents with PO files)
itstool:
itstool: ITS Tool allows you to translate your XML documents with PO
itstool: files, using rules from the W3C Internationalization Tag Set
itstool: (ITS) to determine what to translate and how to separate it
itstool: into PO file messages.
itstool:
itstool: Homepage: http://itstool.org/
itstool:
itstool:
itstool: