wok-next annotate abiword/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="https://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@21017 16 BUILD_DEPENDS="gtk3-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@21020 19 bison goffice-dev intltool gettext-dev xorg-dev zlib-dev libjpeg-turbo-dev"
al@20500 20 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev
al@21020 21 SPLIT="$PACKAGE-plugins $PACKAGE $PACKAGE-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@21020 37 make DESTDIR=$install install || return 1
al@20500 38
jozee@5272 39 cd plugins
al@21020 40 make DESTDIR=$install 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@21017 54 DEPENDS="gtk3 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 }