wok-next annotate abiword/receipt @ rev 20931
pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 08:03:04 2018 +0300 (2018-08-23) |
parents | cfe02a64e56a |
children | f48456621a9d |
rev | line source |
---|---|
pascal@20185 | 1 # SliTaz package receipt v2. |
pankso@46 | 2 |
pankso@46 | 3 PACKAGE="abiword" |
psychomaniak@20013 | 4 VERSION="3.0.2" |
pankso@205 | 5 CATEGORY="office" |
al@20500 | 6 SHORT_DESC="Light and speed word processing application" |
pankso@46 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20500 | 9 WEB_SITE="http://www.abisource.com/" |
al@20500 | 10 |
pascal@15002 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15002 | 12 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL" |
al@20500 | 13 LOCALES="ar ca cs da de el en es fa fi fr hr hu id is it ja nb nl nn pl pt ro \ |
al@20500 | 14 ru sl sv tr uk vi zh" |
pascal@15002 | 15 |
al@20931 | 16 BUILD_DEPENDS="gtk+3-dev python-pygobject-dev gobject-introspection-dev \ |
al@20931 | 17 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \ |
al@20915 | 18 libgsf-dev enchant-dev wv-dev libcroco-dev boost-dev librsvg-dev gtk-doc \ |
al@20916 | 19 bison goffice-dev intltool gettext xorg-dev zlib-dev libjpeg-turbo-dev" |
al@20500 | 20 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev |
al@20500 | 21 SPLIT="abiword-plugins abiword abiword-dev" |
pankso@46 | 22 |
al@20500 | 23 compile_rules() { |
pascal@12875 | 24 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h |
pascal@12875 | 25 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h |
pascal@12875 | 26 sed -i 's|--no-undefined||' src/Makefile* |
pascal@13828 | 27 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile* |
al@20500 | 28 |
pankso@46 | 29 ./configure \ |
jozee@5272 | 30 --enable-plugins \ |
jozee@5272 | 31 --enable-clipart \ |
jozee@5272 | 32 --enable-templates \ |
jozee@5272 | 33 --disable-collab-backend-sugar \ |
pascal@4998 | 34 $CONFIGURE_ARGS && |
al@20569 | 35 fix libtool && |
gokhlayeh@11574 | 36 make $MAKEFLAGS && |
al@20500 | 37 make DESTDIR=$DESTDIR install || return 1 |
al@20500 | 38 |
jozee@5272 | 39 cd plugins |
pascal@15002 | 40 make DESTDIR=$DESTDIR install |
pankso@46 | 41 } |
pankso@46 | 42 |
al@20500 | 43 genpkg_rules() { |
pascal@20185 | 44 case $PACKAGE in |
al@20500 | 45 abiword-plugins) |
al@20500 | 46 copy plugins/*.so |
al@20686 | 47 CAT="office|extra plugins: MSWord, OpenDocument, Wikipedia, etc." |
al@20500 | 48 DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt" |
al@20500 | 49 TAGS="doc odf docx" |
al@20500 | 50 ;; |
al@20500 | 51 abiword) |
al@20500 | 52 copy @std @rm |
al@20500 | 53 TAGS="word doc office" |
al@20500 | 54 DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \ |
pascal@20185 | 55 libgsf glib enchant wv xorg-libXdamage gcc-lib-base \ |
pascal@20185 | 56 librsvg goffice glibc-locale libffi" |
al@20500 | 57 SUGGESTED="abiword-plugins" |
al@13066 | 58 |
al@20500 | 59 # Non-standard locale use: get all official SliTaz locales |
al@20500 | 60 rm $fs/usr/share/abiword-*/strings/* |
al@20500 | 61 rm $fs/usr/share/abiword-*/system.profile-* |
al@20500 | 62 rm $fs/usr/share/abiword-*/templates/normal.awt-* |
al@13066 | 63 |
al@20500 | 64 for LOCALE in $LOCALES; do |
al@20500 | 65 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \ |
al@20500 | 66 $fs/usr/share/abiword-*/strings/ |
al@20500 | 67 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \ |
al@20500 | 68 $fs/usr/share/abiword-*/ |
pascal@20185 | 69 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \ |
al@20500 | 70 $fs/usr/share/abiword-*/templates/ |
al@20500 | 71 done 2>/dev/null |
al@20500 | 72 ;; |
al@20500 | 73 abiword-dev) |
al@20500 | 74 copy @dev |
al@20500 | 75 ;; |
pascal@20185 | 76 esac |
pankso@46 | 77 } |