gnuplot: update to 5.0.3

This commit is contained in:
Alessio Sergi 2016-02-22 20:25:03 +01:00
parent a07f96e1ed
commit 374a2a0e9e
2 changed files with 18 additions and 17 deletions

View file

@ -0,0 +1,13 @@
diff --git src/qtterminal/qt_conversion.cpp src/qtterminal/qt_conversion.cpp
index 38fd177..95ee48c 100644
--- src/qtterminal/qt_conversion.cpp
+++ src/qtterminal/qt_conversion.cpp
@@ -126,7 +126,7 @@ QImage qt_imageToQImage(int M, int N, coordval* image, t_imagecolor color_mode)
QRgb* line = (QRgb*)(qimage.scanLine(n));
for (int m = 0; m < M; m++)
{
- if (isnan(*image))
+ if (std::isnan(*image))
{
image++;
*line++ = 0x00000000;

View file

@ -1,24 +1,21 @@
# Template file for 'gnuplot'
pkgname=gnuplot
version=5.0.2
revision=2
version=5.0.3
revision=1
configure_args="--with-readline=builtin"
hostmakedepends="pkg-config lua52"
makedepends="zlib-devel libX11-devel gd-devel lua52-devel"
depends="gnuplot-common>=${version}_${revision}"
replaces="gnuplot<4.6.6_1"
short_desc="Command-line driven graphing utility"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
homepage="http://www.gnuplot.info/"
license="gnuplot"
distfiles="${SOURCEFORGE_SITE}/gnuplot/gnuplot/${version}/gnuplot-${version}.tar.gz"
checksum=5a2b31d375f56d29272193370705164cde49545a332841183bcca44f02b1d890
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
checksum=5f6ee35f3f22014058e999911934bfa9db28e02a2722a7001c192cd182b8c715
subpackages="gnuplot-common"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" cairo-devel pango-devel wxWidgets-devel qt-devel"
makedepends+=" cairo-devel pango-devel wxWidgets-devel qt5-tools-devel qt5-svg-devel"
subpackages+=" gnuplot-wx gnuplot-qt"
fi
@ -44,13 +41,10 @@ pre_configure() {
cp -a x11 qt
fi
}
do_configure() {
export LUA_CFLAGS="-L${XBPS_CROSS_BASE}/usr/include/lua5.2"
export LUA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -llua5.2"
if [ -z "$CROSS_BUILD" ]; then
cd ${wrksrc}/x11
./configure ${configure_args} --without-qt --disable-wxwidgets --without-cairo --disable-wxt
./configure ${configure_args} --disable-wxwidgets --without-cairo --without-qt
cd ${wrksrc}/wx
./configure ${configure_args} --without-qt ac_cv_path_WX_CONFIG=/usr/bin/wx-config-3.0 LIBS="-lX11"
cd ${wrksrc}/qt
@ -60,7 +54,6 @@ do_configure() {
./configure ${configure_args}
fi
}
do_build() {
if [ -z "$CROSS_BUILD" ]; then
make -C wx ${makejobs}
@ -68,7 +61,6 @@ do_build() {
fi
make -C x11 ${makejobs}
}
do_install() {
# install x11 and rename binary
make -C x11 DESTDIR=${DESTDIR} install
@ -91,7 +83,6 @@ do_install() {
}
gnuplot-common_package() {
replaces="gnuplot<4.6.6_1"
short_desc+=" - common files"
pkg_install() {
vmove usr/share/gnuplot/${version%.*}/PostScript
@ -105,9 +96,7 @@ gnuplot-common_package() {
vmove usr/share/man/man1/gnuplot.1
}
}
gnuplot-wx_package() {
replaces="gnuplot<4.6.6_1"
depends="gnuplot-common>=${version}_${revision}"
short_desc+=" - wxWidgets frontend"
alternatives="gnuplot:gnuplot:/usr/bin/gnuplot-wx"
@ -115,7 +104,6 @@ gnuplot-wx_package() {
vmove usr/bin/gnuplot-wx
}
}
gnuplot-qt_package() {
depends="gnuplot-common>=${version}_${revision}"
short_desc+=" - Qt frontend"