mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
sys-cluster/parallel-netcdf: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sys-cluster/parallel-netcdf/Manifest
Normal file
1
sys-cluster/parallel-netcdf/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pnetcdf-1.12.2.tar.gz 2355892 BLAKE2B ea94d63caa8d42b727084be0580c43e0ac03325acafb046a057092b41880a875a1ca04d1b0183062aed3d7182103217c02165c0f65e722b50129931fb7c93e82 SHA512 b482eadb4955a312fab885aa89c08817c010ed6ff69dff3cfa9c530f1b645b788973029909a8f6fd428170103cfa0784e1bfe085a48d9bcd2446dbd0d40ed67d
|
||||
25
sys-cluster/parallel-netcdf/metadata.xml
Normal file
25
sys-cluster/parallel-netcdf/metadata.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>comaintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/Parallel-NetCDF/PnetCDF/issues</bugs-to>
|
||||
<remote-id type="github">Parallel-NetCDF/PnetCDF</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="burst-buffering">Enable burst buffer driver support</flag>
|
||||
<flag name="cxx">Turn on support for the C++ interface</flag>
|
||||
<flag name="erange-fill">Disable use of fill value when out-of-range type conversion causes NC_ERANGE error</flag>
|
||||
<flag name="fortran">Turn on support for the Fortran interface</flag>
|
||||
<flag name="file-sync"> Disable MPI file sync if you know your file system can provide data consistency</flag>
|
||||
<flag name="netcdf">Enable NetCDF-4 feature</flag>
|
||||
<flag name="null-byte-header-padding">Enable check for null-byte header padding when reading files in classic formats</flag>
|
||||
<flag name="relax-coord-bound">Use stricter rule for error NC_EINVALCOORDS to disallow coordinate start argument equal to dimension size when argument count is zero</flag>
|
||||
<flag name="subfiling">Enable subfiling support</flag>
|
||||
<flag name="threadsafe">Enable thread-safe capability</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
80
sys-cluster/parallel-netcdf/parallel-netcdf-1.12.2.ebuild
Normal file
80
sys-cluster/parallel-netcdf/parallel-netcdf-1.12.2.ebuild
Normal file
@@ -0,0 +1,80 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
FORTRAN_NEEDED=fortran
|
||||
MYP="pnetcdf-${PV}"
|
||||
|
||||
inherit fortran-2
|
||||
|
||||
DESCRIPTION="Parallel extension to netCDF"
|
||||
HOMEPAGE="
|
||||
https://parallel-netcdf.github.io
|
||||
http://cucis.ece.northwestern.edu/projects/PnetCDF
|
||||
http://www-unix.mcs.anl.gov/parallel-netcdf
|
||||
"
|
||||
SRC_URI="http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/${MYP}.tar.gz"
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
LICENSE="UCAR-Unidata"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="burst-buffering +cxx debug doc +erange-fill +file-sync +fortran netcdf
|
||||
null-byte-header-padding +relax-coord-bound subfiling threadsafe"
|
||||
|
||||
RDEPEND="
|
||||
netcdf? ( sci-libs/netcdf[mpi] )
|
||||
virtual/mpi
|
||||
"
|
||||
# adios? ( sys-cluster/adios )
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="doc? ( app-doc/doxygen )"
|
||||
|
||||
pkg_setup() {
|
||||
fortran-2_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export MPIF77=/usr/bin/mpif77
|
||||
export MPIF90=/usr/bin/mpif90
|
||||
|
||||
local myconf=(
|
||||
--enable-shared
|
||||
--with-mpi="${EPREFIX}/usr"
|
||||
|
||||
$(use_enable burst-buffering)
|
||||
$(use_enable cxx)
|
||||
$(use_enable debug)
|
||||
$(use_enable doc doxygen)
|
||||
$(use_enable erange-fill)
|
||||
$(use_enable file-sync)
|
||||
$(use_enable fortran)
|
||||
$(use_enable netcdf netcdf4)
|
||||
$(use_enable null-byte-header-padding)
|
||||
$(use_enable relax-coord-bound)
|
||||
$(use_enable subfiling)
|
||||
$(use_enable threadsafe thread-safe)
|
||||
)
|
||||
# $(use_enable adios)
|
||||
# if use adios; then
|
||||
# myconf+=( "--with-adios=${EPREFIX}/usr" )
|
||||
# else
|
||||
# myconf+=( "--without-adios" )
|
||||
# fi
|
||||
if use netcdf; then
|
||||
myconf+=( "--with-netcdf4=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-netcdf4" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
Reference in New Issue
Block a user