wok annotate dia/receipt @ rev 24330
updated atftp and atftpd (0.7.2 -> 0.7.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 15:48:06 2022 +0100 (2022-01-27) |
parents | 15b2a2fdf54f |
children |
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 |
pascal@24111 | 21 current_version() |
pascal@24111 | 22 { |
pascal@24111 | 23 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 25 } |
pascal@24111 | 26 |
slaxemulator@10852 | 27 # Rules to configure and make the package. |
slaxemulator@10852 | 28 compile_rules() |
slaxemulator@10852 | 29 { |
psychomaniak@18544 | 30 #find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' |
psychomaniak@18544 | 31 #sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c |
psychomaniak@18544 | 32 #patch -Np1 -i $stuff/dia-overflow-fix.patch |
slaxemulator@10852 | 33 ./configure --with-python \ |
psychomaniak@18544 | 34 --with-cairo \ |
slaxemulator@10852 | 35 --disable-gnome \ |
slaxemulator@10852 | 36 $CONFIGURE_ARGS && |
slaxemulator@10852 | 37 sed -i 's# data doc tests installer# data tests installer#' Makefile && |
gokhlayeh@11574 | 38 make $MAKEFLAGS && |
slaxemulator@10852 | 39 make DESTDIR=$DESTDIR install |
slaxemulator@10852 | 40 } |
slaxemulator@10852 | 41 |
slaxemulator@10852 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10852 | 43 genpkg_rules() |
slaxemulator@10852 | 44 { |
al@19230 | 45 cp -a $install/* $fs |
al@19230 | 46 rm -r $fs/usr/lib/dia/*.la $fs/usr/share/locale |
slaxemulator@10852 | 47 } |