mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
sys-apps/intel-cmt-cat: add appqos
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
PYTHON_COMPAT=( python3_{8..10} ) #pypy3 has warnings
|
||||||
|
|
||||||
inherit distutils-r1 perl-module
|
inherit distutils-r1 perl-module
|
||||||
|
|
||||||
@@ -17,17 +17,24 @@ SRC_URI="https://github.com/intel/intel-cmt-cat/archive/refs/tags/v${PV}.tar.gz
|
|||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="perl"
|
IUSE="appqos perl"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
|
appqos? (
|
||||||
|
dev-python/flask[${PYTHON_USEDEP}]
|
||||||
|
dev-python/flask-restful[${PYTHON_USEDEP}]
|
||||||
|
dev-python/gevent[${PYTHON_USEDEP}]
|
||||||
dev-python/jsonschema[${PYTHON_USEDEP}]
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
sys-apps/CommsPowerManagement[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
perl? ( dev-lang/perl:= )
|
perl? ( dev-lang/perl:= )
|
||||||
"
|
"
|
||||||
DEPEND="
|
DEPEND="
|
||||||
${RDEPEND}
|
${RDEPEND}
|
||||||
test? ( dev-python/mock[${PYTHON_USEDEP}] )
|
test? ( appqos? ( dev-python/mock[${PYTHON_USEDEP}] ) )
|
||||||
"
|
"
|
||||||
|
|
||||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
@@ -36,8 +43,6 @@ PATCHES=( "${FILESDIR}/${PN}-perl-makefile.patch" )
|
|||||||
distutils_enable_tests unittest
|
distutils_enable_tests unittest
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
#TODO: install appqos
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
mkdir -p "${T}/prefix" || die
|
mkdir -p "${T}/prefix" || die
|
||||||
|
|
||||||
@@ -47,15 +52,16 @@ src_prepare() {
|
|||||||
src_compile() {
|
src_compile() {
|
||||||
emake all PREFIX="${T}/prefix"
|
emake all PREFIX="${T}/prefix"
|
||||||
|
|
||||||
|
pushd "lib/python" || die
|
||||||
|
python_foreach_impl distutils-r1_python_compile
|
||||||
|
popd || die
|
||||||
|
|
||||||
if use perl; then
|
if use perl; then
|
||||||
pushd "lib/perl" || die
|
pushd "lib/perl" || die
|
||||||
perl-module_src_configure
|
perl-module_src_configure
|
||||||
perl-module_src_compile
|
perl-module_src_compile
|
||||||
popd || die
|
popd || die
|
||||||
fi
|
fi
|
||||||
pushd "lib/python" || die
|
|
||||||
python_foreach_impl distutils-r1_python_compile
|
|
||||||
popd || die
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
@@ -82,8 +88,11 @@ src_install() {
|
|||||||
dodoc snmp/README
|
dodoc snmp/README
|
||||||
docinto rdtset
|
docinto rdtset
|
||||||
dodoc rdtset/README
|
dodoc rdtset/README
|
||||||
|
|
||||||
|
if use appqos; then
|
||||||
docinto appqos
|
docinto appqos
|
||||||
dodoc appqos/README.md
|
dodoc appqos/README.md
|
||||||
|
fi
|
||||||
|
|
||||||
unset DOCS
|
unset DOCS
|
||||||
python_foreach_impl python_install
|
python_foreach_impl python_install
|
||||||
@@ -108,7 +117,9 @@ python_install() {
|
|||||||
distutils-r1_python_install
|
distutils-r1_python_install
|
||||||
popd || die
|
popd || die
|
||||||
|
|
||||||
# python_domodule appqos
|
if use appqos; then
|
||||||
|
python_domodule appqos
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
@@ -116,7 +127,9 @@ python_test() {
|
|||||||
eunittest
|
eunittest
|
||||||
popd || die
|
popd || die
|
||||||
|
|
||||||
# pushd "appqos" || die
|
if use appqos; then
|
||||||
# epytest -vv tests
|
pushd "appqos" || die
|
||||||
# popd || die
|
epytest -vv tests
|
||||||
|
popd || die
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
@@ -48,4 +48,7 @@ PID API compile time option has been removed and the APIs are always available.
|
|||||||
Note that proper operation of these APIs depends on availability and
|
Note that proper operation of these APIs depends on availability and
|
||||||
selection of OS interface.
|
selection of OS interface.
|
||||||
</longdescription>
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="appqos">Install App QoS, a software created to demonstrate the use of Intel(R) RDT technologies (CAT, MBA) to improve QoS for applications via partitioning system resources.</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
Reference in New Issue
Block a user