Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 75415 | Differences between
and this patch

Collapse All | Expand All

(-)hdf-4.2.0-r3.ebuild (-5 / +15 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2.0-r3.ebuild,v 1.2 2004/12/29 00:31:18 ribosome Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-libs/hdf/hdf-4.2.0-r3.ebuild,v 1.2 2004/12/29 00:31:18 ribosome Exp $
4
4
5
inherit flag-o-matic
5
inherit flag-o-matic fortran
6
6
7
# substitute second dot by "r"
7
# substitute second dot by "r"
8
MY_PV=${PV/./X}
8
MY_PV=${PV/./X}
Lines 26-42 Link Here
26
		>=sys-apps/sed-4
26
		>=sys-apps/sed-4
27
		szip? ( sci-libs/szip )"
27
		szip? ( sci-libs/szip )"
28
28
29
pkg_setup() {
29
src_unpack() {
30
	if ! which &>/dev/null g77; then
30
	unpack ${A}
31
		die "g77 not found, please re-emerge gcc with f77 in your USE flags."
31
	cd ${S}
32
	fi
32
	epatch ${FILESDIR}/${P}-shared-libs.patch
33
}
33
}
34
34
35
src_compile() {
35
src_compile() {
36
	# To use libtool for shared libs, we need above patch and the following lines.
37
	# Danny van Dyk <kugelfang@gentoo.org> 2005/01/24
38
	aclocal
39
	libtoolize --copy --force
40
	automake --add-missing
41
	autoconf
42
36
	local myconf="--enable-production"
43
	local myconf="--enable-production"
44
	
37
	use szip && myconf="${myconf} --with-szlib=/usr"
45
	use szip && myconf="${myconf} --with-szlib=/usr"
38
	use ppc && append-flags -DSUN
46
	use ppc && append-flags -DSUN
47
	
39
	econf ${myconf} || die "configure failed"
48
	econf ${myconf} || die "configure failed"
49
	
40
	make LDFLAGS="${LDFLAGS} -lm" || die "make failed"
50
	make LDFLAGS="${LDFLAGS} -lm" || die "make failed"
41
}
51
}
42
52

Return to bug 75415