plotutils add repo

This commit is contained in:
aydemir
2015-08-29 20:25:57 +03:00
parent dcd8ae5533
commit 66b06be328
4 changed files with 185 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import libtools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
#autotools.autoreconf("-vfi")
#libtools.libtoolize("--force --copy")
# May have trouble with cpu flags
autotools.configure("--with-x \
--enable-libxmi \
--enable-libplotter \
--enable-ps-fonts-in-pcl \
--enable-static=no")
# fix rpath handling
shelltools.system("sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool")
shelltools.system("sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool")
def build():
autotools.make()
def install():
autotools.install("datadir=%s/usr/share" % get.installDIR())
# these files are too generic named and they conflict with other packages like cel
for f in shelltools.ls("%s/usr/bin" % get.installDIR()):
pisitools.rename("/usr/bin/%s" % f, "plotutils-%s" % f)
pisitools.dodoc("AUTHORS", "COMPAT", "ChangeLog", "KNOWN_BUGS", "NEWS", "ONEWS", "PROBLEMS", "README", "THANKS", "TODO")
# FIXME: we are not installing the ps fonts now, we should check if it breaks ghostscript and printers
# read INSTALL.fonts for more info
@@ -0,0 +1,39 @@
diff -up plotutils-2.6/libplot/z_write.c.png15 plotutils-2.6/libplot/z_write.c
--- plotutils-2.6/libplot/z_write.c.png15 2008-07-15 20:54:10.000000000 -0400
+++ plotutils-2.6/libplot/z_write.c 2012-03-22 13:26:48.251676137 -0400
@@ -164,7 +164,11 @@ _pl_z_maybe_output_image (S___(Plotter *
}
/* cleanup after libpng errors (error handler does a longjmp) */
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ if (setjmp (png_jmpbuf(png_ptr)))
+#else
if (setjmp (png_ptr->jmpbuf))
+#endif
{
png_destroy_write_struct (&png_ptr, (png_info **)NULL);
return -1;
@@ -444,7 +448,11 @@ _our_error_fn_stdio (png_struct *png_ptr
#endif
}
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ longjmp (png_jmpbuf(png_ptr), 1);
+#else
longjmp (png_ptr->jmpbuf, 1);
+#endif
}
static void
@@ -515,7 +523,11 @@ _our_error_fn_stream (png_struct *png_pt
#endif
}
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+ longjmp (png_jmpbuf(png_ptr), 1);
+#else
longjmp (png_ptr->jmpbuf, 1);
+#endif
}
static void
+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>plotutils</Name>
<Homepage>http://www.gnu.org/software/plotutils/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>2D vector graphics library</Summary>
<Description>PlotUtils is a powerful C/C++ function library for exporting 2D vector graphics.</Description>
<Archive sha1sum="7921301d9dfe8991e3df2829bd733df6b2a70838" type="targz">ftp://aeneas.mit.edu/pub/gnu/plotutils/plotutils-2.6.tar.gz</Archive>
<BuildDependencies>
<Dependency>libXaw-devel</Dependency>
<Dependency>libXext-devel</Dependency>
<Dependency>libXt-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">plotutils-2.6-png15.patch</Patch>
</Patches>
</Source>
<Package>
<Name>plotutils</Name>
<RuntimeDependencies>
<Dependency>libSM</Dependency>
<Dependency>libICE</Dependency>
<Dependency>libXmu</Dependency>
<Dependency>libXaw</Dependency>
<Dependency>libXext</Dependency>
<Dependency>libXt</Dependency>
<Dependency>libX11</Dependency>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/libplot</Path>
<Path fileType="data">/usr/share/ode</Path>
<Path fileType="data">/usr/share/pic2plot</Path>
<Path fileType="data">/usr/share/tek2plot</Path>
</Files>
</Package>
<Package>
<Name>plotutils-devel</Name>
<Summary>Development files for plotutils</Summary>
<RuntimeDependencies>
<Dependency release="current">plotutils</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-06-14</Date>
<Version>2.6</Version>
<Comment>Rebuild for gcc</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-03-10</Date>
<Version>2.6</Version>
<Comment>Rebuild</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-28</Date>
<Version>2.6</Version>
<Comment>Dep Fixed</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-11</Date>
<Version>2.6</Version>
<Comment>First release</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>plotutils</Name>
<Summary xml:lang="tr">2B vektörel grafik araçları</Summary>
<Description xml:lang="tr">2B vektörel grafik üretmeye yarayan C/C++ kütüphanesi ve araçlar</Description>
</Source>
<Package>
<Name>plotutils-devel</Name>
<Summary xml:lang="tr">plotutils için geliştirme dosyaları</Summary>
</Package>
</PISI>