commit:     3a5b7c91ef646fb12205f80d2d4ce47d3b87cb1a
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  3 14:53:25 2022 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 15:03:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5b7c91

app-benchmarks/stress-ng: add 0.13.11

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-benchmarks/stress-ng/Manifest                 |  1 +
 app-benchmarks/stress-ng/stress-ng-0.13.11.ebuild | 56 +++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/app-benchmarks/stress-ng/Manifest 
b/app-benchmarks/stress-ng/Manifest
index 38138450e6b5..8a02a11da77e 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
 DIST stress-ng-0.13.10.tar.gz 1044430 BLAKE2B 
2b5c7ad42d31382ea236bfaf9b16ee5a5fb85e10eb9bde6bf2dead4fa1d5e52bb4df006a528b52706f6aa3b605502ac801f8ffcc37528f5233afb98310e9eaeb
 SHA512 
9605545c241ee13bc94781b2676bc2a4e1aa5c94acd3f7e2826fd7a75fd6717f6de6f657aba0566bf66d709e53bcc4f5349496bdbfe9498cf3e1a576858cd8f1
+DIST stress-ng-0.13.11.tar.gz 1069071 BLAKE2B 
a622e9b3e1015d78f3ae3cc314cabce9ddc9a0ad50ae4de6b15c74918f202e75ad5fdb73d786b01a2c2765114ce1fe9f00702e80419311eb627eddccebf161db
 SHA512 
18e21f2e8af24f5d50b2e8c4119544d1469e82f7e1d96610ba509f12f84b6b4ef11353e7a31b5fdc848ec4cdfdd24ad22818492cbe917122e2fbad4727466cc2

diff --git a/app-benchmarks/stress-ng/stress-ng-0.13.11.ebuild 
b/app-benchmarks/stress-ng/stress-ng-0.13.11.ebuild
new file mode 100644
index 000000000000..c997ff6e3d0c
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.13.11.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 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 ~ppc64 ~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[@]}"
+}

Reply via email to