summaryrefslogtreecommitdiff
blob: 2e7a17784084bc6599166c9a43a60ec76fec72f6 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/h5utils/h5utils-1.12.1-r2.ebuild,v 1.3 2011/10/08 16:28:56 phajdan.jr Exp $

EAPI=4

inherit autotools eutils

DESCRIPTION="utilities for visualization and conversion of HDF5 files"
HOMEPAGE="http://ab-initio.mit.edu/h5utils/"
SRC_URI="http://ab-initio.mit.edu/h5utils/${P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc x86"

IUSE="hdf octave"
SLOT="0"

DEPEND="media-libs/libpng
	sci-libs/hdf5
	sys-libs/zlib
	hdf? (
		sci-libs/hdf
		virtual/jpeg
	)"
RDEPEND="${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-automagic.patch \
		"${FILESDIR}"/${P}-png15.patch
	eautoreconf
}

src_configure() {
	econf \
		 --without-v5d \
		$(use_with octave) \
		$(use_with hdf)
}

src_install() {
	emake DESTDIR="${D}" install
	dodoc README NEWS AUTHORS
}