blob: a84c93fc7ed3371bf1c56733fbb476e262129814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/hdf5/hdf5-1.4.5.ebuild,v 1.5 2004/06/24 23:12:22 agriffis Exp $
DESCRIPTION="HDF5 is a general purpose library and file format for storing scientific data."
SRC_URI="ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/${P}-post2.tar.gz"
HOMEPAGE="http://hdf.ncsa.uiuc.edu/HDF5/"
LICENSE="NCSA-HDF"
KEYWORDS="x86"
SLOT="0"
IUSE="static zlib"
DEPEND="zlib? ( sys-libs/zlib )"
# set the source directory
S=${WORKDIR}/${P}-post2
src_compile() {
local myconf
use static || myconf="--disable-static"
use zlib || myconf="${myconf} --disable-zlib"
# NOTE: the hdf5 configure script has its own interpretation of
# the ARCH environment variable which conflicts with that of
# ebuild/emerge. As a work around, we save the ARCH variable as
# EBUILD_ARCH and restore it when we are done.
EBUILD_ARCH=${ARCH}
unset ARCH
./configure ${myconf} --enable-linux-lfs \
--prefix=/usr \
--sysconfdir=/etc \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "configure failed"
# restore the ARCH environment variable
ARCH=${EBUILD_ARCH}
make || die "emake failed"
}
src_install() {
make \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die "make install failed"
dodoc README.txt COPYING MANIFEST
dohtml doc/html/*
}
|