add dia.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import autotools, pisitools, get
|
||||
|
||||
i = ''.join([
|
||||
' --with-python',
|
||||
' --with-swig',
|
||||
' --disable-nls',
|
||||
' --disable-gnome',
|
||||
' --disable-static '
|
||||
' --disable-hardbooks',
|
||||
])
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("Makefile.in", "samples po sheets", "samples sheets")
|
||||
autotools.configure(i)
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
pisitools.removeDir("/usr/share/man/fr")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "MAINTAINERS", "NEWS", "THANKS")
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/app/app_procs.c b/app/app_procs.c
|
||||
index d0f2d3d..423fe2f 100644
|
||||
--- a/app/app_procs.c
|
||||
+++ b/app/app_procs.c
|
||||
@@ -801,6 +801,7 @@ app_init (int argc, char **argv)
|
||||
|
||||
if (!filename) {
|
||||
g_print (_("Filename conversion failed: %s\n"), filenames[i]);
|
||||
+ ++i;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>dia</Name>
|
||||
<Homepage>http://wiki.gnome.org/Apps/Dia</Homepage>
|
||||
<Packager>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Packager>
|
||||
<License>GPL-2</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<PartOf>office.misc</PartOf>
|
||||
<Summary>Versatile diagramming tool.</Summary>
|
||||
<Description>Dia is a program for drawing diagrams.</Description>
|
||||
<Archive sha1sum="316393951daebd186ba387e1cd6e34160a458c39" type="tarxz">
|
||||
https://download.gnome.org/sources/dia/0.97/dia-0.97.3.tar.xz
|
||||
</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>swig</Dependency>
|
||||
<Dependency>intltool</Dependency>
|
||||
<Dependency>gtk2-devel</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>libxslt-devel</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
<Dependency>docbook-xsl</Dependency>
|
||||
<Dependency>libart_lgpl-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level='1'></Patch> -->
|
||||
<Patch level='1'>dia-unregister-import.patch</Patch>
|
||||
<Patch level='1'>isinf.patch</Patch>
|
||||
<Patch level='1'>CVE-2019-19451.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>dia</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>gtk2</Dependency>
|
||||
<Dependency>pango</Dependency>
|
||||
<Dependency>cairo</Dependency>
|
||||
<Dependency>libart_lgpl</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/dia</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="data">/usr/share/dia</Path>
|
||||
<Path fileType="data">/usr/share/man/man1</Path>
|
||||
<Path fileType="data">/usr/share/mime-info</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2023-03-08</Date>
|
||||
<Version>0.97.3</Version>
|
||||
<Comment>First build.</Comment>
|
||||
<Name>fury</Name>
|
||||
<Email>uglyside@yandex.ru</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user