wok-next annotate dia/receipt @ rev 15925
linux: add ata orphans
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 19 12:47:39 2014 +0000 (2014-02-19) |
parents | e5f512a9eb4b |
children | 27d55e263e2d |
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" |
pascal@15000 | 8 LICENSE="GPL2" |
slaxemulator@10852 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
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 \ |
slaxemulator@10852 | 18 libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev" |
slaxemulator@10852 | 19 |
slaxemulator@10852 | 20 # Rules to configure and make the package. |
slaxemulator@10852 | 21 compile_rules() |
slaxemulator@10852 | 22 { |
slaxemulator@10852 | 23 cd $src |
pascal@12785 | 24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
pascal@12785 | 25 sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c |
slaxemulator@10852 | 26 patch -Np1 -i $stuff/dia-overflow-fix.patch |
slaxemulator@10852 | 27 ./configure --with-python \ |
slaxemulator@10852 | 28 --disable-gnome \ |
slaxemulator@10852 | 29 $CONFIGURE_ARGS && |
slaxemulator@10852 | 30 sed -i 's# data doc tests installer# data tests installer#' Makefile && |
gokhlayeh@11574 | 31 make $MAKEFLAGS && |
slaxemulator@10852 | 32 make DESTDIR=$DESTDIR install |
slaxemulator@10852 | 33 } |
slaxemulator@10852 | 34 |
slaxemulator@10852 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10852 | 36 genpkg_rules() |
slaxemulator@10852 | 37 { |
slaxemulator@10852 | 38 mkdir -p $fs/usr/lib $fs/usr/share/locale |
pascal@15000 | 39 cp -a $install/usr/lib/dia $fs/usr/lib |
pascal@15000 | 40 cp -a $install/usr/share/dia $fs/usr/share |
pascal@15000 | 41 cp -a $install/usr/share/oaf $fs/usr/share |
pascal@15000 | 42 #cp -a $install/usr/share/omf $fs/usr/share |
pascal@15000 | 43 cp -a $install/usr/share/locale/de $fs/usr/share/locale |
pascal@15000 | 44 cp -a $install/usr/share/locale/fr $fs/usr/share/locale |
pascal@15000 | 45 #cp -a $install/usr/share/help $fs/usr/share |
pascal@15000 | 46 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15000 | 47 cp -a $install/usr/share/mime-info $fs/usr/share |
pascal@15000 | 48 cp -a $install/usr/share/icons/hicolor/16x16/apps/dia.png $fs/usr/share/pixmaps |
pascal@15000 | 49 cp -a $install/usr/bin $fs/usr |
slaxemulator@10852 | 50 } |
slaxemulator@10852 | 51 |