Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/hdf5: hdf5-1.8.14-r1.ebuild ChangeLog hdf5-1.8.14.ebuild
Date: Thu, 27 Nov 2014 20:50:41
Message-Id: 20141127205035.B9BD3B0A5@oystercatcher.gentoo.org
1 xarthisius 14/11/27 20:50:35
2
3 Modified: ChangeLog
4 Added: hdf5-1.8.14-r1.ebuild
5 Removed: hdf5-1.8.14.ebuild
6 Log:
7 Prevent injection of -L{prefix}/lib to LDFLAGS. Fixes bug #530746 by Ulenrich <eulenreich@×××.de>. Thanks to Jouni Kosonen <jouni.kosonen@××××××××.com> for the hint
8
9 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
10
11 Revision Changes Path
12 1.120 sci-libs/hdf5/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.120&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?rev=1.120&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/ChangeLog?r1=1.119&r2=1.120
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v
21 retrieving revision 1.119
22 retrieving revision 1.120
23 diff -u -r1.119 -r1.120
24 --- ChangeLog 25 Nov 2014 15:26:17 -0000 1.119
25 +++ ChangeLog 27 Nov 2014 20:50:35 -0000 1.120
26 @@ -1,6 +1,14 @@
27 # ChangeLog for sci-libs/hdf5
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.119 2014/11/25 15:26:17 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/ChangeLog,v 1.120 2014/11/27 20:50:35 xarthisius Exp $
31 +
32 +*hdf5-1.8.14-r1 (27 Nov 2014)
33 +
34 + 27 Nov 2014; Kacper Kowalik <xarthisius@g.o>
35 + +files/hdf5-1.8.14-ldflags.patch, +hdf5-1.8.14-r1.ebuild, -hdf5-1.8.14.ebuild:
36 + Prevent injection of -L{prefix}/lib to LDFLAGS. Fixes bug #530746 by Ulenrich
37 + <eulenreich@×××.de>. Thanks to Jouni Kosonen <jouni.kosonen@××××××××.com> for
38 + the hint
39
40 *hdf5-1.8.14 (25 Nov 2014)
41
42
43
44
45 1.1 sci-libs/hdf5/hdf5-1.8.14-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.14-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/hdf5-1.8.14-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: hdf5-1.8.14-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf5/hdf5-1.8.14-r1.ebuild,v 1.1 2014/11/27 20:50:35 xarthisius Exp $
55
56 EAPI=5
57
58 FORTRAN_NEEDED=fortran
59 AUTOTOOLS_AUTORECONF=1
60
61 inherit autotools-utils eutils fortran-2 flag-o-matic toolchain-funcs multilib
62
63 MY_P=${PN}-${PV/_p/-patch}
64
65 DESCRIPTION="General purpose library and file format for storing scientific data"
66 HOMEPAGE="http://www.hdfgroup.org/HDF5/"
67 SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MY_P}/src/${MY_P}.tar.bz2"
68
69 LICENSE="NCSA-HDF"
70 SLOT="0/${PV%%_p*}"
71 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
72 IUSE="cxx debug examples fortran fortran2003 mpi static-libs szip threads zlib"
73
74 REQUIRED_USE="
75 cxx? ( !mpi ) mpi? ( !cxx )
76 threads? ( !cxx !mpi !fortran )
77 fortran2003? ( fortran )"
78
79 RDEPEND="
80 mpi? ( virtual/mpi[romio] )
81 szip? ( >=sci-libs/szip-2.1:0= )
82 zlib? ( sys-libs/zlib:0= )"
83
84 DEPEND="${RDEPEND}
85 sys-devel/libtool:2
86 >=sys-devel/autoconf-2.69"
87
88 S="${WORKDIR}/${MY_P}"
89
90 PATCHES=(
91 "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch
92 "${FILESDIR}"/${PN}-1.8.9-mpicxx.patch
93 "${FILESDIR}"/${PN}-1.8.13-no-messing-ldpath.patch
94 "${FILESDIR}"/${PN}-1.8.14-implicits.patch
95 "${FILESDIR}"/${PN}-1.8.14-ldflags.patch
96 )
97
98 pkg_setup() {
99 tc-export CXX CC AR # workaround for bug 285148
100 if use fortran; then
101 use fortran2003 && FORTRAN_STANDARD=2003
102 fortran-2_pkg_setup
103 fi
104 if use mpi; then
105 if has_version 'sci-libs/hdf5[-mpi]'; then
106 ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail."
107 ewarn "Try to uninstall the current hdf5 prior to enabling mpi support."
108 fi
109 export CC=mpicc
110 use fortran && export FC=mpif90
111 elif has_version 'sci-libs/hdf5[mpi]'; then
112 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
113 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
114 fi
115 }
116
117 src_prepare() {
118 # respect gentoo examples directory
119 sed \
120 -e "s:hdf5_examples:doc/${PF}/examples:g" \
121 -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die
122 sed \
123 -e '/docdir/d' \
124 -i config/commence.am || die
125 if ! use examples; then
126 sed -e '/^install:/ s/install-examples//' \
127 -i Makefile.am || die #409091
128 fi
129 # enable shared libs by default for h5cc config utility
130 sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/misc/h5cc.in || die
131 # bug #419677
132 use prefix && \
133 append-ldflags -Wl,-rpath,"${EPREFIX}"/usr/$(get_libdir) \
134 -Wl,-rpath,"${EPREFIX}"/$(get_libdir)
135 autotools-utils_src_prepare
136 }
137
138 src_configure() {
139 local myeconfargs=(
140 --enable-production
141 --docdir="${EPREFIX}"/usr/share/doc/${PF}
142 --enable-deprecated-symbols
143 $(use_enable prefix sharedlib-rpath)
144 $(use_enable debug debug all)
145 $(use_enable debug codestack)
146 $(use_enable cxx)
147 $(use_enable fortran)
148 $(use_enable fortran2003)
149 $(use_enable mpi parallel)
150 $(use_enable threads threadsafe)
151 $(use_with szip szlib)
152 $(use_with threads pthread)
153 $(use_with zlib)
154 )
155 autotools-utils_src_configure
156 }