From 66b06be328250b46d4f2d2a54541f8ad9d8b3e08 Mon Sep 17 00:00:00 2001 From: aydemir Date: Sat, 29 Aug 2015 20:25:57 +0300 Subject: [PATCH] plotutils add repo --- science/mathematics/plotutils/actions.py | 41 +++++++++ .../plotutils/files/plotutils-2.6-png15.patch | 39 ++++++++ science/mathematics/plotutils/pspec.xml | 92 +++++++++++++++++++ .../mathematics/plotutils/translations.xml | 13 +++ 4 files changed, 185 insertions(+) create mode 100644 science/mathematics/plotutils/actions.py create mode 100644 science/mathematics/plotutils/files/plotutils-2.6-png15.patch create mode 100644 science/mathematics/plotutils/pspec.xml create mode 100644 science/mathematics/plotutils/translations.xml diff --git a/science/mathematics/plotutils/actions.py b/science/mathematics/plotutils/actions.py new file mode 100644 index 0000000000..9e35167c8c --- /dev/null +++ b/science/mathematics/plotutils/actions.py @@ -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 \ No newline at end of file diff --git a/science/mathematics/plotutils/files/plotutils-2.6-png15.patch b/science/mathematics/plotutils/files/plotutils-2.6-png15.patch new file mode 100644 index 0000000000..d66f8dd2e5 --- /dev/null +++ b/science/mathematics/plotutils/files/plotutils-2.6-png15.patch @@ -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 diff --git a/science/mathematics/plotutils/pspec.xml b/science/mathematics/plotutils/pspec.xml new file mode 100644 index 0000000000..5766f3ca86 --- /dev/null +++ b/science/mathematics/plotutils/pspec.xml @@ -0,0 +1,92 @@ + + + + + plotutils + http://www.gnu.org/software/plotutils/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + library + 2D vector graphics library + PlotUtils is a powerful C/C++ function library for exporting 2D vector graphics. + ftp://aeneas.mit.edu/pub/gnu/plotutils/plotutils-2.6.tar.gz + + libXaw-devel + libXext-devel + libXt-devel + + + plotutils-2.6-png15.patch + + + + + plotutils + + libSM + libICE + libXmu + libXaw + libXext + libXt + libX11 + libgcc + + + /usr/bin + /usr/lib + /usr/share/doc + /usr/share/info + /usr/share/man + /usr/share/libplot + /usr/share/ode + /usr/share/pic2plot + /usr/share/tek2plot + + + + + plotutils-devel + Development files for plotutils + + plotutils + + + /usr/include + + + + + + 2014-06-14 + 2.6 + Rebuild for gcc + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-03-10 + 2.6 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2013-07-28 + 2.6 + Dep Fixed + Osman Erkan + osman.erkan@pisilinux.org + + + 2012-11-11 + 2.6 + First release + Osman Erkan + osman.erkan@pisilinux.org + + + \ No newline at end of file diff --git a/science/mathematics/plotutils/translations.xml b/science/mathematics/plotutils/translations.xml new file mode 100644 index 0000000000..6436a4d195 --- /dev/null +++ b/science/mathematics/plotutils/translations.xml @@ -0,0 +1,13 @@ + + + + plotutils + 2B vektörel grafik araçları + 2B vektörel grafik üretmeye yarayan C/C++ kütüphanesi ve araçlar + + + + plotutils-devel + plotutils için geliştirme dosyaları + + \ No newline at end of file