diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-07-07 23:58:55 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-07-07 23:58:55 +0200 |
commit | 69378c039f94e4a4015e6d64d6e2c8a3515bfc05 (patch) | |
tree | fe18c3539fc73fbb05c905b278c7ed189f50b8c7 /app-benchmarks/stress-ng | |
parent | gui-apps/waybar: disable cava module in live ebuild (diff) | |
download | gentoo-69378c039f94e4a4015e6d64d6e2c8a3515bfc05.tar.gz gentoo-69378c039f94e4a4015e6d64d6e2c8a3515bfc05.tar.bz2 gentoo-69378c039f94e4a4015e6d64d6e2c8a3515bfc05.zip |
app-benchmarks/stress-ng: add 0.16.00
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks/stress-ng')
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.16.00.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index 8f4f7fad83fc..c049a16b2626 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.15.10.tar.gz 3878529 BLAKE2B 94f1047d497e3a293d45a3f64060f850cb0b4192d4bd59ae2895fc8e1d17e62f2e3d0b3b36a21e39232984257862a40e2aa1360bc77a56185a43b13ada68907e SHA512 1aef11b1ad238e5c34fab3eb588ee3295f819d33eb769df963f89b2f3932ea69c3cf5036cd000dbb478c3b1c58aaf5c80ff52fcef38fc1b6a4da96fa740745d9 +DIST stress-ng-0.16.00.tar.gz 3893899 BLAKE2B 530a7daa1f345f324d9be3ce6c0392f7b87001c25cdbe90e4e08d8c06d2186add6c3694c96136758088f4467fa5a376be93f86c9358e8c17d8250ce617de9bb2 SHA512 b5d6bdc9e527ed2370245905cd8ed01123ba2306b6c0b9bb6b2123ebde7f4d53a80f44a162e739fe2670502b2feddc46883b2dbc3ebbd7e1394b41c00bb7e639 diff --git a/app-benchmarks/stress-ng/stress-ng-0.16.00.ebuild b/app-benchmarks/stress-ng/stress-ng-0.16.00.ebuild new file mode 100644 index 000000000000..002dc1ebe61c --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.16.00.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info toolchain-funcs + +DESCRIPTION="Stress test for a computer system with various selectable ways" +HOMEPAGE="https://github.com/ColinIanKing/stress-ng" +SRC_URI="https://github.com/ColinIanKing/${PN}/archive/refs/tags/V${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86" +IUSE="apparmor sctp" + +DEPEND=" + dev-libs/libaio + dev-libs/libbsd + dev-libs/libgcrypt:0= + sys-apps/attr + sys-apps/keyutils:= + sys-libs/libcap + sys-libs/zlib + virtual/libcrypt:= + apparmor? ( + sys-apps/apparmor-utils + sys-libs/libapparmor + ) + sctp? ( net-misc/lksctp-tools ) +" + +RDEPEND="${DEPEND}" + +DOCS=( "README.md" "README.Android" "TODO" "syscalls.txt" ) + +pkg_pretend() { + if use apparmor; then + CONFIG_CHECK="SECURITY_APPARMOR" + check_extra_config + fi +} + +src_compile() { + tc-export CC + + export MAN_COMPRESS="0" + + local myemakeopts=( + HAVE_APPARMOR="$(usex apparmor 1 0)" + HAVE_LIB_SCTP="$(usex sctp 1 0)" + VERBOSE="1" + ) + + emake "${myemakeopts[@]}" +} |