You are not logged in.
Pages: 1
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
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
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
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
Pages: 1