mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
43 lines
764 B
Bash
43 lines
764 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=9
|
|
|
|
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"
|
|
IUSE="hdf octave"
|
|
|
|
DEPEND="
|
|
media-libs/libpng:0=
|
|
sci-libs/hdf5:0=
|
|
virtual/zlib:=
|
|
hdf? (
|
|
sci-libs/hdf:0=
|
|
media-libs/libjpeg-turbo
|
|
)
|
|
octave? (
|
|
sci-mathematics/octave
|
|
)"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=( "${FILESDIR}"/${P}-automagic.patch )
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--without-v5d \
|
|
$(use_with octave) \
|
|
$(use_with hdf)
|
|
}
|