public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/poop/
@ 2025-04-01 11:40 Florian Schmaus
  2025-04-01 11:40 ` [gentoo-commits] repo/proj/guru:master " Florian Schmaus
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Schmaus @ 2025-04-01 11:40 UTC (permalink / raw
  To: gentoo-commits

commit:     9e41b19e0e514cad3dd4db680b5ad43d624ff087
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  1 11:10:30 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Apr  1 11:39:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9e41b19e

app-benchmarks/poop: add 0.5.0

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-benchmarks/poop/Manifest          |  1 +
 app-benchmarks/poop/poop-0.5.0.ebuild | 43 +++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/app-benchmarks/poop/Manifest b/app-benchmarks/poop/Manifest
new file mode 100644
index 000000000..fb902189a
--- /dev/null
+++ b/app-benchmarks/poop/Manifest
@@ -0,0 +1 @@
+DIST poop-0.5.0.tar.gz 9908 BLAKE2B 433ea919e50f2f2b34fcacb5c8841599ecce2c103a08a976f72d61732c017c841bcda3d5c55130e87238b1b24fba393a98c61d724a2a79d957001311fc2017e1 SHA512 efea84ed95300e4ac4b13f919282a37534b73359dac3d057c9e5dd7a365561a92387b716ee8b14d54a23cf498ae03d7399cba6f6d40a2aa9e971ad8878abf5cd

diff --git a/app-benchmarks/poop/poop-0.5.0.ebuild b/app-benchmarks/poop/poop-0.5.0.ebuild
new file mode 100644
index 000000000..9859e360b
--- /dev/null
+++ b/app-benchmarks/poop/poop-0.5.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == "9999" ]]; then
+	ZIG_SLOT="9999"
+else
+	ZIG_SLOT="0.13"
+fi
+
+inherit zig
+
+DESCRIPTION="Performance Optimizer Observation Platform"
+HOMEPAGE="https://github.com/andrewrk/poop"
+if [[ ${PV} == "9999" ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/andrewrk/poop"
+else
+	SRC_URI="
+		https://github.com/andrewrk/poop/archive/refs/tags/${PV}.tar.gz
+			-> ${P}.tar.gz
+	"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+if [[ ${PV} == "9999" ]]; then
+	src_unpack() {
+		git-r3_src_unpack
+		zig_live_fetch
+	}
+fi
+
+src_configure() {
+	local my_zbs_args=(
+		-Dstrip=false # Let Portage control this
+	)
+
+	zig_src_configure
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/poop/
@ 2025-04-01 11:40 Florian Schmaus
  2025-04-01 11:40 ` [gentoo-commits] repo/proj/guru:master " Florian Schmaus
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Schmaus @ 2025-04-01 11:40 UTC (permalink / raw
  To: gentoo-commits

commit:     06ba1f0f708bd11d5e4710dcaad1ed99c829678c
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Apr  1 11:39:35 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Apr  1 11:39:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=06ba1f0f

app-benchmarks/poop: sync live

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-benchmarks/poop/poop-9999.ebuild | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/app-benchmarks/poop/poop-9999.ebuild b/app-benchmarks/poop/poop-9999.ebuild
index 478081f4b..9859e360b 100644
--- a/app-benchmarks/poop/poop-9999.ebuild
+++ b/app-benchmarks/poop/poop-9999.ebuild
@@ -1,24 +1,38 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-EGIT_REPO_URI="https://github.com/andrewrk/poop"
-ZIG_SLOT="9999"
-inherit git-r3 zig
+if [[ ${PV} == "9999" ]]; then
+	ZIG_SLOT="9999"
+else
+	ZIG_SLOT="0.13"
+fi
+
+inherit zig
 
 DESCRIPTION="Performance Optimizer Observation Platform"
 HOMEPAGE="https://github.com/andrewrk/poop"
+if [[ ${PV} == "9999" ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/andrewrk/poop"
+else
+	SRC_URI="
+		https://github.com/andrewrk/poop/archive/refs/tags/${PV}.tar.gz
+			-> ${P}.tar.gz
+	"
+	KEYWORDS="~amd64"
+fi
 
 LICENSE="MIT"
 SLOT="0"
 
-DOCS=( "README.md" )
-
-src_unpack() {
-	git-r3_src_unpack
-	zig_live_fetch
-}
+if [[ ${PV} == "9999" ]]; then
+	src_unpack() {
+		git-r3_src_unpack
+		zig_live_fetch
+	}
+fi
 
 src_configure() {
 	local my_zbs_args=(


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/poop/
@ 2024-12-15 18:10 Julien Roy
  0 siblings, 0 replies; 6+ messages in thread
From: Julien Roy @ 2024-12-15 18:10 UTC (permalink / raw
  To: gentoo-commits

commit:     a98632e914cdb95bf0d68c47f79e5d3cc475c6a1
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Sun Dec 15 12:27:37 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Dec 15 12:27:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a98632e9

app-benchmarks/poop: port 9999 to `zig.eclass`

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>

 app-benchmarks/poop/poop-9999.ebuild | 108 +++--------------------------------
 1 file changed, 9 insertions(+), 99 deletions(-)

diff --git a/app-benchmarks/poop/poop-9999.ebuild b/app-benchmarks/poop/poop-9999.ebuild
index e44812399..478081f4b 100644
--- a/app-benchmarks/poop/poop-9999.ebuild
+++ b/app-benchmarks/poop/poop-9999.ebuild
@@ -3,9 +3,9 @@
 
 EAPI=8
 
-inherit edo git-r3
-
 EGIT_REPO_URI="https://github.com/andrewrk/poop"
+ZIG_SLOT="9999"
+inherit git-r3 zig
 
 DESCRIPTION="Performance Optimizer Observation Platform"
 HOMEPAGE="https://github.com/andrewrk/poop"
@@ -13,107 +13,17 @@ HOMEPAGE="https://github.com/andrewrk/poop"
 LICENSE="MIT"
 SLOT="0"
 
-EZIG_MIN="9999"
-EZIG_MAX_EXCLUSIVE="99991"
-
-DEPEND="dev-lang/zig:${EZIG_MIN}"
-
-# see https://github.com/ziglang/zig/issues/3382
-# For now, Zig Build System doesn't support CFLAGS/LDFLAGS/etc.
-QA_FLAGS_IGNORED="usr/bin/poop"
-
-# : copied from sys-fs/ncdu :
-# Many thanks to Florian Schmaus (Flowdalic)!
-# Adapted from https://github.com/gentoo/gentoo/pull/28986
-# Set the EZIG environment variable.
-zig-set_EZIG() {
-	[[ -n ${EZIG} ]] && return
-
-	if [[ -n ${EZIG_OVERWRITE} ]]; then
-		export EZIG="${EZIG_OVERWRITE}"
-		return
-	fi
-
-	local candidates candidate selected selected_ver
-
-	candidates=$(compgen -c zig-)
-
-	for candidate in ${candidates}; do
-		if [[ ! ${candidate} =~ zig(-bin)?-([.0-9]+) ]]; then
-			continue
-		fi
-
-		local ver
-		if (( ${#BASH_REMATCH[@]} == 3 )); then
-			ver="${BASH_REMATCH[2]}"
-		else
-			ver="${BASH_REMATCH[1]}"
-		fi
-
-		if [[ -n ${EZIG_EXACT_VER} ]]; then
-			ver_test "${ver}" -ne "${EZIG_EXACT_VER}" && continue
-
-			selected="${candidate}"
-			selected_ver="${ver}"
-			break
-		fi
-
-		if [[ -n ${EZIG_MIN} ]] \
-			   && ver_test "${ver}" -lt "${EZIG_MIN}"; then
-			# Candidate does not satisfy EZIG_MIN condition.
-			continue
-		fi
-
-		if [[ -n ${EZIG_MAX_EXCLUSIVE} ]] \
-			   && ver_test "${ver}" -ge "${EZIG_MAX_EXCLUSIVE}"; then
-			# Candidate does not satisfy EZIG_MAX_EXCLUSIVE condition.
-			continue
-		fi
-
-		if [[ -n ${selected_ver} ]] \
-			   && ver_test "${selected_ver}" -gt "${ver}"; then
-			# Candidate is older than the currently selected candidate.
-			continue
-		fi
-
-		selected="${candidate}"
-		selected_ver="${ver}"
-	done
-
-	if [[ -z ${selected} ]]; then
-		die "Could not find (suitable) zig installation in PATH"
-	fi
-
-	export EZIG="${selected}"
-	export EZIG_VER="${ver}"
-}
-
-# Invoke zig with the optionally provided arguments.
-ezig() {
-	zig-set_EZIG
-
-	# Unfortunately, we cannot add more args here, since syntax is different
-	# for every subcommands. Yes, even target/cpu :( f.i. :
-	# -target/-mcpu for zig build-exe vs -Dtarget/-Dcpu for zig build-
-	# -OReleaseSafe for zig build-exe vs -DReleaseSafe for zig build
-	# (or even none, if hardcoded by upstream so choice is -Drelease=true/false)
-	# Ofc we can patch this, but still...
-
-	edo "${EZIG}" "${@}"
-}
+DOCS=( "README.md" )
 
 src_unpack() {
 	git-r3_src_unpack
-	cd "${S}" || die
-	# "zig build" doesn't have "fetch" subcommand yet
-	ezig build --help || die "Fetching Zig modules failed"
+	zig_live_fetch
 }
 
-src_compile() {
-	ezig build -Doptimize=ReleaseSafe --verbose || die
-}
+src_configure() {
+	local my_zbs_args=(
+		-Dstrip=false # Let Portage control this
+	)
 
-src_install() {
-	DESTDIR="${ED}" ezig build install --prefix /usr -Doptimize=ReleaseSafe --verbose || die
-	dodoc README.md
+	zig_src_configure
 }


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/poop/
@ 2024-08-01 21:51 Lucio Sauer
  0 siblings, 0 replies; 6+ messages in thread
From: Lucio Sauer @ 2024-08-01 21:51 UTC (permalink / raw
  To: gentoo-commits

commit:     2665bb83705edb8cc292f25d6eda468ffe7bcfde
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Thu Aug  1 19:51:06 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Aug  1 19:51:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2665bb83

app-benchmarks/poop: Zig is not needed at runtime

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>

 app-benchmarks/poop/poop-9999.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app-benchmarks/poop/poop-9999.ebuild b/app-benchmarks/poop/poop-9999.ebuild
index a56a627a2..e44812399 100644
--- a/app-benchmarks/poop/poop-9999.ebuild
+++ b/app-benchmarks/poop/poop-9999.ebuild
@@ -17,7 +17,6 @@ EZIG_MIN="9999"
 EZIG_MAX_EXCLUSIVE="99991"
 
 DEPEND="dev-lang/zig:${EZIG_MIN}"
-RDEPEND="${DEPEND}"
 
 # see https://github.com/ziglang/zig/issues/3382
 # For now, Zig Build System doesn't support CFLAGS/LDFLAGS/etc.


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/poop/
@ 2023-06-15  9:33 Florian Schmaus
  0 siblings, 0 replies; 6+ messages in thread
From: Florian Schmaus @ 2023-06-15  9:33 UTC (permalink / raw
  To: gentoo-commits

commit:     dfc2e100339eacc60c6fda3f436e3f8ea45729fe
Author:     Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
AuthorDate: Wed Jun 14 09:26:17 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 09:26:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dfc2e100

app-benchmarks/poop: new package, add 9999

Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>

 app-benchmarks/poop/metadata.xml     |  12 ++++
 app-benchmarks/poop/poop-9999.ebuild | 120 +++++++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)

diff --git a/app-benchmarks/poop/metadata.xml b/app-benchmarks/poop/metadata.xml
new file mode 100644
index 000000000..0ec639e43
--- /dev/null
+++ b/app-benchmarks/poop/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>bratishkaerik@getgoogleoff.me</email>
+		<name>Eric Joldasov</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">andrewrk/poop</remote-id>
+		<bugs-to>https://github.com/andrewrk/poop/issues</bugs-to>
+	</upstream>
+</pkgmetadata>

diff --git a/app-benchmarks/poop/poop-9999.ebuild b/app-benchmarks/poop/poop-9999.ebuild
new file mode 100644
index 000000000..a56a627a2
--- /dev/null
+++ b/app-benchmarks/poop/poop-9999.ebuild
@@ -0,0 +1,120 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo git-r3
+
+EGIT_REPO_URI="https://github.com/andrewrk/poop"
+
+DESCRIPTION="Performance Optimizer Observation Platform"
+HOMEPAGE="https://github.com/andrewrk/poop"
+
+LICENSE="MIT"
+SLOT="0"
+
+EZIG_MIN="9999"
+EZIG_MAX_EXCLUSIVE="99991"
+
+DEPEND="dev-lang/zig:${EZIG_MIN}"
+RDEPEND="${DEPEND}"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig Build System doesn't support CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/poop"
+
+# : copied from sys-fs/ncdu :
+# Many thanks to Florian Schmaus (Flowdalic)!
+# Adapted from https://github.com/gentoo/gentoo/pull/28986
+# Set the EZIG environment variable.
+zig-set_EZIG() {
+	[[ -n ${EZIG} ]] && return
+
+	if [[ -n ${EZIG_OVERWRITE} ]]; then
+		export EZIG="${EZIG_OVERWRITE}"
+		return
+	fi
+
+	local candidates candidate selected selected_ver
+
+	candidates=$(compgen -c zig-)
+
+	for candidate in ${candidates}; do
+		if [[ ! ${candidate} =~ zig(-bin)?-([.0-9]+) ]]; then
+			continue
+		fi
+
+		local ver
+		if (( ${#BASH_REMATCH[@]} == 3 )); then
+			ver="${BASH_REMATCH[2]}"
+		else
+			ver="${BASH_REMATCH[1]}"
+		fi
+
+		if [[ -n ${EZIG_EXACT_VER} ]]; then
+			ver_test "${ver}" -ne "${EZIG_EXACT_VER}" && continue
+
+			selected="${candidate}"
+			selected_ver="${ver}"
+			break
+		fi
+
+		if [[ -n ${EZIG_MIN} ]] \
+			   && ver_test "${ver}" -lt "${EZIG_MIN}"; then
+			# Candidate does not satisfy EZIG_MIN condition.
+			continue
+		fi
+
+		if [[ -n ${EZIG_MAX_EXCLUSIVE} ]] \
+			   && ver_test "${ver}" -ge "${EZIG_MAX_EXCLUSIVE}"; then
+			# Candidate does not satisfy EZIG_MAX_EXCLUSIVE condition.
+			continue
+		fi
+
+		if [[ -n ${selected_ver} ]] \
+			   && ver_test "${selected_ver}" -gt "${ver}"; then
+			# Candidate is older than the currently selected candidate.
+			continue
+		fi
+
+		selected="${candidate}"
+		selected_ver="${ver}"
+	done
+
+	if [[ -z ${selected} ]]; then
+		die "Could not find (suitable) zig installation in PATH"
+	fi
+
+	export EZIG="${selected}"
+	export EZIG_VER="${ver}"
+}
+
+# Invoke zig with the optionally provided arguments.
+ezig() {
+	zig-set_EZIG
+
+	# Unfortunately, we cannot add more args here, since syntax is different
+	# for every subcommands. Yes, even target/cpu :( f.i. :
+	# -target/-mcpu for zig build-exe vs -Dtarget/-Dcpu for zig build-
+	# -OReleaseSafe for zig build-exe vs -DReleaseSafe for zig build
+	# (or even none, if hardcoded by upstream so choice is -Drelease=true/false)
+	# Ofc we can patch this, but still...
+
+	edo "${EZIG}" "${@}"
+}
+
+src_unpack() {
+	git-r3_src_unpack
+	cd "${S}" || die
+	# "zig build" doesn't have "fetch" subcommand yet
+	ezig build --help || die "Fetching Zig modules failed"
+}
+
+src_compile() {
+	ezig build -Doptimize=ReleaseSafe --verbose || die
+}
+
+src_install() {
+	DESTDIR="${ED}" ezig build install --prefix /usr -Doptimize=ReleaseSafe --verbose || die
+	dodoc README.md
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-01 11:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 11:40 [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/poop/ Florian Schmaus
2025-04-01 11:40 ` [gentoo-commits] repo/proj/guru:master " Florian Schmaus
  -- strict thread matches above, loose matches on Subject: below --
2025-04-01 11:40 [gentoo-commits] repo/proj/guru:dev " Florian Schmaus
2025-04-01 11:40 ` [gentoo-commits] repo/proj/guru:master " Florian Schmaus
2024-12-15 18:10 Julien Roy
2024-08-01 21:51 Lucio Sauer
2023-06-15  9:33 Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox