From 3f8d98be38d9c6214b643eb94548c612c00e097f Mon Sep 17 00:00:00 2001 From: blue-devil Date: Sat, 23 May 2020 00:52:19 +0300 Subject: [PATCH] gnuplot:first pisi rel --- science/misc/gnuplot/actions.py | 34 +++++++++ science/misc/gnuplot/files/lua53_compat.patch | 13 ++++ science/misc/gnuplot/pspec.xml | 69 +++++++++++++++++++ science/misc/gnuplot/translations.xml | 8 +++ 4 files changed, 124 insertions(+) create mode 100644 science/misc/gnuplot/actions.py create mode 100644 science/misc/gnuplot/files/lua53_compat.patch create mode 100644 science/misc/gnuplot/pspec.xml create mode 100644 science/misc/gnuplot/translations.xml diff --git a/science/misc/gnuplot/actions.py b/science/misc/gnuplot/actions.py new file mode 100644 index 0000000000..88ef7ef48e --- /dev/null +++ b/science/misc/gnuplot/actions.py @@ -0,0 +1,34 @@ +#!/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 get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +def setup(): + # fix default source location; use the GDFONTPATH variable to modify at runtime + shelltools.system("sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c") + shelltools.system("sed -i -e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \ + -e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \ + src/variable.c") + + # suppress compiler warnings + pisitools.cflags.add("-Wno-unused-result -Wno-stringop-overflow") + shelltools.system("MAKEINFO=/usr/bin/makeinfo WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \ + --libexecdir=/usr/bin \ + --with-gihdir=/usr/share/gnuplot \ + --with-readline=gnu \ + --with-bitmap-terminals \ + --with-wx-single-threaded \ + --with-texdir=/usr/share/texmf/tex/latex/gnuplot") + +def build(): + autotools.make("pkglibexecdir=/usr/bin") + +def install(): + autotools.rawInstall("pkglibexecdir=/usr/bin DESTDIR=%s" % get.installDIR()) + pisitools.dodoc("Copyright", "README*") \ No newline at end of file diff --git a/science/misc/gnuplot/files/lua53_compat.patch b/science/misc/gnuplot/files/lua53_compat.patch new file mode 100644 index 0000000000..9d3be770ae --- /dev/null +++ b/science/misc/gnuplot/files/lua53_compat.patch @@ -0,0 +1,13 @@ +diff --git a/term/lua.trm b/term/lua.trm +index af63d68..474221f 100644 +--- a/term/lua.trm ++++ b/term/lua.trm +@@ -110,6 +110,8 @@ TERM_PUBLIC void LUA_boxed_text __PROTO((unsigned int, unsigned int, int)); + # define LUA_EXTERNAL_IMAGES 1 + #endif + ++ ++#define LUA_COMPAT_APIINTCASTS + #include + #include + #include diff --git a/science/misc/gnuplot/pspec.xml b/science/misc/gnuplot/pspec.xml new file mode 100644 index 0000000000..221909ae26 --- /dev/null +++ b/science/misc/gnuplot/pspec.xml @@ -0,0 +1,69 @@ + + + + + gnuplot + http://www.gnuplot.info/ + + Blue Devil + bluedevil@sctzine.com + + science.misc + custom + app:console + Plotting package which outputs to X11, PostScript, PNG, GIF, and others. + Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms. GNUPlot provides plotting package which outputs to X11, PostScript, PNG, GIF, and others. + https://downloads.sourceforge.net/sourceforge/gnuplot/gnuplot-5.2.8.tar.gz + + emacs + gd-devel + lua-devel + cairo-devel + pango-devel + wxGTK-devel + qt5-linguist + libcerf-devel + qt5-svg-devel + qt5-base-devel + readline-devel + libjpeg-turbo-devel + + + lua53_compat.patch + + + + + gnuplot + A high-level language, primarily intended for numerical computations. + + gd + lua + emacs + cairo + pango + wxGTK + libcerf + qt5-svg + qt5-base + readline + wxGTK-common + libjpeg-turbo + + + /usr/share/ + /usr/bin + /usr/share/doc/gnuplot + + + + + + 2020-05-22 + 5.2.8 + First pisi release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/science/misc/gnuplot/translations.xml b/science/misc/gnuplot/translations.xml new file mode 100644 index 0000000000..d9992980a5 --- /dev/null +++ b/science/misc/gnuplot/translations.xml @@ -0,0 +1,8 @@ + + + + gnuplot + X11, PostScript, PNG, GIF, ve diğerlerine çıktı verebilen çizim yapma paketi. + gnuplot, X11, PostScript, PNG, GIF, ve diğerlerine çıktı verebilen çizim yapma paketi sunar. + + \ No newline at end of file