You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.6 KiB
73 lines
1.6 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
FORTRAN_STANDARD="95"
|
||
|
FORTRAN_NEEDED=fortran
|
||
6 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
|
inherit autotools fortran-2 python-single-r1
|
||
9 years ago
|
|
||
|
DESCRIPTION="Reference implementation of the Dirfile, format for time-ordered binary data"
|
||
|
HOMEPAGE="http://getdata.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.xz"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="LGPL-2.1"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="bzip2 cxx debug flac fortran lzma perl python static-libs"
|
||
|
|
||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||
|
|
||
|
DEPEND="
|
||
|
bzip2? ( app-arch/bzip2 )
|
||
|
lzma? ( app-arch/xz-utils )
|
||
|
perl? ( dev-lang/perl )
|
||
5 years ago
|
python? (
|
||
5 years ago
|
$(python_gen_cond_dep '
|
||
|
|| (
|
||
|
dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}]
|
||
|
dev-python/numpy[${PYTHON_MULTI_USEDEP}]
|
||
|
)
|
||
|
')
|
||
5 years ago
|
${PYTHON_DEPS}
|
||
|
)"
|
||
9 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
6 years ago
|
PATCHES=( "${FILESDIR}/${P}-remove-python-test.patch" )
|
||
|
|
||
|
pkg_setup() {
|
||
|
use python && python-single-r1_pkg_setup
|
||
|
}
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-idl \
|
||
|
--disable-matlab \
|
||
|
--disable-php \
|
||
|
--with-libz \
|
||
|
--without-libslim \
|
||
|
--without-libzzip \
|
||
|
$(use_with bzip2 libbz2) \
|
||
6 years ago
|
$(use_enable cxx cplusplus) \
|
||
|
$(use_enable debug) \
|
||
9 years ago
|
$(use_with flac libFLAC) \
|
||
6 years ago
|
$(use_enable fortran) \
|
||
|
$(use_enable fortran fortran95) \
|
||
9 years ago
|
$(use_with lzma liblzma) \
|
||
6 years ago
|
$(use_enable perl) \
|
||
|
$(usex perl --with-perl-dir=vendor) \
|
||
|
$(use_enable python) \
|
||
|
$(use_enable static-libs static)
|
||
9 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
6 years ago
|
find "${D}" -name '*.la' -delete || die
|
||
9 years ago
|
}
|