wok annotate dia/receipt @ rev 14873

perl-{glib,gtk2,pango}: remove unwanted folder
author Claudinei Pereira <claudinei@slitaz.org>
date Tue Jul 23 06:26:40 2013 -0300 (2013-07-23)
parents 72f6921dc161
children 380ffe05937a
rev   line source
slaxemulator@10852 1 # SliTaz package receipt.
slaxemulator@10852 2
slaxemulator@10852 3 PACKAGE="dia"
slaxemulator@10852 4 VERSION="0.97.1"
slaxemulator@10852 5 CATEGORY="office"
slaxemulator@10852 6 SHORT_DESC="GTK+ based diagram creation program."
slaxemulator@10852 7 MAINTAINER="pascal.bellard@slitaz.org"
slaxemulator@10852 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@10852 9 WEB_SITE="http://projects.gnome.org/dia/"
slaxemulator@10852 10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
slaxemulator@10852 11 TAGS="office diagram creator editor visio"
slaxemulator@10852 12
slaxemulator@10852 13 DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \
pascal@12078 14 libxslt popt xorg-libXdamage librsvg"
slaxemulator@10852 15 BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \
slaxemulator@10852 16 fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \
slaxemulator@10852 17 libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev"
slaxemulator@10852 18
slaxemulator@10852 19 # Rules to configure and make the package.
slaxemulator@10852 20 compile_rules()
slaxemulator@10852 21 {
slaxemulator@10852 22 cd $src
pascal@12785 23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
pascal@12785 24 sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c
slaxemulator@10852 25 patch -Np1 -i $stuff/dia-overflow-fix.patch
slaxemulator@10852 26 ./configure --with-python \
slaxemulator@10852 27 --disable-gnome \
slaxemulator@10852 28 $CONFIGURE_ARGS &&
slaxemulator@10852 29 sed -i 's# data doc tests installer# data tests installer#' Makefile &&
gokhlayeh@11574 30 make $MAKEFLAGS &&
slaxemulator@10852 31 make DESTDIR=$DESTDIR install
slaxemulator@10852 32 }
slaxemulator@10852 33
slaxemulator@10852 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@10852 35 genpkg_rules()
slaxemulator@10852 36 {
slaxemulator@10852 37 mkdir -p $fs/usr/lib $fs/usr/share/locale
slaxemulator@10852 38 cp -a $_pkg/usr/lib/dia $fs/usr/lib
slaxemulator@10852 39 cp -a $_pkg/usr/share/dia $fs/usr/share
slaxemulator@10852 40 cp -a $_pkg/usr/share/oaf $fs/usr/share
slaxemulator@10852 41 #cp -a $_pkg/usr/share/omf $fs/usr/share
slaxemulator@10852 42 cp -a $_pkg/usr/share/locale/de $fs/usr/share/locale
slaxemulator@10852 43 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
slaxemulator@10852 44 #cp -a $_pkg/usr/share/help $fs/usr/share
slaxemulator@10852 45 cp -a $_pkg/usr/share/applications $fs/usr/share
slaxemulator@10852 46 cp -a $_pkg/usr/share/mime-info $fs/usr/share
slaxemulator@10852 47 cp -a $_pkg/usr/share/icons/hicolor/16x16/apps/dia.png $fs/usr/share/pixmaps
slaxemulator@10852 48 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@10852 49 }
slaxemulator@10852 50