public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
@ 2022-10-17 11:26 Haelwenn Monnier
  0 siblings, 0 replies; 8+ messages in thread
From: Haelwenn Monnier @ 2022-10-17 11:26 UTC (permalink / raw
  To: gentoo-commits

commit:     d04ea1ecf1a757aade2b847c4b3144b09a75f00d
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Wed Oct 12 06:53:09 2022 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed Oct 12 06:53:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d04ea1ec

app-benchmark/phoronix-test-suite: new package, add 9999

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 app-benchmarks/phoronix-test-suite/metadata.xml    |  10 ++
 .../phoronix-test-suite-9999.ebuild                | 128 +++++++++++++++++++++
 2 files changed, 138 insertions(+)

diff --git a/app-benchmarks/phoronix-test-suite/metadata.xml b/app-benchmarks/phoronix-test-suite/metadata.xml
new file mode 100644
index 000000000..f957cf2b7
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>zdanevich.vitaly@ya.ru</email>
+		<name>Vitaly Zdanevich</name>
+	</maintainer>
+	<use>
+	</use>
+</pkgmetadata>

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
new file mode 100644
index 000000000..365ff5654
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# shellcheck disable=SC2034
+
+EAPI=8
+
+inherit bash-completion-r1 xdg-utils
+
+DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
+HOMEPAGE="http://www.phoronix-test-suite.com"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+EGIT3_STORE_DIR="${T}"
+inherit git-r3
+SRC_URI=""
+KEYWORDS=""
+
+IUSE="sdl"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+		app-arch/p7zip
+		media-libs/libpng
+		>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,sockets,ssl,truetype,xml,zip,zlib]
+		www-servers/apache
+		x11-base/xorg-server
+		sdl? (
+			media-libs/libsdl
+			media-libs/sdl-net
+			media-libs/sdl-image
+			media-libs/libsdl2
+			media-libs/sdl2-net
+			media-libs/sdl2-image
+			media-libs/sdl2-mixer
+
+		)"
+
+check_php_config()
+{
+	local slot
+	for slot in $(eselect --brief php list cli); do
+		local php_dir="/etc/php/cli-${slot}"
+
+		if [[ -f "${EROOT%}/${php_dir}/php.ini" ]]; then
+			dodir "${php_dir}"
+			cp -f "${EROOT%}/${php_dir}/php.ini" "${ED%}/${php_dir}/php.ini" \
+					|| die "cp failed: copy php.ini file"
+			sed -i -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' "${ED%}/${php_dir}/php.ini" \
+					|| die "sed failed: modify php.ini file"
+		elif [[ "$(eselect php show cli)" == "${slot}" ]]; then
+			ewarn "${slot} does not have a php.ini file."
+			ewarn "${PN} needs the 'allow_url_fopen' option set to \"On\""
+			ewarn "for downloading to work properly."
+			ewarn
+		else
+			elog "${slot} does not have a php.ini file."
+			elog "${PN} may need the 'allow_url_fopen' option set to \"On\""
+			elog "for downloading to work properly if you switch to ${slot}"
+			elog
+		fi
+	done
+}
+
+get_optional_dependencies()
+{
+	(($# == 1)) || die "${FUNCNAME[0]}(): invalid number of arguments: ${#} (1)"
+
+	local -a array_package_names
+	local field_value ifield package_generic_name optional_packages_xmlline package_names installable_packages=""
+	local package_close_regexp="</Package>" \
+		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
+		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
+
+	line=0
+	while IFS=$'\n' read -r optional_packages_xmlline; do
+		if [[ "${optional_packages_xmlline}" =~ ${package_generic_name_regexp} ]]; then
+			package_generic_name="$(echo "${optional_packages_xmlline}" | sed -r "s@${package_generic_name_regexp}@@g")"
+		elif [[ "${optional_packages_xmlline}" =~ ${package_names_regexp} ]]; then
+			package_names="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e 's@(^[[:blank:]]+|[[:blank:]]+$)$@@g' )"
+			ifield=0
+			# shellcheck disable=SC2206
+			array_package_names=( ${package_names} )
+			for (( ifield=0 ; ifield < ${#array_package_names[@]} ; ++ifield )); do
+				field_value="${array_package_names[ifield]}"
+				[[ ${field_value} =~ ^.+/.+$ ]]	|| continue	# skip invalid package atoms
+
+				if ! has_version "${field_value}"; then
+					installable_packages="${installable_packages}${installable_packages:+ }${field_value}"
+				fi
+			done
+		elif [[ "${optional_packages_xmlline}" =~ ${package_close_regexp} && -n "${installable_packages}" ]]; then
+			ewarn "  ${package_generic_name}: ${installable_packages}"
+			installable_packages=""
+		fi
+	done <<< "${1}"
+}
+
+src_prepare() {
+	# BASH completion helper function "have" test is depreciated
+	sed -i -e '/^have phoronix-test-suite &&$/d' "${S}/pts-core/static/bash_completion" \
+			|| die "sed failed: remove PTS bash completion have test"
+	# Remove all dependency resolving shell scripts - security vulnerability
+	rm -rf "${S}/pts-core/external-test-dependencies/scripts"
+	eapply_user
+}
+
+src_install() {
+	# Store the contents of this file - since it will be installed / deleted before we need it.
+	GENTOO_OPTIONAL_PKGS_XML="$(cat "${S}/pts-core/external-test-dependencies/xml/gentoo-packages.xml")"
+	newbashcomp pts-core/static/bash_completion "${PN}"
+	DESTDIR="${D}" "${S}/install-sh" "${EPREFIX%}/usr"
+
+	# Fix the cli-php config for downloading to work.
+	check_php_config
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+	xdg_mimeinfo_database_update
+
+	ewarn "${PN} has the following optional package dependencies:"
+	get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
+	unset -v GENTOO_OPTIONAL_PKGS_XML
+}


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
@ 2024-07-24  7:28 David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-07-24  7:28 UTC (permalink / raw
  To: gentoo-commits

commit:     51f21f7d796696339a5a5f3dfaf4ee0a5f51c320
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Thu Jul 18 19:38:40 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Jul 18 19:38:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51f21f7d

app-benchmarks/phoronix-test-suite: ExcessiveLineLength fix

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
index fe20c2f17..48a9e3c3d 100644
--- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -65,20 +65,21 @@ get_optional_dependencies()
 	(($# == 1)) || die "${FUNCNAME[0]}(): invalid number of arguments: ${#} (1)"
 
 	local -a array_package_names
-	local field_value ifield package_generic_name optional_packages_xmlline package_names installable_packages=""
+	local field_value ifield package_generic_name optional_packages_xmlline packages installable_packages=""
 	local package_close_regexp="</Package>" \
 		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
 		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
+		  reg="s@(^[[:blank:]]+|[[:blank:]]+$)$@@g"
 
 	line=0
 	while IFS=$'\n' read -r optional_packages_xmlline; do
 		if [[ "${optional_packages_xmlline}" =~ ${package_generic_name_regexp} ]]; then
 			package_generic_name="$(echo "${optional_packages_xmlline}" | sed -r "s@${package_generic_name_regexp}@@g")"
 		elif [[ "${optional_packages_xmlline}" =~ ${package_names_regexp} ]]; then
-			package_names="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e 's@(^[[:blank:]]+|[[:blank:]]+$)$@@g' )"
+			packages="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e "${reg}" )"
 			ifield=0
 			# shellcheck disable=SC2206
-			array_package_names=( ${package_names} )
+			array_package_names=( ${packages} )
 			for (( ifield=0 ; ifield < ${#array_package_names[@]} ; ++ifield )); do
 				field_value="${array_package_names[ifield]}"
 				[[ ${field_value} =~ ^.+/.+$ ]]	|| continue	# skip invalid package atoms


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
@ 2024-07-24  7:28 David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-07-24  7:28 UTC (permalink / raw
  To: gentoo-commits

commit:     bbcbd2a84b3407bd7277d2025edd9a2300288175
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Fri Jul 19 11:07:04 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jul 19 11:07:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bbcbd2a8

app-benchmarks/phoronix-test-suite: HttpsUrlAvailable fix

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
index 48a9e3c3d..31a304aa3 100644
--- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -8,7 +8,7 @@ EAPI=8
 inherit bash-completion-r1 git-r3 xdg-utils
 
 DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
-HOMEPAGE="http://www.phoronix-test-suite.com"
+HOMEPAGE="https://www.phoronix-test-suite.com"
 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
 EGIT3_STORE_DIR="${T}"
 


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
@ 2024-07-24  7:28 David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-07-24  7:28 UTC (permalink / raw
  To: gentoo-commits

commit:     a1fe8431a2f5c07c889a9377f765abc0d5ba8bf5
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Fri Jul 19 11:25:02 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jul 19 11:25:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1fe8431

app-benchmarks/phoronix-test-suite: fix my miskate sed: -e expression #2, char 36: unterminated s command

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
index 254dfad84..a30654b5f 100644
--- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -69,7 +69,7 @@ get_optional_dependencies()
 	local package_close_regexp="</Package>" \
 		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
 		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
-		  reg="s@(^[[:blank:]]+|[[:blank:]]+$)$@@g"
+		  reg='s@(^[[:blank:]]+|[[:blank:]]+$)$@@g'
 
 	line=0
 	while IFS=$'\n' read -r optional_packages_xmlline; do


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
@ 2024-07-24  7:28 David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-07-24  7:28 UTC (permalink / raw
  To: gentoo-commits

commit:     861b49693757dcabfdcaa67b8b05fd6235cfea69
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Fri Jul 19 11:17:38 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jul 19 11:17:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=861b4969

app-benchmarks/phoronix-test-suite: Please make sure to call xdg_desktop_database_update fix

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
index 31a304aa3..254dfad84 100644
--- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -117,8 +117,13 @@ src_install() {
 pkg_postinst() {
 	xdg_icon_cache_update
 	xdg_mimeinfo_database_update
+	xdg_desktop_database_update
 
 	ewarn "${PN} has the following optional package dependencies:"
 	get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
 	unset -v GENTOO_OPTIONAL_PKGS_XML
 }
+
+pkg_postrm() {
+	xdg_desktop_database_update
+}


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

* [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/phoronix-test-suite/
@ 2024-09-10 10:31 David Roman
  2024-09-10 10:49 ` [gentoo-commits] repo/proj/guru:master " David Roman
  0 siblings, 1 reply; 8+ messages in thread
From: David Roman @ 2024-09-10 10:31 UTC (permalink / raw
  To: gentoo-commits

commit:     006d0fa9dcb43d525e921396120b9c83336def3a
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Sep 10 10:30:23 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Sep 10 10:30:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=006d0fa9

app-benchmarks/phoronix-test-suite: add 10.8.4

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 app-benchmarks/phoronix-test-suite/Manifest        |   1 +
 .../phoronix-test-suite-10.8.4.ebuild              | 138 +++++++++++++++++++++
 2 files changed, 139 insertions(+)

diff --git a/app-benchmarks/phoronix-test-suite/Manifest b/app-benchmarks/phoronix-test-suite/Manifest
new file mode 100644
index 000000000..ccf730961
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/Manifest
@@ -0,0 +1 @@
+DIST phoronix-test-suite-10.8.4.gh.tar.gz 4256978 BLAKE2B 48cac4c6cc97ab2c441638d97c81e14b4632206d5ad15828cfa6b93c1af385344796a57335b3ca5b3b0d2ae65d20516a6869ae32a06da8bd8d643f7056bd6235 SHA512 59c416540d2ece85748d4c645972fcc2058c58f961d31c8b4c916351df027fa0fb69dc18dbf8b20bc22bed34bb424944226dc89423e2ec5f84ca6d890881e845

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild
new file mode 100644
index 000000000..547f9e272
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# shellcheck disable=SC2034
+
+EAPI=8
+
+inherit bash-completion-r1 xdg-utils
+
+DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
+HOMEPAGE="https://www.phoronix-test-suite.com"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+	EGIT3_STORE_DIR="${T}"
+else
+	SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz -> ${P}.gh.tar.gz"
+	KEYWORDS="~amd64"
+
+	S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+IUSE="sdl"
+
+RDEPEND="${DEPEND}
+		app-arch/p7zip
+		media-libs/libpng
+		>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
+		www-servers/apache
+		x11-base/xorg-server
+		sdl? (
+			media-libs/libsdl
+			media-libs/sdl-net
+			media-libs/sdl-image
+			media-libs/libsdl2
+			media-libs/sdl2-net
+			media-libs/sdl2-image
+			media-libs/sdl2-mixer
+
+		)"
+
+check_php_config()
+{
+	local slot
+	for slot in $(eselect --brief php list cli); do
+		local php_dir="/etc/php/cli-${slot}"
+
+		if [[ -f "${EROOT%}/${php_dir}/php.ini" ]]; then
+			dodir "${php_dir}"
+			cp -f "${EROOT%}/${php_dir}/php.ini" "${ED%}/${php_dir}/php.ini" \
+					|| die "cp failed: copy php.ini file"
+			sed -i -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' "${ED%}/${php_dir}/php.ini" \
+					|| die "sed failed: modify php.ini file"
+		elif [[ "$(eselect php show cli)" == "${slot}" ]]; then
+			ewarn "${slot} does not have a php.ini file."
+			ewarn "${PN} needs the 'allow_url_fopen' option set to \"On\""
+			ewarn "for downloading to work properly."
+			ewarn
+		else
+			elog "${slot} does not have a php.ini file."
+			elog "${PN} may need the 'allow_url_fopen' option set to \"On\""
+			elog "for downloading to work properly if you switch to ${slot}"
+			elog
+		fi
+	done
+}
+
+get_optional_dependencies()
+{
+	(($# == 1)) || die "${FUNCNAME[0]}(): invalid number of arguments: ${#} (1)"
+
+	local -a array_package_names
+	local field_value ifield package_generic_name optional_packages_xmlline packages installable_packages=""
+	local package_close_regexp="</Package>" \
+		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
+		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
+		  reg='s@(^[[:blank:]]+|[[:blank:]]+$)$@@g'
+
+	line=0
+	while IFS=$'\n' read -r optional_packages_xmlline; do
+		if [[ "${optional_packages_xmlline}" =~ ${package_generic_name_regexp} ]]; then
+			package_generic_name="$(echo "${optional_packages_xmlline}" | sed -r "s@${package_generic_name_regexp}@@g")"
+		elif [[ "${optional_packages_xmlline}" =~ ${package_names_regexp} ]]; then
+			packages="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e "${reg}" )"
+			ifield=0
+			# shellcheck disable=SC2206
+			array_package_names=( ${packages} )
+			for (( ifield=0 ; ifield < ${#array_package_names[@]} ; ++ifield )); do
+				field_value="${array_package_names[ifield]}"
+				[[ ${field_value} =~ ^.+/.+$ ]]	|| continue	# skip invalid package atoms
+
+				if ! has_version "${field_value}"; then
+					installable_packages="${installable_packages}${installable_packages:+ }${field_value}"
+				fi
+			done
+		elif [[ "${optional_packages_xmlline}" =~ ${package_close_regexp} && -n "${installable_packages}" ]]; then
+			ewarn "  ${package_generic_name}: ${installable_packages}"
+			installable_packages=""
+		fi
+	done <<< "${1}"
+}
+
+src_prepare() {
+	# BASH completion helper function "have" test is depreciated
+	sed -i -e '/^have phoronix-test-suite &&$/d' "${S}/pts-core/static/bash_completion" \
+			|| die "sed failed: remove PTS bash completion have test"
+	# Remove all dependency resolving shell scripts - security vulnerability
+	rm -rf "${S}/pts-core/external-test-dependencies/scripts"
+	eapply_user
+}
+
+src_install() {
+	# Store the contents of this file - since it will be installed / deleted before we need it.
+	GENTOO_OPTIONAL_PKGS_XML="$(cat "${S}/pts-core/external-test-dependencies/xml/gentoo-packages.xml")"
+	newbashcomp pts-core/static/bash_completion "${PN}"
+	DESTDIR="${D}" "${S}/install-sh" "${EPREFIX%}/usr"
+
+	# Fix the cli-php config for downloading to work.
+	check_php_config
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+	xdg_mimeinfo_database_update
+	xdg_desktop_database_update
+
+	ewarn "${PN} has the following optional package dependencies:"
+	get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
+	unset -v GENTOO_OPTIONAL_PKGS_XML
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+}


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
  2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/phoronix-test-suite/ David Roman
@ 2024-09-10 10:49 ` David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-09-10 10:49 UTC (permalink / raw
  To: gentoo-commits

commit:     006d0fa9dcb43d525e921396120b9c83336def3a
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Sep 10 10:30:23 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Sep 10 10:30:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=006d0fa9

app-benchmarks/phoronix-test-suite: add 10.8.4

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 app-benchmarks/phoronix-test-suite/Manifest        |   1 +
 .../phoronix-test-suite-10.8.4.ebuild              | 138 +++++++++++++++++++++
 2 files changed, 139 insertions(+)

diff --git a/app-benchmarks/phoronix-test-suite/Manifest b/app-benchmarks/phoronix-test-suite/Manifest
new file mode 100644
index 000000000..ccf730961
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/Manifest
@@ -0,0 +1 @@
+DIST phoronix-test-suite-10.8.4.gh.tar.gz 4256978 BLAKE2B 48cac4c6cc97ab2c441638d97c81e14b4632206d5ad15828cfa6b93c1af385344796a57335b3ca5b3b0d2ae65d20516a6869ae32a06da8bd8d643f7056bd6235 SHA512 59c416540d2ece85748d4c645972fcc2058c58f961d31c8b4c916351df027fa0fb69dc18dbf8b20bc22bed34bb424944226dc89423e2ec5f84ca6d890881e845

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild
new file mode 100644
index 000000000..547f9e272
--- /dev/null
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-10.8.4.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# shellcheck disable=SC2034
+
+EAPI=8
+
+inherit bash-completion-r1 xdg-utils
+
+DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
+HOMEPAGE="https://www.phoronix-test-suite.com"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+	EGIT3_STORE_DIR="${T}"
+else
+	SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz -> ${P}.gh.tar.gz"
+	KEYWORDS="~amd64"
+
+	S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+IUSE="sdl"
+
+RDEPEND="${DEPEND}
+		app-arch/p7zip
+		media-libs/libpng
+		>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
+		www-servers/apache
+		x11-base/xorg-server
+		sdl? (
+			media-libs/libsdl
+			media-libs/sdl-net
+			media-libs/sdl-image
+			media-libs/libsdl2
+			media-libs/sdl2-net
+			media-libs/sdl2-image
+			media-libs/sdl2-mixer
+
+		)"
+
+check_php_config()
+{
+	local slot
+	for slot in $(eselect --brief php list cli); do
+		local php_dir="/etc/php/cli-${slot}"
+
+		if [[ -f "${EROOT%}/${php_dir}/php.ini" ]]; then
+			dodir "${php_dir}"
+			cp -f "${EROOT%}/${php_dir}/php.ini" "${ED%}/${php_dir}/php.ini" \
+					|| die "cp failed: copy php.ini file"
+			sed -i -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' "${ED%}/${php_dir}/php.ini" \
+					|| die "sed failed: modify php.ini file"
+		elif [[ "$(eselect php show cli)" == "${slot}" ]]; then
+			ewarn "${slot} does not have a php.ini file."
+			ewarn "${PN} needs the 'allow_url_fopen' option set to \"On\""
+			ewarn "for downloading to work properly."
+			ewarn
+		else
+			elog "${slot} does not have a php.ini file."
+			elog "${PN} may need the 'allow_url_fopen' option set to \"On\""
+			elog "for downloading to work properly if you switch to ${slot}"
+			elog
+		fi
+	done
+}
+
+get_optional_dependencies()
+{
+	(($# == 1)) || die "${FUNCNAME[0]}(): invalid number of arguments: ${#} (1)"
+
+	local -a array_package_names
+	local field_value ifield package_generic_name optional_packages_xmlline packages installable_packages=""
+	local package_close_regexp="</Package>" \
+		  package_generic_name_regexp="^.*<GenericName>|</GenericName>.*$" \
+		  package_names_regexp="^.*<PackageName>|</PackageName>.*$"
+		  reg='s@(^[[:blank:]]+|[[:blank:]]+$)$@@g'
+
+	line=0
+	while IFS=$'\n' read -r optional_packages_xmlline; do
+		if [[ "${optional_packages_xmlline}" =~ ${package_generic_name_regexp} ]]; then
+			package_generic_name="$(echo "${optional_packages_xmlline}" | sed -r "s@${package_generic_name_regexp}@@g")"
+		elif [[ "${optional_packages_xmlline}" =~ ${package_names_regexp} ]]; then
+			packages="$(echo "${optional_packages_xmlline}" | sed -r -e "s@${package_names_regexp}@@g" -e "${reg}" )"
+			ifield=0
+			# shellcheck disable=SC2206
+			array_package_names=( ${packages} )
+			for (( ifield=0 ; ifield < ${#array_package_names[@]} ; ++ifield )); do
+				field_value="${array_package_names[ifield]}"
+				[[ ${field_value} =~ ^.+/.+$ ]]	|| continue	# skip invalid package atoms
+
+				if ! has_version "${field_value}"; then
+					installable_packages="${installable_packages}${installable_packages:+ }${field_value}"
+				fi
+			done
+		elif [[ "${optional_packages_xmlline}" =~ ${package_close_regexp} && -n "${installable_packages}" ]]; then
+			ewarn "  ${package_generic_name}: ${installable_packages}"
+			installable_packages=""
+		fi
+	done <<< "${1}"
+}
+
+src_prepare() {
+	# BASH completion helper function "have" test is depreciated
+	sed -i -e '/^have phoronix-test-suite &&$/d' "${S}/pts-core/static/bash_completion" \
+			|| die "sed failed: remove PTS bash completion have test"
+	# Remove all dependency resolving shell scripts - security vulnerability
+	rm -rf "${S}/pts-core/external-test-dependencies/scripts"
+	eapply_user
+}
+
+src_install() {
+	# Store the contents of this file - since it will be installed / deleted before we need it.
+	GENTOO_OPTIONAL_PKGS_XML="$(cat "${S}/pts-core/external-test-dependencies/xml/gentoo-packages.xml")"
+	newbashcomp pts-core/static/bash_completion "${PN}"
+	DESTDIR="${D}" "${S}/install-sh" "${EPREFIX%}/usr"
+
+	# Fix the cli-php config for downloading to work.
+	check_php_config
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+	xdg_mimeinfo_database_update
+	xdg_desktop_database_update
+
+	ewarn "${PN} has the following optional package dependencies:"
+	get_optional_dependencies "${GENTOO_OPTIONAL_PKGS_XML}"
+	unset -v GENTOO_OPTIONAL_PKGS_XML
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+}


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

* [gentoo-commits] repo/proj/guru:master commit in: app-benchmarks/phoronix-test-suite/
  2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev " David Roman
@ 2024-09-10 10:49 ` David Roman
  0 siblings, 0 replies; 8+ messages in thread
From: David Roman @ 2024-09-10 10:49 UTC (permalink / raw
  To: gentoo-commits

commit:     45acd9634382c83b7718bae89c1043042068c8de
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Sep 10 10:30:41 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Sep 10 10:30:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=45acd963

app-benchmarks/phoronix-test-suite: add missing php[simplexml]

Closes: https://github.com/gentoo/guru/pull/204
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
index a30654b5f..3442803d4 100644
--- a/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
+++ b/app-benchmarks/phoronix-test-suite/phoronix-test-suite-9999.ebuild
@@ -20,7 +20,7 @@ IUSE="sdl"
 RDEPEND="${DEPEND}
 		app-arch/p7zip
 		media-libs/libpng
-		>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,sockets,ssl,truetype,xml,zip,zlib]
+		>=dev-lang/php-5.3[cli,curl,gd,posix,pcntl,simplexml,sockets,ssl,truetype,xml,zip,zlib]
 		www-servers/apache
 		x11-base/xorg-server
 		sdl? (


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

end of thread, other threads:[~2024-09-10 10:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev commit in: app-benchmarks/phoronix-test-suite/ David Roman
2024-09-10 10:49 ` [gentoo-commits] repo/proj/guru:master " David Roman
  -- strict thread matches above, loose matches on Subject: below --
2024-09-10 10:31 [gentoo-commits] repo/proj/guru:dev " David Roman
2024-09-10 10:49 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-07-24  7:28 David Roman
2024-07-24  7:28 David Roman
2024-07-24  7:28 David Roman
2024-07-24  7:28 David Roman
2022-10-17 11:26 Haelwenn Monnier

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