commit:     2ca5155c00e212a4ea8b6b4636b159baa5d917e3
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 23 19:51:15 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jan 23 20:05:13 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca5155c

sci-libs/netcdf-cxx: Add USE=hdf5 dependency on sci-libs/netcdf

Gentoo-Bug: 566622
* EAPI=6
* Remove usage of 'autotools-utils'

Package-Manager: portage-2.2.27

 .../netcdf-cxx/files/netcdf-cxx-4.2-config.patch   |  8 ++---
 sci-libs/netcdf-cxx/netcdf-cxx-4.2.1-r1.ebuild     | 40 ++++++++++++++++++++++
 2 files changed, 44 insertions(+), 4 deletions(-)

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
index 7d83b6d..50b6b47 100644
--- a/sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch
+++ b/sci-libs/netcdf-cxx/files/netcdf-cxx-4.2-config.patch
@@ -1,5 +1,5 @@
---- ncxx4-config.in.orig       2013-01-10 10:47:00.595224631 -0800
-+++ ncxx4-config.in    2013-01-10 10:49:22.856926765 -0800
+--- netcdf-cxx4-4.2.1/ncxx4-config.in.orig     2013-01-10 10:47:00.595224631 
-0800
++++ netcdf-cxx4-4.2.1/ncxx4-config.in  2013-01-10 10:49:22.856926765 -0800
 @@ -5,7 +5,7 @@
  
  prefix=@prefix@
@@ -18,8 +18,8 @@
  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
+--- netcdf-cxx4-4.2.1/netcdf-cxx4.pc.in.orig   2013-01-10 10:46:50.995177250 
-0800
++++ netcdf-cxx4-4.2.1/netcdf-cxx4.pc.in        2013-01-10 10:49:45.030036161 
-0800
 @@ -10,4 +10,4 @@
  Version: @PACKAGE_VERSION@
  Libs: -L${libdir} @NC_LIBS@

diff --git a/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1-r1.ebuild 
b/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1-r1.ebuild
new file mode 100644
index 0000000..3926444
--- /dev/null
+++ b/sci-libs/netcdf-cxx/netcdf-cxx-4.2.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+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:=[hdf5]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MYP}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4.2-config.patch"
+)
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       if use examples; then
+               insinto /usr/share/doc/${PF}
+               doins -r examples
+       fi
+       prune_libtool_files
+}

Reply via email to