mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Closes: https://bugs.gentoo.org/784698 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
66 lines
1.3 KiB
Bash
66 lines
1.3 KiB
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{8..9} )
|
|
PYTHON_REQ_USE="tk"
|
|
|
|
inherit autotools python-single-r1
|
|
|
|
DESCRIPTION="Dynamically react to application imbalance by modifying the number of resources"
|
|
HOMEPAGE="https://github.com/bsc-pm/dlb"
|
|
SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="hwloc instrumentation mpi openmp test"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="
|
|
hwloc? ( sys-apps/hwloc )
|
|
mpi? ( virtual/mpi )
|
|
"
|
|
RDEPEND="
|
|
${PYTHON_DEPS}
|
|
${DEPEND}
|
|
dev-lang/tk
|
|
$(python_gen_cond_dep 'dev-python/matplotlib[tk,${PYTHON_USEDEP}]')
|
|
"
|
|
BDEPEND="test? ( sys-devel/bc )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${P}-pygen-python3.patch"
|
|
"${FILESDIR}/${P}-tkinter.patch"
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
|
|
sed -e "s|lib/|$(get_libdir)/|" -i scripts/viewer/dlb_wrapper.py || die
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myconf=(
|
|
--enable-shared
|
|
--with-pic
|
|
$(use_enable instrumentation)
|
|
$(use_enable openmp)
|
|
$(use_enable test static)
|
|
$(use_with hwloc)
|
|
$(use_with mpi)
|
|
)
|
|
econf "${myconf[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
find "${D}" -name '*.la' -delete || die
|
|
find "${D}" -name '*.a' -delete || die
|
|
}
|