gnuplot: update to 6.0.0.

This commit is contained in:
Leah Neukirchen 2023-12-31 16:21:19 +01:00
parent 9d28172c96
commit 76cff971c6

View file

@ -1,21 +1,26 @@
# Template file for 'gnuplot'
pkgname=gnuplot
version=5.4.10
version=6.0.0
revision=1
configure_args="--with-readline=builtin"
hostmakedepends="pkg-config lua52"
makedepends="zlib-devel libX11-devel gd-devel lua52-devel"
configure_args="--with-readline=builtin
--with-gpic --with-metapost --with-metafont"
hostmakedepends="pkg-config lua52 zlib-devel libX11-devel
cairo-devel pango-devel"
makedepends="zlib-devel libX11-devel gd-devel lua52-devel
cairo-devel pango-devel"
depends="gnuplot-common>=${version}_${revision}"
short_desc="Command-line driven graphing utility"
maintainer="Leah Neukirchen <leah@vuxu.org>"
homepage="http://www.gnuplot.info/"
license="gnuplot"
distfiles="${SOURCEFORGE_SITE}/gnuplot/gnuplot/${version}/gnuplot-${version}.tar.gz"
checksum=975d8c1cc2c41c7cedc4e323aff035d977feb9a97f0296dd2a8a66d197a5b27c
checksum=635a28f0993f6ab0d1179e072ad39b8139d07f51237f841d93c6c2ff4b1758ec
subpackages="gnuplot-common"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" cairo-devel pango-devel wxWidgets-gtk3-devel qt5-tools-devel qt5-svg-devel"
hostmakedepends+=" qt6-base qt6-base-devel pkg-config"
makedepends+=" wxWidgets-gtk3-devel
qt6-base-devel qt6-tools-devel qt6-svg-devel qt6-qt5compat-devel"
subpackages+=" gnuplot-wx gnuplot-qt"
fi
@ -24,13 +29,6 @@ alternatives="gnuplot:gnuplot:/usr/bin/gnuplot-x11"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
pre_configure() {
# fix fonts location
sed -i \
-e 's|/usr/X11R6/lib/X11/fonts/Type1|/usr/share/fonts/Type1|' \
-e 's|/usr/X11R6/lib/X11/fonts/truetype|/usr/share/fonts/TTF|' \
-e 's|$(X11ROOT)/X11R6/lib/X11/fonts/Type1|$(X11ROOT)/usr/share/fonts/Type1|' \
src/variable.c
if [ "$CROSS_BUILD" ]; then
sed -i 's|^\(SUBDIRS =.*\)demo |\1|' Makefile.in
sed -i 's|^\(SUBDIRS =.*\)docs |\1|' Makefile.in