development/Amaya: Updated for version 11.0

This commit is contained in:
Kai Schreyer 2010-05-12 17:38:12 +02:00 committed by David Somero
parent 9a4a6f1286
commit f4a23c5a02
5 changed files with 45 additions and 23 deletions

View File

@ -31,13 +31,12 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
# Changed to version 10.0.1 by ks/30.08.2008
# Changed to version 11.0 by ks/22.01.2009
set -e
PRGNAM=Amaya
VERSION=10.0.1
SRCVER=10.0
VERSION=11.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -58,32 +57,35 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $TMP/$PRGNAM$SRCVER
rm -rf $TMP/$PRGNAM$VERSION
tar -xzvf $CWD/$(echo $PRGNAM |tr [A] [a])-sources-$VERSION.tgz
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Creating a subdirectory as specified in the README as we Have to run
# configure from within a subdir
mkdir -p $PRGNAM$SRCVER/$PRGNAM/Slackware
cd $PRGNAM$SRCVER/$PRGNAM/Slackware
mkdir -p $PRGNAM$VERSION/$PRGNAM/Slackware
cd $PRGNAM$VERSION/$PRGNAM/Slackware
CFLAGS="$SLKFLAGS" \
../configure \
--prefix=$PKG/opt \
--exec-prefix=$PKG/opt \
--sysconfdir=$PKG/etc \
--localstatedir=$PKG/var
../configure \
--prefix=$PKG/opt \
--exec-prefix=$PKG/opt \
--sysconfdir=$PKG/etc \
--localstatedir=$PKG/var \
--enable-system-raptor \
--build=$ARCH-slackware-linux
make
make install
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $TMP/$PRGNAM$SRCVER/$PRGNAM/README* $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $TMP/$PRGNAM$VERSION/$PRGNAM/README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Creating /usr/bin/amaya-wx symbolic link
@ -95,6 +97,9 @@ mkdir -p $PKG/usr/bin
# Deleting useless files
rm -rf $PKG/opt/bin
# Fix the amaya wrapper script
install -m 0755 $CWD/wrapper.amaya $PKG/opt/$PRGNAM/wx/bin/amaya
#desktop file
mkdir -p $PKG/usr/share/{pixmaps,applications}
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop

View File

@ -1,8 +1,8 @@
PRGNAM="Amaya"
VERSION="10.0.1"
VERSION="11.0"
HOMEPAGE="http://www.w3.org/Amaya"
DOWNLOAD="ftp://ftp.w3.org/pub/amaya/amaya-sources-10.0.1.tgz"
MD5SUM="0a32af56cf81c13b6efc5c65c2137859"
DOWNLOAD="http://www.w3.org/Amaya/Distribution/amaya-sources-11.0.tgz"
MD5SUM="d5ebaf20528373effcea7978f8856b6d"
MAINTAINER="Kai Schreyer"
EMAIL="kabrus@go4more.de"
APPROVED="David Somero"
APPROVED="dsomero, michiel"

View File

@ -13,4 +13,10 @@ of their combination in a single, consistent environment.
Amaya started as an HTML + CSS style sheets editor. Since that time it was
extended to support XML and an increasing number of XML applications such as
the XHTML family, MathML, and SVG. It allows all those vocabularies to be
edited simultaneously in compound document
edited simultaneously in compound document
NOTE: Since Amaya 11.0 the --enable-system-raptor option is used to build
the package. Therefore the raptor library, also available at SlackBuilds.org,
is required to build this package. Without this option the build currently
exits with errors. Maybe this changes in the future, so that the dependency
will be then obsolete again.

View File

@ -1,8 +1,8 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database -q usr/share/applications
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications
fi
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# Script to launchs amaya_bin
# Irene Vatton, 2007
#
AMAYA_INSTALLDIR="Amaya"
PREFIX=/opt
AMAYAGUI="wx"
env XLIB_SKIP_ARGB_VISUALS=1 G_SLICE="always-malloc" $PREFIX/$AMAYA_INSTALLDIR/$AMAYAGUI/bin/amaya_bin ${1+$@}