Package Details: gnuplot4 4.6.7-6

Git Clone URL: https://aur.archlinux.org/gnuplot4.git (read-only, click to copy)
Package Base: gnuplot4
Description: Plotting package which outputs to X11, PostScript, PNG, GIF, and others
Upstream URL: http://www.gnuplot.info
Licenses: custom
Conflicts: gnuplot
Provides: gnuplot
Submitter: frazar0
Maintainer: frazar0
Last Packager: frazar0
Votes: 1
Popularity: 0.000243
First Submitted: 2022-11-08 09:47 (UTC)
Last Updated: 2023-08-28 18:58 (UTC)

Required by (115)

Sources (3)

Latest Comments

frazar0 commented on 2023-08-28 18:58 (UTC)

Thank you for you suggestions. The package has been updated accordingly.

MarsSeed commented on 2023-08-28 17:15 (UTC)

I can also confirm that the WxWidgets-Gtk2 based output also works.

Launching either qalculate-qt or qalculate-gtk with the prepended envvar setting GNUTERM=wxt makes Qalculate render the plot in a WxGtk2 window.

MarsSeed commented on 2023-08-28 16:57 (UTC)

I can verify that when building with the modifications I've submitted below, the installed gnuplot4 works with repo's qalculate-qt, despite the fact that the latter itself is using Qt6.

(Internally, that Qalculate GUI app launches gnuplot4's Qt4-based /usr/bin/gnuplot_qt just fine, and displays the plotted function in a window.)

MarsSeed commented on 2023-08-28 16:50 (UTC)

Hi,

This package conflicts with repo's gnuplot.

Also currently it does not use Qt4, because the expected configure option for enabling support for it is --enable-qt, not the currently defined --enable-qt4.

Some additional issues, based on namcap analysis, that can be remedied:

  • license directory should be usr/share/licenses/gnuplot4, not usr/share/licenses/gnuplot
  • openssl-1.1 is not a dependency
  • libjpeg is not a dependency (gd's libgd will link to the correct jpeg library, but gnuplot itself is not linked to any such lib)
  • current best practice as per namcap is to add all direct link-level dependencies; missing ones are: gcc-libs glibc glib2 gtk2 libx11 pango

Here is a PKGBUILD diff to resolve all the mentioned issues:

diff --git c/PKGBUILD i/PKGBUILD
index 0021156..863a9e2 100644
--- c/PKGBUILD
+++ i/PKGBUILD
@@ -9,13 +9,15 @@ _version_patch=7

 pkgname=$_basename$_version_major
 pkgver=$_version_major.$_version_minor.$_version_patch
-pkgrel=5
+pkgrel=6
 pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
 arch=('i686' 'x86_64')
 url="http://www.gnuplot.info"
 license=('custom')
-depends=('readline' 'gd' 'wxgtk2.8' 'cairo' 'libjpeg' 'openssl-1.1' 'qt4' 'lua')
-provides=('gnuplot')
+depends=('readline' 'gd' 'wxgtk2.8' 'cairo' 'qt4' 'lua'
+         'gcc-libs' 'glibc' 'glib2' 'gtk2' 'libx11' 'pango')
+provides=("$_basename=$pkgver")
+conflicts=("$_basename")
 makedepends=('texlive-latexextra')
 source=("http://downloads.sourceforge.net/sourceforge/$_basename/$_basename-$pkgver.tar.gz"
         'use-wx-config-2.8.patch'
@@ -56,7 +58,7 @@ build() {
               --with-bitmap-terminals \
               --without-lisp-files \
               --enable-stats \
-              --enable-qt4
+              --enable-qt
   make pkglibexecdir=/usr/bin
 }

@@ -65,7 +67,7 @@ package() {
   make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install install-info

   install -Dm644 lisp/dotemacs "$pkgdir/usr/share/emacs/site-lisp/dotemacs"
-  install -Dm644 Copyright "$pkgdir/usr/share/licenses/$_basename/Copyright"
+  install -Dm644 Copyright "$pkgdir/usr/share/licenses/$pkgname/Copyright"

   rm -f "$pkgdir/usr/share/texmf-dist/ls-R"
 }