SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dia"

# SliTaz package receipt.

PACKAGE="dia"
VERSION="0.97.3"
CATEGORY="office"
SHORT_DESC="GTK+ based diagram creation program."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://projects.gnome.org/dia/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
TAGS="office diagram creator editor visio"

DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \
libxslt popt xorg-libXdamage librsvg"
BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \
fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \
libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev \
docbook-xsl docbook-xml cairo-dev pango-dev librsvg-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    #find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
    #sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c
    #patch -Np1 -i $stuff/dia-overflow-fix.patch
    ./configure --with-python \
        --with-cairo \
        --disable-gnome \
        $CONFIGURE_ARGS &&
    sed -i 's# data doc tests installer# data tests installer#' Makefile &&
    make $MAKEFLAGS &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -r $fs/usr/lib/dia/*.la $fs/usr/share/locale
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)