summaryrefslogtreecommitdiff
path: root/sci-misc/h5utils/h5utils-1.13.1.ebuild
blob: 11650891c2ec7ce14cc33427ede0c40c1ce6fcbe (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="Utilities for visualization and conversion of HDF5 files"
HOMEPAGE="https://github.com/NanoComp/h5utils"
SRC_URI="https://github.com/NanoComp/h5utils/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
IUSE="hdf octave"

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

PATCHES=( "${FILESDIR}"/${P}-automagic.patch )

src_prepare() {
	default
	eautoreconf
}

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