Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libnc-dap: metadata.xml ChangeLog libnc-dap-3.7.3.ebuild
Date: Sun, 19 Apr 2009 22:38:33
Message-Id: E1Lvfeh-0004PU-DS@stork.gentoo.org
1 nerdboy 09/04/19 22:38:31
2
3 Added: metadata.xml ChangeLog libnc-dap-3.7.3.ebuild
4 Log:
5 New ebuild for OPeNDAP NetCDF library, a required dependency for ferret.
6 (Portage version: 2.2_rc30/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-libs/libnc-dap/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>sci-geosciences</herd>
20 <maintainer>
21 <email>nerdboy@g.o</email>
22 </maintainer>
23 <longdescription>
24 libnc-dap is the NetCDF interface for OPeNDAP (based on the standard netcdf
25 3.6 API), and adds the capability to dereference OPeNDAP URLs.
26 DAP is a NASA community standard: http://www.esdswg.org/spg/rfc/ese-rfc-004
27 </longdescription>
28 <use>
29 <flag name='full-test'>Enables full set of regression tests (long).</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.1 sci-libs/libnc-dap/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/ChangeLog?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/ChangeLog?rev=1.1&content-type=text/plain
39
40 Index: ChangeLog
41 ===================================================================
42 # ChangeLog for sci-libs/libnc-dap
43 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
44 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libnc-dap/ChangeLog,v 1.1 2009/04/19 22:38:31 nerdboy Exp $
45
46 *libnc-dap-3.7.3 (19 Apr 2009)
47
48 19 Apr 2009; Steve Arnold <nerdboy@g.o>
49 +files/libnc-dap-3.7.3_template-fix.patch, +metadata.xml,
50 +libnc-dap-3.7.3.ebuild:
51 New ebuild for OPeNDAP NetCDF library, a required dependency for ferret.
52
53
54
55
56 1.1 sci-libs/libnc-dap/libnc-dap-3.7.3.ebuild
57
58 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/libnc-dap-3.7.3.ebuild?rev=1.1&view=markup
59 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/libnc-dap/libnc-dap-3.7.3.ebuild?rev=1.1&content-type=text/plain
60
61 Index: libnc-dap-3.7.3.ebuild
62 ===================================================================
63 # Copyright 1999-2009 Gentoo Foundation
64 # Distributed under the terms of the GNU General Public License v2
65 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libnc-dap/libnc-dap-3.7.3.ebuild,v 1.1 2009/04/19 22:38:31 nerdboy Exp $
66
67 inherit eutils flag-o-matic fortran
68
69 DESCRIPTION="An OPeNDAP-enabled version of the NetCDF 3.6 API that replaces the standard NetCDF library."
70 HOMEPAGE="http://opendap.org/index.html"
71 SRC_URI="http://opendap.org/pub/source/${P}.tar.gz"
72
73 LICENSE="LGPL-2.1"
74 SLOT="0"
75 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
76 IUSE="debug fortran full-test"
77
78 RDEPEND="dev-util/cppunit
79 full-test? ( dev-util/dejagnu )"
80
81 DEPEND="${RDEPEND}
82 sys-libs/zlib
83 >=dev-libs/libxml2-2.5.7
84 >=net-misc/curl-7.10.6
85 <=sci-libs/libdap-3.8.2
86 !sci-libs/netcdf"
87
88 pkg_setup() {
89 if use full-test; then
90 if [ -n "${DAP_TEST_OPTS}" ]; then
91 elog "User-specified test URL is ${DAP_TEST_OPTS}."
92 else
93 elog "User-specified test URL is not set; if needed, set"
94 elog "DAP_TEST_OPTS to a URL of your choice and rebuild."
95 fi
96 elog
97 elog "The full regression test does two passes, the second one with"
98 elog "remote data queries. The latter part can take several hours,"
99 elog "so hit Ctl-C now and set USE=-full-test if you'd rather not."
100 epause 10
101 fi
102 }
103
104 src_unpack() {
105 unpack ${A}
106 cd "${S}"
107 # increase the number of open netcdf files
108 sed -i -e "s:MAX_NC_OPEN 32:MAX_NC_OPEN 128:g" \
109 lnetcdf/{lnetcdf.h,netcdf.h} \
110 || die "sed headers failed"
111 # missing definition causes unknown symbol errors
112 epatch "${FILESDIR}"/${P}_template-fix.patch
113 }
114
115 src_compile() {
116 local test_conf="${DAP_TEST_OPTS}"
117 local myconf="--disable-dependency-tracking --enable-largefile"
118
119 # debug can be set to 2 for extra verbosity
120 use debug && myconf="${myconf} --enable-debug=1"
121 econf ${myconf} ${test_conf} || die "econf failed"
122
123 emake -j1 || die "emake failed"
124 }
125
126 src_test() {
127 if use full-test; then
128 cd "${S}"/nc_test
129 # These tests should all pass, but the non-local pass can take
130 # several hours to complete.
131 make check || die "Regression tests failed!"
132 cd "${S}"
133 # This test has unexpected failures
134 make check
135 else
136 # unit tests only
137 cd "${S}"/unit-tests
138 ln -sf ../ncdump/testsuite testsuite
139 # These tests should also pass
140 make check || die "Unit tests failed!"
141 fi
142 }
143
144 src_install() {
145 emake DESTDIR="${D}" install || die "emake install failed"
146
147 dodoc README NEWS README.translation
148 }
149
150 pkg_postinst() {
151 elog
152 elog "If you want to run the regression tests with a custom URL and"
153 elog "dataset then you can pass it via the following option:"
154 elog
155 elog "DAP_TEST_OPTS=--with-data-url=<your URL> emerge libnc-dap"
156 elog
157 elog "for example, http://test.opendap.org/opendap/nph-dods/data/nc/test.nc"
158 elog "Just make sure you have test enabled in your FEATURES and"
159 elog "an active Internet connection."
160 elog
161 }