1 |
bicatali 09/04/16 20:24:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: hdf-4.2_p4.ebuild |
5 |
Removed: hdf-4.2.1_p4.ebuild |
6 |
Log: |
7 |
Version bump (4.2.1_p4 was wrongly named. Many patches applied for fortran, fixing as-needed, and for ppc, s390 and sparc to work (some taken from Fedora). Added netcdf flag which will install the ncdump and ncgen but renamed to nc*-hdf. |
8 |
(Portage version: 2.2_rc30/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.10 sci-libs/hdf/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/hdf/ChangeLog?rev=1.10&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/hdf/ChangeLog?rev=1.10&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/hdf/ChangeLog?r1=1.9&r2=1.10 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v |
20 |
retrieving revision 1.9 |
21 |
retrieving revision 1.10 |
22 |
diff -u -r1.9 -r1.10 |
23 |
--- ChangeLog 18 Aug 2007 12:07:07 -0000 1.9 |
24 |
+++ ChangeLog 16 Apr 2009 20:24:04 -0000 1.10 |
25 |
@@ -1,6 +1,17 @@ |
26 |
# ChangeLog for sci-libs/hdf |
27 |
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.9 2007/08/18 12:07:07 bicatali Exp $ |
29 |
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/ChangeLog,v 1.10 2009/04/16 20:24:04 bicatali Exp $ |
31 |
+ |
32 |
+*hdf-4.2_p4 (16 Apr 2009) |
33 |
+ |
34 |
+ 16 Apr 2009; Sébastien Fabbro <bicatali@g.o> |
35 |
+ -files/hdf-4.2.1_p4-maxavailfiles.patch, |
36 |
+ -files/hdf-4.2.1_p4-shared-libs.patch, +hdf-4.2_p4.ebuild, |
37 |
+ -hdf-4.2.1_p4.ebuild: |
38 |
+ Version bump (4.2.1_p4 was wrongly named. Many patches applied for |
39 |
+ fortran, fixing as-needed, and for ppc, s390 and sparc to work (some taken |
40 |
+ from Fedora). Added netcdf flag which will install the ncdump and ncgen |
41 |
+ but renamed to nc*-hdf. |
42 |
|
43 |
*hdf-4.2.1_p4 (18 Aug 2007) |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
1.1 sci-libs/hdf/hdf-4.2_p4.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/hdf/hdf-4.2_p4.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/hdf/hdf-4.2_p4.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: hdf-4.2_p4.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2009 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2_p4.ebuild,v 1.1 2009/04/16 20:24:04 bicatali Exp $ |
58 |
|
59 |
EAPI=2 |
60 |
inherit eutils toolchain-funcs autotools flag-o-matic |
61 |
|
62 |
MYP="HDF${PV/_p/r}" |
63 |
|
64 |
DESCRIPTION="General purpose library and format for storing scientific data" |
65 |
HOMEPAGE="http://www.hdfgroup.org/hdf4.html" |
66 |
SRC_URI="ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/${MYP}.tar.gz |
67 |
mirror://gentoo/${P}-patches.tar.bz2" |
68 |
|
69 |
LICENSE="NCSA-HDF" |
70 |
KEYWORDS="~amd64 ~ppc ~x86" |
71 |
SLOT="0" |
72 |
IUSE="fortran netcdf szip" |
73 |
|
74 |
RDEPEND="sys-libs/zlib |
75 |
media-libs/jpeg |
76 |
szip? ( >=sci-libs/szip-2 )" |
77 |
|
78 |
DEPEND="${RDEPEND}" |
79 |
|
80 |
S="${WORKDIR}/${MYP}" |
81 |
|
82 |
src_prepare() { |
83 |
# for s390, sparc and ppc to work (from fedora) |
84 |
epatch "${WORKDIR}"/${P}-arches.patch |
85 |
epatch "${WORKDIR}"/${P}-buffer.patch |
86 |
|
87 |
epatch "${WORKDIR}"/${P}-configure.ac.patch |
88 |
epatch "${WORKDIR}"/${P}-fortran.patch |
89 |
epatch "${WORKDIR}"/${P}-maxavailfiles.patch |
90 |
epatch "${WORKDIR}"/${P}-as-needed.patch |
91 |
epatch "${WORKDIR}"/${P}-include.patch |
92 |
sed -i \ |
93 |
-e 's|-O3 -fomit-frame-pointer||g' \ |
94 |
-e 's|-Wsign-compare||g' \ |
95 |
"${S}"/config/* || die "sed failed" |
96 |
eautoreconf |
97 |
[[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check |
98 |
} |
99 |
|
100 |
src_configure() { |
101 |
econf \ |
102 |
--enable-shared \ |
103 |
--enable-production \ |
104 |
$(use_enable fortran) \ |
105 |
$(use_enable netcdf) \ |
106 |
$(use_with szip szlib) \ |
107 |
F77="$(tc-getFC)" |
108 |
} |
109 |
|
110 |
src_test() { |
111 |
LD_LIBRARY_PATH="${S}"/mfhdf/libsrc/.libs:${LD_LIBRARY_PATH} \ |
112 |
emake -j1 check || die "emake check failed" |
113 |
} |
114 |
|
115 |
src_install() { |
116 |
emake DESTDIR="${D}" install || die "emake install failed" |
117 |
dodoc README release_notes/*.txt |
118 |
if use netcdf; then |
119 |
einfo "Renaming ncdump and ncgen to ncdump-hdf and ncgen-hdf" |
120 |
cd "${D}"usr |
121 |
mv bin/ncgen{,-hdf} || die |
122 |
mv bin/ncdump{,-hdf} || die |
123 |
mv share/man/man1/ncgen{,-hdf}.1 || die |
124 |
mv share/man/man1/ncdump{,-hdf}.1 || die |
125 |
for i in include/netcdf*; do |
126 |
mv ${i} ${i/cdf/cdf-hdf} |
127 |
done |
128 |
fi |
129 |
} |