diff options
Diffstat (limited to 'sci-libs/netcdf-cxx')
-rw-r--r-- | sci-libs/netcdf-cxx/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch | 28 | ||||
-rw-r--r-- | sci-libs/netcdf-cxx/metadata.xml | 14 | ||||
-rw-r--r-- | sci-libs/netcdf-cxx/netcdf-cxx-4.2-r300.ebuild | 27 | ||||
-rw-r--r-- | sci-libs/netcdf-cxx/netcdf-cxx-4.2.1.ebuild | 37 |
5 files changed, 108 insertions, 0 deletions
diff --git a/sci-libs/netcdf-cxx/Manifest b/sci-libs/netcdf-cxx/Manifest new file mode 100644 index 000000000000..7c05fa8e487d --- /dev/null +++ b/sci-libs/netcdf-cxx/Manifest @@ -0,0 +1,2 @@ +DIST netcdf-cxx-4.2.1.tar.gz 456547 SHA256 bad56abfc99f321829070c04aebb377fc8942a4d09e5a3c88ad2b6547ed50ebc SHA512 d51ab1cbda74db5f7b074799d2407d0214d1c920af780ae3bb7a47b3708e45f721be7eec61902e035968a9df5019a7b2b5a10f236f6bab4cb47a26e4e7867adb WHIRLPOOL b7787c2529b7a1be2523931fcafdff4f78562fbd11c4ad7e9bc318c1b856235413d8a45c2f58b07ca20a7a22e1e020251b11ac688cddae8cd04766005c4f08c8 +DIST netcdf-cxx-4.2.tar.gz 703482 SHA256 95ed6ab49a0ee001255eac4e44aacb5ca4ea96ba850c08337a3e4c9a0872ccd1 SHA512 347ddbc518ac2186868d69417342e5146e285fc3a88f7c55edc33063f5c9a6647af7e512a03b9b6a8f67a448b85a1edcdde5df707b893f6a1527821cfd78e643 WHIRLPOOL 783120762a26663377684cc7898749073b4431d6aa25fd2ff97b6ac12224dbc5303392fcdfafb2a4d841cd09dd90b723af4ebce1f32f8513bce19990bb9420bc diff --git a/sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch b/sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch new file mode 100644 index 000000000000..7d83b6d0dfc1 --- /dev/null +++ b/sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch @@ -0,0 +1,28 @@ +--- ncxx4-config.in.orig 2013-01-10 10:47:00.595224631 -0800 ++++ ncxx4-config.in 2013-01-10 10:49:22.856926765 -0800 +@@ -5,7 +5,7 @@ + + prefix=@prefix@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + includedir=${prefix}/include + + cc="@CC@" +@@ -13,7 +13,7 @@ + fc="@FC@" + cflags=" -I${includedir} @CPPFLAGS@" + fflags="@FFLAGS@ @MOD_FLAG@${includedir}" +-libs="-L${libdir} @NC_LIBS@" ++libs="-L${libdir} @NC_LIBS@ -lnetcdf" + flibs="-L${libdir} @NC_FLIBS@" + has_dap="@HAS_DAP@" + has_nc2="@HAS_NC2@" +--- netcdf-cxx4.pc.in.orig 2013-01-10 10:46:50.995177250 -0800 ++++ netcdf-cxx4.pc.in 2013-01-10 10:49:45.030036161 -0800 +@@ -10,4 +10,4 @@ + Version: @PACKAGE_VERSION@ + Libs: -L${libdir} @NC_LIBS@ + Cflags: -I${includedir} +- ++Requires: netcdf diff --git a/sci-libs/netcdf-cxx/metadata.xml b/sci-libs/netcdf-cxx/metadata.xml new file mode 100644 index 000000000000..5703447ef64a --- /dev/null +++ b/sci-libs/netcdf-cxx/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> + NetCDF (network Common Data Form) is an interface for scientific + data access and a freely-distributed software library that provides an + implementation of the interface. The netCDF library also defines a + machine-independent format for representing scientific data. + Together, the interface, library, and format support the creation, + access, and sharing of scientific data. + This is the C++ library which links to the C library. +</longdescription> +</pkgmetadata> diff --git a/sci-libs/netcdf-cxx/netcdf-cxx-4.2-r300.ebuild b/sci-libs/netcdf-cxx/netcdf-cxx-4.2-r300.ebuild new file mode 100644 index 000000000000..d5179c87f037 --- /dev/null +++ b/sci-libs/netcdf-cxx/netcdf-cxx-4.2-r300.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils versionator + +DESCRIPTION="C++ library for netCDF" +HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/" +SRC_URI="https://www.unidata.ucar.edu/downloads/netcdf/ftp/${P}.tar.gz" + +LICENSE="UCAR-Unidata" +SLOT="3" +KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux" +IUSE="examples static-libs" + +RDEPEND=">=sci-libs/netcdf-4.2" +DEPEND="${RDEPEND}" + +src_install() { + autotools-utils_src_install + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} diff --git a/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1.ebuild b/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1.ebuild new file mode 100644 index 000000000000..8d2615fc8323 --- /dev/null +++ b/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools-utils + +MYP=${PN}4-${PV} + +DESCRIPTION="C++ library for netCDF" +HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf/" +SRC_URI="https://github.com/Unidata/netcdf-cxx4/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="UCAR-Unidata" +SLOT="0/1" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="examples static-libs" + +RDEPEND=">=sci-libs/netcdf-4.2:=" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-4.2-config.patch ) + +src_install() { + autotools-utils_src_install + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} + +src_test() { + autotools-utils_src_test -j1 +} |