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.
50 lines
1.0 KiB
50 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
PYTHON_COMPAT=( python2_7 )
|
||
|
|
||
|
inherit bash-completion-r1 python-single-r1
|
||
|
|
||
|
DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis"
|
||
|
HOMEPAGE="http://yoda.hepforge.org/"
|
||
|
|
||
|
SRC_URI="http://www.hepforge.org/archive/${PN}/${P^^}.tar.bz2"
|
||
|
LICENSE="GPL-2"
|
||
|
|
||
|
SLOT="0/${PV}"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="python root static-libs"
|
||
|
|
||
|
RDEPEND="
|
||
|
python? ( ${PYTHON_DEPS} )
|
||
4 years ago
|
root? ( sci-physics/root:=[python=,${PYTHON_SINGLE_USEDEP}] )"
|
||
6 years ago
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
python? (
|
||
|
$(python_gen_cond_dep '
|
||
|
dev-python/cython[${PYTHON_MULTI_USEDEP}]
|
||
|
')
|
||
|
)"
|
||
6 years ago
|
|
||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||
|
|
||
|
S="${WORKDIR}/${P^^}"
|
||
|
|
||
|
pkg_setup() {
|
||
|
use python && python-single-r1_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
$(use_enable python pyext) \
|
||
|
$(use_enable root) \
|
||
|
$(use_enable static-libs static)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
newbashcomp "${ED%/}"/usr/share/YODA/yoda-completion ${PN}
|
||
|
rm "${ED%/}"/usr/share/YODA/yoda-completion || die
|
||
|
}
|