Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/parallel-netcdf/
Date: Thu, 30 Sep 2021 19:39:47
Message-Id: 1632925527.0b5d0f6dc01ee66b5ec4f4e22a971c055948558d.arthurzam@gentoo
1 commit: 0b5d0f6dc01ee66b5ec4f4e22a971c055948558d
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 29 14:25:27 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 29 14:25:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0b5d0f6d
7
8 sys-cluster/parallel-netcdf: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sys-cluster/parallel-netcdf/Manifest | 1 +
13 sys-cluster/parallel-netcdf/metadata.xml | 25 +++++++
14 .../parallel-netcdf/parallel-netcdf-1.12.2.ebuild | 80 ++++++++++++++++++++++
15 3 files changed, 106 insertions(+)
16
17 diff --git a/sys-cluster/parallel-netcdf/Manifest b/sys-cluster/parallel-netcdf/Manifest
18 new file mode 100644
19 index 000000000..eba2d268b
20 --- /dev/null
21 +++ b/sys-cluster/parallel-netcdf/Manifest
22 @@ -0,0 +1 @@
23 +DIST pnetcdf-1.12.2.tar.gz 2355892 BLAKE2B ea94d63caa8d42b727084be0580c43e0ac03325acafb046a057092b41880a875a1ca04d1b0183062aed3d7182103217c02165c0f65e722b50129931fb7c93e82 SHA512 b482eadb4955a312fab885aa89c08817c010ed6ff69dff3cfa9c530f1b645b788973029909a8f6fd428170103cfa0784e1bfe085a48d9bcd2446dbd0d40ed67d
24
25 diff --git a/sys-cluster/parallel-netcdf/metadata.xml b/sys-cluster/parallel-netcdf/metadata.xml
26 new file mode 100644
27 index 000000000..de4248a59
28 --- /dev/null
29 +++ b/sys-cluster/parallel-netcdf/metadata.xml
30 @@ -0,0 +1,25 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <description>comaintainers welcome</description>
36 + <email>lssndrbarbieri@×××××.com</email>
37 + <name>Alessandro Barbieri</name>
38 + </maintainer>
39 + <upstream>
40 + <bugs-to>https://github.com/Parallel-NetCDF/PnetCDF/issues</bugs-to>
41 + <remote-id type="github">Parallel-NetCDF/PnetCDF</remote-id>
42 + </upstream>
43 + <use>
44 + <flag name="burst-buffering">Enable burst buffer driver support</flag>
45 + <flag name="cxx">Turn on support for the C++ interface</flag>
46 + <flag name="erange-fill">Disable use of fill value when out-of-range type conversion causes NC_ERANGE error</flag>
47 + <flag name="fortran">Turn on support for the Fortran interface</flag>
48 + <flag name="file-sync"> Disable MPI file sync if you know your file system can provide data consistency</flag>
49 + <flag name="netcdf">Enable NetCDF-4 feature</flag>
50 + <flag name="null-byte-header-padding">Enable check for null-byte header padding when reading files in classic formats</flag>
51 + <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>
52 + <flag name="subfiling">Enable subfiling support</flag>
53 + <flag name="threadsafe">Enable thread-safe capability</flag>
54 + </use>
55 +</pkgmetadata>
56
57 diff --git a/sys-cluster/parallel-netcdf/parallel-netcdf-1.12.2.ebuild b/sys-cluster/parallel-netcdf/parallel-netcdf-1.12.2.ebuild
58 new file mode 100644
59 index 000000000..456e0f5f8
60 --- /dev/null
61 +++ b/sys-cluster/parallel-netcdf/parallel-netcdf-1.12.2.ebuild
62 @@ -0,0 +1,80 @@
63 +# Copyright 1999-2010 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=8
67 +
68 +FORTRAN_NEEDED=fortran
69 +MYP="pnetcdf-${PV}"
70 +
71 +inherit fortran-2
72 +
73 +DESCRIPTION="Parallel extension to netCDF"
74 +HOMEPAGE="
75 + https://parallel-netcdf.github.io
76 + http://cucis.ece.northwestern.edu/projects/PnetCDF
77 + http://www-unix.mcs.anl.gov/parallel-netcdf
78 +"
79 +SRC_URI="http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/${MYP}.tar.gz"
80 +S="${WORKDIR}/${MYP}"
81 +
82 +LICENSE="UCAR-Unidata"
83 +SLOT="0"
84 +KEYWORDS="~amd64"
85 +IUSE="burst-buffering +cxx debug doc +erange-fill +file-sync +fortran netcdf
86 +null-byte-header-padding +relax-coord-bound subfiling threadsafe"
87 +
88 +RDEPEND="
89 + netcdf? ( sci-libs/netcdf[mpi] )
90 + virtual/mpi
91 +"
92 +# adios? ( sys-cluster/adios )
93 +DEPEND="${RDEPEND}"
94 +BDEPEND="doc? ( app-doc/doxygen )"
95 +
96 +pkg_setup() {
97 + fortran-2_pkg_setup
98 +}
99 +
100 +src_configure() {
101 + export MPIF77=/usr/bin/mpif77
102 + export MPIF90=/usr/bin/mpif90
103 +
104 + local myconf=(
105 + --enable-shared
106 + --with-mpi="${EPREFIX}/usr"
107 +
108 + $(use_enable burst-buffering)
109 + $(use_enable cxx)
110 + $(use_enable debug)
111 + $(use_enable doc doxygen)
112 + $(use_enable erange-fill)
113 + $(use_enable file-sync)
114 + $(use_enable fortran)
115 + $(use_enable netcdf netcdf4)
116 + $(use_enable null-byte-header-padding)
117 + $(use_enable relax-coord-bound)
118 + $(use_enable subfiling)
119 + $(use_enable threadsafe thread-safe)
120 + )
121 +# $(use_enable adios)
122 +# if use adios; then
123 +# myconf+=( "--with-adios=${EPREFIX}/usr" )
124 +# else
125 +# myconf+=( "--without-adios" )
126 +# fi
127 + if use netcdf; then
128 + myconf+=( "--with-netcdf4=${EPREFIX}/usr" )
129 + else
130 + myconf+=( "--without-netcdf4" )
131 + fi
132 +
133 + econf "${myconf[@]}"
134 +}
135 +
136 +src_compile() {
137 + emake
138 +}
139 +
140 +src_install() {
141 + emake DESTDIR="${D}" install
142 +}