Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2018 04:45:38 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465256 - in head/science/h5utils: . files
Message-ID:  <201803220445.w2M4jcgp021417@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Mar 22 04:45:38 2018
New Revision: 465256
URL: https://svnweb.freebsd.org/changeset/ports/465256

Log:
  science/h5utils: Update to 1.13.1
  
  Port changes:
  * Change to DISTVERSION
  * Add USES=compiler:c++11-lang and CXXFLAGS+=-std=c++11
  * Remove duplicate GNU_CONFIGURE and unnecessary +=
  * Add the option OCTAVE for Octave integration
  
  PR:		226815
  Submitted by:	Klaus Aehlig <aehlig@linta.de> (maintainer) - sumbitted w/out the OCTAVE option

Deleted:
  head/science/h5utils/files/
Modified:
  head/science/h5utils/Makefile
  head/science/h5utils/distinfo
  head/science/h5utils/pkg-plist

Modified: head/science/h5utils/Makefile
==============================================================================
--- head/science/h5utils/Makefile	Thu Mar 22 03:10:21 2018	(r465255)
+++ head/science/h5utils/Makefile	Thu Mar 22 04:45:38 2018	(r465256)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	h5utils
-PORTVERSION=	1.13
+DISTVERSION=	1.13.1
 CATEGORIES=	science
 
 MAINTAINER=	aehlig@linta.de
@@ -12,17 +12,29 @@ LICENSE=	MIT GPLv2
 LICENSE_COMB=	multi
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-GNU_CONFIGURE=	yes
-CFLAGS +=	-L${LOCALBASE}/lib -I${LOCALBASE}/include -lpthread
-
-BUILD_DEPENDS+=	gawk:lang/gawk
-LIB_DEPENDS+=	libhdf5.so:science/hdf5 \
+BUILD_DEPENDS=	gawk:lang/gawk
+LIB_DEPENDS=	libhdf5.so:science/hdf5 \
 		libpng.so:graphics/png \
 		libmatheval.so:devel/libmatheval
 
-USES=		autoreconf
+USES=		autoreconf compiler:c++11-lang
 GNU_CONFIGURE=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	stevengj
 
+CFLAGS+=	-L${LOCALBASE}/lib -I${LOCALBASE}/include -lpthread
+CXXFLAGS+=	-std=c++11
+
+OPTIONS_DEFINE=		OCTAVE
+OPTIONS_SUB=		yes
+
+OCTAVE_DESC=		With Octave support
+OCTAVE_CONFIGURE_WITH=	octave
+OCTAVE_BUILD_DEPENDS=	${LOCALBASE}/include/octave-${OCTAVE_VERSION}/octave/octave.h:math/octave
+OCTAVE_VARS=		PLIST_SUB+="OCTAVE_VERSION=${OCTAVE_VERSION} CONFIGURE_TARGET=${CONFIGURE_TARGET}"
+
+post-install-OCTAVE-on:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/octave/${OCTAVE_VERSION}/site/oct/${CONFIGURE_TARGET}/h5read.oct
+
+.include "../../math/octave/Makefile.version"
 .include <bsd.port.mk>

Modified: head/science/h5utils/distinfo
==============================================================================
--- head/science/h5utils/distinfo	Thu Mar 22 03:10:21 2018	(r465255)
+++ head/science/h5utils/distinfo	Thu Mar 22 04:45:38 2018	(r465256)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1500963131
-SHA256 (stevengj-h5utils-1.13_GH0.tar.gz) = 894849f6d107b224bb1694029ad7d469695b0a6f47b564fe16c40f3d20c0b452
-SIZE (stevengj-h5utils-1.13_GH0.tar.gz) = 113735
+TIMESTAMP = 1521616297
+SHA256 (stevengj-h5utils-1.13.1_GH0.tar.gz) = 698941b787dd367d273acf103ff08eb3abd61332d88a6a65055ba65428fa6124
+SIZE (stevengj-h5utils-1.13.1_GH0.tar.gz) = 113754

Modified: head/science/h5utils/pkg-plist
==============================================================================
--- head/science/h5utils/pkg-plist	Thu Mar 22 03:10:21 2018	(r465255)
+++ head/science/h5utils/pkg-plist	Thu Mar 22 04:45:38 2018	(r465256)
@@ -3,6 +3,7 @@ bin/h5totxt
 bin/h5fromtxt
 bin/h5tovtk
 bin/h5topng
+%%OCTAVE%%lib/octave/%%OCTAVE_VERSION%%/site/oct/%%CONFIGURE_TARGET%%/h5read.oct
 man/man1/h5fromtxt.1.gz
 man/man1/h5math.1.gz
 man/man1/h5topng.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803220445.w2M4jcgp021417>