aboutsummaryrefslogtreecommitdiffstats
path: root/community/dia
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-01 11:50:13 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-01 11:50:13 +0200
commit08f706c5eaf2724dc8256eead79287bdb36be051 (patch)
tree02fdde6783feefd0d0b53a0ba9deef1feae122f9 /community/dia
parentf0af06ef1fa957b31ac762bfbcb88339df178fa0 (diff)
downloadaports-08f706c5eaf2724dc8256eead79287bdb36be051.tar.bz2
aports-08f706c5eaf2724dc8256eead79287bdb36be051.tar.xz
community/dia: moved from testing
Diffstat (limited to 'community/dia')
-rw-r--r--community/dia/APKBUILD54
-rw-r--r--community/dia/dia-unregister-import.patch37
-rw-r--r--community/dia/isinf.patch16
3 files changed, 107 insertions, 0 deletions
diff --git a/community/dia/APKBUILD b/community/dia/APKBUILD
new file mode 100644
index 0000000000..1e465905fb
--- /dev/null
+++ b/community/dia/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dia
+pkgver=0.97.3
+pkgrel=0
+pkgdesc="a GTK+ based diagram creation program"
+url="http://live.gnome.org/Dia"
+arch="all"
+license="GPL2"
+depends=
+depends_dev=
+makedepends="gtk+2.0-dev libxml2-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://ftp.gnome.org/pub/gnome/sources/dia/${pkgver%.*}/dia-$pkgver.tar.xz
+ isinf.patch
+ dia-unregister-import.patch
+ "
+
+_builddir="$srcdir"/dia-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="0e744a0f6a6c4cb6a089e4d955392c3c dia-0.97.3.tar.xz
+cbbc32d417297b855353f86b484b369b isinf.patch
+888dd98e05d657e27842acdb0d91d73b dia-unregister-import.patch"
+sha256sums="22914e48ef48f894bb5143c5efc3d01ab96e0a0cde80de11058d3b4301377d34 dia-0.97.3.tar.xz
+cd4073083a9e09657e5444275a710c4bb1ffc9f621fc639369fb96118a184a5e isinf.patch
+30b6e23e140f637bcf94bf734e731bfdbfb4a50f6cdb0760dc9d1b37f9b5a99a dia-unregister-import.patch"
+sha512sums="34298980be930b87cb4a636344e4cb2a7e43eedc00b0969a5e446cee9b74b616fdc8c798efcb9a5832b98741f2e20632a44037b2bcb436f59591d531ef441efa dia-0.97.3.tar.xz
+cfa8fd8fecc7f0e3da185b512c169b156363a73c151547725f964e1cf7b1a305e44c493d0490c680c5f25859acee74fe4ef942ae9ee634b370bd9b9952186c5a isinf.patch
+24267507ff08ac589ec1015e55637586a9fd97802893a77849d1e7bce67135fbd3d55611e2c80be1d5f87b92406c95cd5fe484175037297ebe1dbc8eb509a7d4 dia-unregister-import.patch"
diff --git a/community/dia/dia-unregister-import.patch b/community/dia/dia-unregister-import.patch
new file mode 100644
index 0000000000..15feba0cac
--- /dev/null
+++ b/community/dia/dia-unregister-import.patch
@@ -0,0 +1,37 @@
+From a6e2409b85414b3d82dacd390ce9c9f007e254e8 Mon Sep 17 00:00:00 2001
+From: Jiri Popelka <jpopelka@redhat.com>
+Date: Wed, 5 Sep 2012 11:12:59 +0200
+Subject: [PATCH] Unregister vdx, xfig import filters during plugin unloading.
+
+---
+ plug-ins/vdx/vdx.c | 1 +
+ plug-ins/xfig/xfig.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/plug-ins/vdx/vdx.c b/plug-ins/vdx/vdx.c
+index 64bc4b0..82ddc4b 100644
+--- a/plug-ins/vdx/vdx.c
++++ b/plug-ins/vdx/vdx.c
+@@ -43,6 +43,7 @@ static void
+ _plugin_unload (PluginInfo *info)
+ {
+ filter_unregister_export(&vdx_export_filter);
++ filter_unregister_import(&vdx_import_filter);
+ }
+
+
+diff --git a/plug-ins/xfig/xfig.c b/plug-ins/xfig/xfig.c
+index 966c294..10d68aa 100644
+--- a/plug-ins/xfig/xfig.c
++++ b/plug-ins/xfig/xfig.c
+@@ -41,6 +41,7 @@ static void
+ _plugin_unload (PluginInfo *info)
+ {
+ filter_unregister_export(&xfig_export_filter);
++ filter_unregister_import(&xfig_import_filter);
+ }
+
+
+--
+1.7.11.4
+
diff --git a/community/dia/isinf.patch b/community/dia/isinf.patch
new file mode 100644
index 0000000000..4cd4adbc86
--- /dev/null
+++ b/community/dia/isinf.patch
@@ -0,0 +1,16 @@
+--- ./configure.orig
++++ ./configure
+@@ -17436,11 +17436,11 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char isinf ();
++#include <math.h>
+ int
+ main ()
+ {
+-return isinf ();
++return isinf (0.0);
+ ;
+ return 0;
+ }