wok-next annotate abiword/receipt @ rev 14388

embryo: update deps
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 07:01:23 2013 +0200 (2013-04-23)
parents cf7d783d1fdf
children 7896f0694ef6
rev   line source
pankso@46 1 # SliTaz package receipt.
pankso@46 2
pankso@46 3 PACKAGE="abiword"
slaxemulator@6146 4 VERSION="2.8.6"
pankso@205 5 CATEGORY="office"
pankso@46 6 SHORT_DESC="Light and speed word processing application."
pankso@46 7 MAINTAINER="pankso@slitaz.org"
pankso@3853 8 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
gokhlayeh@5780 9 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base librsvg \
slaxemulator@9244 10 goffice glibc-locale"
pankso@3853 11 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
pankso@3853 12 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
slaxemulator@6146 13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
pankso@573 14 SUGGESTED="abiword-extras"
pankso@573 15 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@46 16 WEB_SITE="http://www.abisource.com/"
pankso@733 17 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
jozee@4931 18 TAGS="word doc office"
al@13066 19 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
pankso@46 20
al@13066 21 # Rules to configure and make the package.
pankso@46 22 compile_rules()
pankso@46 23 {
pankso@573 24 cd $src
pascal@12875 25 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
pascal@12875 26 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
pascal@12875 27 sed -i 's|--no-undefined||' src/Makefile*
pascal@13828 28 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
pankso@46 29 ./configure \
pankso@46 30 --prefix=/usr \
pankso@46 31 --infodir=/usr/share/info \
pankso@46 32 --mandir=/usr/share/man \
jozee@5272 33 --enable-plugins \
jozee@5272 34 --enable-clipart \
jozee@5272 35 --enable-templates \
jozee@5272 36 --disable-collab-backend-sugar \
pascal@4998 37 $CONFIGURE_ARGS &&
gokhlayeh@11574 38 make $MAKEFLAGS &&
pankso@573 39 make DESTDIR=$PWD/_pkg install
jozee@5272 40
jozee@5272 41 cd plugins
jozee@5272 42 make DESTDIR=$src/_pkg install
pankso@46 43 }
pankso@46 44
pankso@46 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@46 46 genpkg_rules()
pankso@46 47 {
slaxemulator@7481 48 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
al@13066 49
pankso@46 50 cp -a $_pkg/usr/bin $fs/usr
jozee@5272 51 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
al@13066 52
pankso@573 53 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
al@13066 54
pankso@3853 55 # Non standard pixmap
pankso@46 56 cp $_pkg/usr/share/icons/abiword_48.png \
pankso@46 57 $fs/usr/share/pixmaps/abiword.png
al@13066 58
slaxemulator@7481 59 # fix error when abiword is run in command line
slaxemulator@7481 60 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
al@13066 61
al@13066 62 # Non-standard locale use: get all official SliTaz locales
jozee@2800 63 rm $fs/usr/share/abiword-*/strings/*
jozee@2800 64 rm $fs/usr/share/abiword-*/templates/*
jozee@2800 65 rm $fs/usr/share/abiword-*/system.pro*
al@13066 66
al@13066 67 for LOCALE in $LOCALES; do
al@13066 68 cp $_pkg/usr/share/abiword-*/strings/$LOCALE*.strings \
al@13066 69 $fs/usr/share/abiword-*/strings/
al@13066 70 # id locale not complete in sources
al@13066 71 if [ "$LOCALE" != "id" ]; then
al@13066 72 cp $_pkg/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
al@13066 73 $fs/usr/share/abiword-*/templates/
al@13066 74 cp $_pkg/usr/share/abiword-*/system.profile-$LOCALE* \
al@13066 75 $fs/usr/share/abiword-*/
al@13066 76 fi
al@13066 77 done
al@13066 78
jozee@5275 79 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
al@13066 80 cp $_pkg/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
pankso@46 81 }
pankso@46 82