You are not logged in.

#1 2015-02-27 01:36:19

smldis
Member
Registered: 2009-05-15
Posts: 10

Gnuplot 5.0

Hi all,
I would like to ask about the plans on bringing gnuplot 5.0 to extra.
I searched for bug reports or other discussions, but I didn't find anything.
The package is flagged outdated (gnuplot 5.0 release dates back to 31 Dec 2014).

Thanks and sorry for the noise!
Samu3le D1segna

Offline

#2 2015-02-27 09:02:42

a821
Member
Registered: 2012-10-31
Posts: 389

Re: Gnuplot 5.0

The standard answer is: When it's ready! https://bbs.archlinux.org/viewtopic.php?id=130138 (question 6)

I would just go ahead an update the PKGBUILD myself. If you're lucky, maybe you need to bump the version number and update the checksums. Expect breakage otherwise...

Offline

#3 2015-02-27 09:13:15

Foucault
Member
From: Athens, Greece
Registered: 2010-04-06
Posts: 214

Re: Gnuplot 5.0

I think gnuplot 5.0 breaks some compatibility with the 4.x series that's why both of them are available from the gnuplot website. I don't know if this is the reason the update in arch has been kept back. Anyway that's the PKGBUILD I'm using for 5.0

pkgname=gnuplot5
_pkgname=gnuplot
pkgver=5.0.0
pkgrel=3
pkgdesc="Plotting package which outputs to X11, PostScript, PNG, GIF, and others"
arch=('i686' 'x86_64')
url="http://www.gnuplot.info"
license=('custom')
depends=('gd' 'wxgtk' 'lua' 'qt5-svg')
makedepends=('cvs' 'texinfo' 'emacs' 'texlive-core' 'texlive-latexextra' 'qtchooser' 'qt5-tools')
options=('!makeflags')
install=gnuplot.install
conflicts=('gnuplot')
provides=('gnuplot=5.0')
source=("http://sourceforge.net/projects/gnuplot/files/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('23628e321ff2428d3f171e1cd4245486')

build() {
  cd $srcdir/${_pkgname}-${pkgver}

  msg "Fix default source location for fonts"
  # fix default source location; use the GDFONTPATH variable to modify at runtime 
  sed -i 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' src/variable.c

  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

  TERMLIBS='-lX11' QT5LOC='/usr' ./configure --prefix=/usr \
	 --libexecdir=/usr/bin \
	 --with-gihdir=/usr/share/gnuplot \
	 --with-readline=gnu \
	 --enable-wxwidgets --with-qt=qt5

  make pkglibexecdir=/usr/bin
  cd docs
  make info
}

package() {
  cd ${srcdir}/${_pkgname}-${pkgver}

  msg "Installing core files"
  make pkglibexecdir=/usr/bin DESTDIR="$pkgdir" install

  install -Dm644 Copyright \
	  "$pkgdir/usr/share/licenses/$pkgname/Copyright"

  rm -f "$pkgdir/usr/share/texmf-dist/ls-R"
  install -Dm644 docs/gnuplot.info \
	  "$pkgdir/usr/share/info/gnuplot.info"
}

It also needs the pretty much stock gnuplot.install file

info_dir=/usr/share/info
info_files=(gnuplot.info)

post_install() {
cat << EOF
==> To add the gnuplot mode in Emacs, add the content of 
==> /usr/share/emacs/site-lisp/dotemacs.gnuplot to your 
==> ~/.emacs file.
EOF

  if [ -f /usr/bin/mktexlsr ]; then
    echo "Updating TeX tree..."
    mktexlsr
  fi

  for f in ${info_files[@]}; do
    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
  done
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  for f in ${info_files[@]}; do
    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
  done
}

post_remove() {
  if [ -f /usr/bin/mktexlsr ]; then
    echo "Updating TeX tree..."
    mktexlsr
  fi
}

Offline

#4 2015-02-27 15:05:08

smldis
Member
Registered: 2009-05-15
Posts: 10

Re: Gnuplot 5.0

Ah I already built it.  That was not a problem. If help is needed I would like to provide some.
About backwards compatibility it is all on the change log.

Offline

Board footer

Powered by FluxBB