wok-next annotate dia/receipt @ rev 18544

Up dia (0.97.3), cairo (1.14.4)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Nov 06 22:23:40 2015 +0100 (2015-11-06)
parents 27d55e263e2d
children 15b2a2fdf54f
rev   line source
slaxemulator@10852 1 # SliTaz package receipt.
slaxemulator@10852 2
slaxemulator@10852 3 PACKAGE="dia"
psychomaniak@18544 4 VERSION="0.97.3"
slaxemulator@10852 5 CATEGORY="office"
slaxemulator@10852 6 SHORT_DESC="GTK+ based diagram creation program."
slaxemulator@10852 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
psychomaniak@18544 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
slaxemulator@10852 10 WEB_SITE="http://projects.gnome.org/dia/"
slaxemulator@10852 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
slaxemulator@10852 12 TAGS="office diagram creator editor visio"
slaxemulator@10852 13
slaxemulator@10852 14 DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \
pascal@12078 15 libxslt popt xorg-libXdamage librsvg"
slaxemulator@10852 16 BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \
slaxemulator@10852 17 fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \
psychomaniak@18544 18 libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev \
psychomaniak@18544 19 docbook-xsl docbook-xml cairo-dev pango-dev librsvg-dev"
slaxemulator@10852 20
slaxemulator@10852 21 # Rules to configure and make the package.
slaxemulator@10852 22 compile_rules()
slaxemulator@10852 23 {
psychomaniak@18544 24 #find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
psychomaniak@18544 25 #sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c
psychomaniak@18544 26 #patch -Np1 -i $stuff/dia-overflow-fix.patch
slaxemulator@10852 27 ./configure --with-python \
psychomaniak@18544 28 --with-cairo \
slaxemulator@10852 29 --disable-gnome \
slaxemulator@10852 30 $CONFIGURE_ARGS &&
slaxemulator@10852 31 sed -i 's# data doc tests installer# data tests installer#' Makefile &&
gokhlayeh@11574 32 make $MAKEFLAGS &&
slaxemulator@10852 33 make DESTDIR=$DESTDIR install
slaxemulator@10852 34 }
slaxemulator@10852 35
slaxemulator@10852 36 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@10852 37 genpkg_rules()
slaxemulator@10852 38 {
al@18466 39 mkdir -p $fs/usr/lib/dia $fs/usr/share
al@18466 40
al@18466 41 cp -a $install/usr/bin $fs/usr
al@18466 42 cp -a $install/usr/lib/dia/*.so $fs/usr/lib/dia
al@18466 43 cp -a $install/usr/share/applications $fs/usr/share
pascal@15000 44 cp -a $install/usr/share/dia $fs/usr/share
al@18466 45 cp -a $install/usr/share/icons $fs/usr/share
al@18466 46 rm -r $fs/usr/share/icons/hicolor/scalable
al@18466 47 # cp -a $install/usr/share/locale $fs/usr/share
al@18466 48 cp -a $install/usr/share/mime-info $fs/usr/share
pascal@15000 49 cp -a $install/usr/share/oaf $fs/usr/share
slaxemulator@10852 50 }