Date: Sat, 15 Jun 2013 14:36:13 GMT From: Johannes Meixner <xmj@chaot.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/179572: Add option to use science/hdf5-18 instead of science/hdf5 Message-ID: <201306151436.r5FEaD2h076071@oldred.freebsd.org> Resent-Message-ID: <201306151440.r5FEe0R2092652@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179572 >Category: ports >Synopsis: Add option to use science/hdf5-18 instead of science/hdf5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 15 14:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Johannes Meixner >Release: 10.0-CURRENT >Organization: Goldener Grund OÜ >Environment: FreeBSD mx12.chaot.net 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251531M: Fri Jun 14 13:16:06 EEST 2013 xmj@mx12.chaot.net:/usr/obj/usr/src/sys/xmj amd64 >Description: This patch adds an option to allow users to select hdf5-1.8 instead of hdf5-1.6,\as h5py autodetects the library's API version and works with either version. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN /usr/ports/science/py-h5py/Makefile ./Makefile --- /usr/ports/science/py-h5py/Makefile 2013-06-15 17:04:24.798080308 +0300 +++ ./Makefile 2013-06-15 16:50:09.308100218 +0300 @@ -1,9 +1,5 @@ -# Ports collection makefile for: h5py -# Date created: Jun 22, 2009 -# Whom: TAOKA Fumiyoshi -# -# $FreeBSD: ports/science/py-h5py/Makefile,v 1.4 2012/11/17 06:00:59 svnexp Exp $ -# +# Created by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> +# $FreeBSD$ PORTNAME= h5py PORTVERSION= 1.2.1 @@ -17,7 +13,16 @@ BUILD_DEPENDS= ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} -LIB_DEPENDS= hdf5.0:${PORTSDIR}/science/hdf5 + +OPTIONS_DEFINE= NEW_HDF5 +NEW_HDF5_DESC= Use port science/hdf5-18 instead of science/hdf5 + +.include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MNEW_HDF5} +LIB_DEPENDS=hdf5:${PORTSDIR}/science/hdf5-18 +.else +LIB_DEPENDS= hdf5:${PORTSDIR}/science/hdf5 +.endif USE_PYTHON= 2.5+ USE_PYDISTUTILS= easy_install diff -ruN /usr/ports/science/py-h5py/pkg-descr ./pkg-descr --- /usr/ports/science/py-h5py/pkg-descr 2009-07-13 17:07:16.000000000 +0300 +++ ./pkg-descr 2013-06-15 17:01:31.368711067 +0300 @@ -1,8 +1,7 @@ -The h5py package provides both a high- and low-level interface to the -HDF5 library from Python. The low-level interface is -intended to be a complete wrapping of the HDF5 1.6 API, while the high- -level component supports Python-style object-oriented access to HDF5 files, -datasets and groups. +The h5py package provides both a high- and low-level interface to the HDF5 +library from Python. The low-level interface is intended to be a complete +wrapping of the HDF5 1.6 and 1.8 APIs, while the high-level component supports +Python-style object-oriented access to HDF5 files, datasets and groups. The goal of this package is not to provide yet another scientific data model. It is an attempt to create as straightforward a binding as possible >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306151436.r5FEaD2h076071>