diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-misc/nco |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-misc/nco')
-rw-r--r-- | sci-misc/nco/Manifest | 7 | ||||
-rw-r--r-- | sci-misc/nco/metadata.xml | 26 | ||||
-rw-r--r-- | sci-misc/nco/nco-3.9.9.ebuild | 70 | ||||
-rw-r--r-- | sci-misc/nco/nco-4.5.1-r2.ebuild | 49 |
4 files changed, 152 insertions, 0 deletions
diff --git a/sci-misc/nco/Manifest b/sci-misc/nco/Manifest new file mode 100644 index 000000000000..293c82112357 --- /dev/null +++ b/sci-misc/nco/Manifest @@ -0,0 +1,7 @@ +DIST nco-3.9.9.tar.gz 4109201 SHA256 cdfd7cf47aef49b32e4e581bc7d2d6cdd05312ed88a2a0cfaf83c520e665b142 SHA512 883d77413aed29982df3be531c458bbbc8c46201783593a71745b993287356aec4c664a080f05da1f2d550d32d2553d55eff7372807d20b4e6dba7bdff282400 WHIRLPOOL 7bf120f96522808dcb3e9a08d6da419a82519f8d4cefcefc98752c6368eaddb832cd21e84e67a6e0caf98adfb5d652bf2b8566cb54d5f403da294550da459200 +DIST nco-4.5.1.tar.gz 4406757 SHA256 c9a34b1f649635093e219604479b0aa4fd2d400aaee4328577443642ed2920ae SHA512 69c19cc9502272adada329dae669fc1c263a360789963253315e81ce1534647b9172b39a0fd3c0f0f453bf903c8a8a4b0e3f0eb778390e43b64eede3a0478485 WHIRLPOOL 868fc67f0bb5c43f8b00a1479de428d0b2e9bdfed75ed4983baf05dee266d6750e43ead70a1bef16d693f2f47bc343c16a1fdd0cf77cabb36595fd8043a7844d +EBUILD nco-3.9.9.ebuild 1599 SHA256 105b6e2bcde3ba70255f675dbfe10fb3a9216da3a4e19e7c56ccfcb454a13cdc SHA512 9601e68f6432ab1f8e1df0aaf4718213acdf7c14455be67588fe451fde7c8d7fd9ca8a770e12704e4bcdeaa7a3f1a4460e2173b7a2cd126b589a801e4e471a52 WHIRLPOOL 949ef9b9e87ff4478d09fce559e107daddc5ff63f1f1612a7b7b792b20667e8e6ab15e57da828ed3ca02a09cbe4b330ac4aa623194955d3fa43ee9b998b850ab +EBUILD nco-4.5.1-r2.ebuild 1196 SHA256 8e3edc4dd40e0ff6d233dd05e8a8c9c9c71e2ed938d3c61e6dcb63b1399522e3 SHA512 1bed70fbed0f83edb7e54ac3bfaa8a670b3cf8cc3bc8060335b775b9b8db90fe6b91ffb40a758367c8a238a6b2d48ea684bfd6e11c26d459ee453782fe8fd623 WHIRLPOOL 85879f50e45e81f37507d6f1a2b2b01f889d1773ec337db0416868e7b5475466a028bd2e0895c58c18bb12f8ffeb6362ac8e55c95ebd5b2934778ad17525aa3c +MISC ChangeLog 3798 SHA256 0fad3abb0b6b11654ae3cd577d125bc44c842c287a3d15e871aa3dce8151a713 SHA512 d212c181938b122d8adef03980521c2412355e2097b09c3e6d13a7b0bdb4278e7a4365fc7dc0db2c1824fc2c064ea21a30a6e9dd17ad5eec57107fafe36dbab7 WHIRLPOOL 444934c63df47368344d28d8127df3cb511fb80f73fcec7f8b25ac91f606d2aca7685b36f2a3cf06502d4418d14745b2978fe3844a594ee52346ca4ed50e7b63 +MISC ChangeLog-2015 4463 SHA256 cb5ea467ea518066b77af83fbc9fae702c9369a03030595703c7ac465edea1cb SHA512 cceb1e039e2a88069667cff2006e769f94e353aad7ad95a350855421b3c90e5f1a4c1b655956ae516a8ead257c21d0dacce8ee89c146e5a713ac5504f29f6c6c WHIRLPOOL f016b01fe9f95d02c5a005221e27799c6bb4fa633185b500b3005b78af62a98ced67462a191ef8a8c8c7fa2cd7d80a2999e13df2420e98d93b7195a2392ac495 +MISC metadata.xml 1144 SHA256 468135cf85c5e032d2614a0fabfd4fefe76dd2ffa3b11027f164c7963d2ff966 SHA512 8fe5125db677eb40be700176d5aba6f7f59f345a79c2b07aad5892ec18abe43c176be8bc2b2a02c4daa9b10c4ba908c6028d33faae521653c32a71964daaa880 WHIRLPOOL 155bb319490fca3a5ec0acb1ca1786808e40e894b35384ace7cd16a5e983d9d3581f09abc15f6c1612730be022632bfcf8e2fba7a8e8519e9c42aad611c73547 diff --git a/sci-misc/nco/metadata.xml b/sci-misc/nco/metadata.xml new file mode 100644 index 000000000000..343898276450 --- /dev/null +++ b/sci-misc/nco/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + Command-line operators to analyze netCDF files + NetCDF Operator is a suite of programs known as operators. The + operators are stand-alone, command-line programs executable in a POSIX + shell. Operators take one or more netCDF files as input, perform an + operation (e.g., averaging or hyperslabbing), and produce a netCDF + output file. NCO was originally designed to manipulate and analyze + climate data, though it works on any netCDF format datasets. + </longdescription> + <use> + <flag name="dap">Support for remote data access with the NETCDF DAP client</flag> + <flag name="ncap2">Build next generation netcdf arithmetic processor + (needs <pkg>dev-java/antlr</pkg>)</flag> + <flag name="udunits">Add <pkg>sci-libs/udunits</pkg> files support</flag> + </use> + <upstream> + <remote-id type="sourceforge">nco</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-misc/nco/nco-3.9.9.ebuild b/sci-misc/nco/nco-3.9.9.ebuild new file mode 100644 index 000000000000..17372725724e --- /dev/null +++ b/sci-misc/nco/nco-3.9.9.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +inherit eutils flag-o-matic + +DESCRIPTION="Command line utilities for operating on netCDF files" +SRC_URI="http://dust.ess.uci.edu/nco/src/${P}.tar.gz" +HOMEPAGE="http://nco.sourceforge.net/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="doc mpi ncap2 udunits" + +RDEPEND="sci-libs/netcdf + mpi? ( virtual/mpi ) + udunits? ( >=sci-libs/udunits-2 )" + +DEPEND="${RDEPEND} + ncap2? ( !mpi? ( dev-java/antlr:0 ) ) + doc? ( virtual/latex-base )" + +pkg_setup() { + if use mpi && use ncap2; then + elog + elog "mpi and ncap2 are still incompatible flags" + elog "nco configure will automatically disables ncap2" + elog + fi +} + +src_configure() { + local myconf + if has_version ">=sci-libs/netcdf-4" && built_with_use sci-libs/netcdf hdf5; then + append-cppflags -DHAVE_NETCDF4_H + myconf="--enable-netcdf4" + else + myconf="--disable-netcdf4" + fi + econf \ + ${myconf} \ + --disable-udunits \ + $(use_enable ncap2) \ + $(use_enable udunits udunits2) \ + $(use_enable mpi) +} + +src_compile() { + emake || die "emake failed" + cd doc + emake clean info + if use doc; then + VARTEXFONTS="${T}/fonts" emake html pdf || die "emake doc failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + cd doc + dodoc ANNOUNCE ChangeLog MANIFEST NEWS README TAG TODO VERSION *.txt \ + || die "dodoc failed" + doinfo *.info* || die "doinfo failed" + if use doc; then + dohtml nco.html/* || die "dohtml failed" + insinto /usr/share/doc/${PF} + doins nco.pdf || die "pdf install failed" + fi +} diff --git a/sci-misc/nco/nco-4.5.1-r2.ebuild b/sci-misc/nco/nco-4.5.1-r2.ebuild new file mode 100644 index 000000000000..850672c5b053 --- /dev/null +++ b/sci-misc/nco/nco-4.5.1-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +AUTOTOOLS_IN_SOURCE_BUILD=1 +inherit autotools-utils eutils flag-o-matic + +DESCRIPTION="Command line utilities for operating on netCDF files" +HOMEPAGE="http://nco.sourceforge.net/" +SRC_URI="http://nco.sf.net/src/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0/${PV}" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="dap doc gsl ncap2 openmp static-libs test udunits" + +RDEPEND=" + >=sci-libs/netcdf-4:=[dap=,tools] + gsl? ( sci-libs/gsl:= ) + ncap2? ( dev-cpp/antlr-cpp:2= ) + udunits? ( >=sci-libs/udunits-2 )" + +DEPEND="${RDEPEND} + test? ( >=sci-libs/netcdf-4[tools] )" + +src_configure() { + local myeconfargs=( + --disable-udunits + $(use_enable dap dap-netcdf) + $(use_enable gsl) + $(use_enable ncap2) + $(use_enable openmp) + $(use_enable udunits udunits2) + ) + if has_version '>=sci-libs/netcdf-4[hdf5]'; then + myeconfargs+=( --enable-netcdf4 ) + append-cppflags -DHAVE_NETCDF4_H + else + myeconfargs+=( --disable-netcdf4 ) + fi + autotools-utils_src_configure +} + +src_install() { + use doc && DOCS=( doc/nco.pdf ) && HTML_DOCS=( doc/nco.html ) + autotools-utils_src_install + doinfo doc/*.info* +} |