commit: 0f6651b36777014be12547043917c728f00ae5cf Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Wed Jul 12 18:44:56 2023 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Wed Jul 12 18:44:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f6651b3
app-benchmarks/stress-ng: add 0.16.01 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> app-benchmarks/stress-ng/Manifest | 1 + app-benchmarks/stress-ng/stress-ng-0.16.01.ebuild | 56 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index 171a264b3f37..92e3d18d2d95 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.16.00.tar.gz 3893899 BLAKE2B 530a7daa1f345f324d9be3ce6c0392f7b87001c25cdbe90e4e08d8c06d2186add6c3694c96136758088f4467fa5a376be93f86c9358e8c17d8250ce617de9bb2 SHA512 b5d6bdc9e527ed2370245905cd8ed01123ba2306b6c0b9bb6b2123ebde7f4d53a80f44a162e739fe2670502b2feddc46883b2dbc3ebbd7e1394b41c00bb7e639 +DIST stress-ng-0.16.01.tar.gz 3896657 BLAKE2B 1444f75d07024d0013bd8a85ca93760b40e20e9b3d4fe69ad6f2528e5bff31e895f52fd233e25254fb72f08b25ee8e0527ea3ef4bed6ff3dd0b3a12e0e33634f SHA512 7508a0fe1decceb9cc5f454345e0518b3b7be49b793c18bdbdda4f85e1d18f9a06b788e6d4aad98e4d8a54a35e3272d92853991d48a815bb55b7ed0e235301ba diff --git a/app-benchmarks/stress-ng/stress-ng-0.16.01.ebuild b/app-benchmarks/stress-ng/stress-ng-0.16.01.ebuild new file mode 100644 index 000000000000..002dc1ebe61c --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.16.01.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[@]}" +}