public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_flac/files/, media-libs/dr_flac/
@ 2023-12-07  2:49 Lucio Sauer
  0 siblings, 0 replies; 2+ messages in thread
From: Lucio Sauer @ 2023-12-07  2:49 UTC (permalink / raw
  To: gentoo-commits

commit:     4c4aef4961e82ecf55f0b374a82025ecdb510f16
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Dec  7 02:48:08 2023 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Dec  7 02:48:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c4aef49

media-libs/dr_flac: drop 0.12.41

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 media-libs/dr_flac/Manifest                        |   3 -
 media-libs/dr_flac/dr_flac-0.12.41.ebuild          | 117 ---------------------
 .../dr_flac/files/dr_flac-0.12.41-docs.tar.xz      | Bin 6044 -> 0 bytes
 3 files changed, 120 deletions(-)

diff --git a/media-libs/dr_flac/Manifest b/media-libs/dr_flac/Manifest
index 55aaf87fde..7a799aa45c 100644
--- a/media-libs/dr_flac/Manifest
+++ b/media-libs/dr_flac/Manifest
@@ -1,5 +1,2 @@
-DIST dr_flac-0.12.41-testbench.gh.tar.gz 209727087 BLAKE2B 72547637782c4af9eb914e417896d1c6c0b403ac9996dbcea4de7d3343e7d39072a8df2af397ef5ace81a85b0214015d4b73d40b06b072df9d60ea5dcb0bbe8a SHA512 990aed238e5158b1a1e03d67316416fc1b33cd9e1653bef3295ae6abd016f09060f87627904424afd2855886d1f43fc475259f4ec4d71e9e7e4f0f4158a819ac
-DIST dr_flac-0.12.41.gh.tar.gz 518329 BLAKE2B c01d2dd3a7397251589e2e2d0be14b6005e21f77b7453990bb340dd3c87808a8b64e033073380b832a377c614775cf7f8666df56b74b4fb1b1fd115add43b296 SHA512 9f0d2a162358b949bf9b35d92dc2f5845830c31014f2bc66c197240db5d840fcf85e9feec86b4678d05948e41e94ca1b9e909edc648e82ab7ba9ade195cc3a40
-DIST dr_flac-0.12.41.h 525519 BLAKE2B 4433e0406e8f4f7d301ebd7336d76b72c7b27767b570ab3807eeafab231274269709105bb0eb9995a6a205e94b0e38691208136ca71703a9273882b4a8313f36 SHA512 1cf8d2acc80ce2d4f417b7f34b5fc92b9c88678a4b44c6b4a0f8a22c7497ddc8bb9ba79aa860932d436ae60253455391cf6f843713fa0a8d9fb36d29602a4e3a
 DIST dr_flac-0.12.42-testbench.gh.tar.gz 209728991 BLAKE2B 7e25dd97bfb0099fa6f76c6b3de65ce6ce951c9b88e0f963319d8a7981237c2b1b6510706c8c4c6cd38e0672b6c0e7213baf8d9448d96b74e495625f0c61a0ea SHA512 4aa8b0061d5b5691dfac49490309020918253965ec05353ef8d12b660bc9d484e500859c0f733ce51630867bf5469893417367d04ce098a60c18a47831384dee
 DIST dr_flac-0.12.42.gh.tar.gz 518465 BLAKE2B 2f25cf2806e443eac7cc1de9f8cc59c7cee2a8be9910195c39e0665a938368a92d66e9630281b666068bbb587f0c35d7f1bf4ce2ee6540c6dccddf5984466fe1 SHA512 aaae58f27d1b215a7d3be3fcd26ab9b3c3f59e44c027bd6406c4ad47acadfca276326d6a179ca08c87ba9ba21b0de26bf600a5fd75dc54af90cac72b8db92139

diff --git a/media-libs/dr_flac/dr_flac-0.12.41.ebuild b/media-libs/dr_flac/dr_flac-0.12.41.ebuild
deleted file mode 100644
index 287d210e73..0000000000
--- a/media-libs/dr_flac/dr_flac-0.12.41.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="Single-header FLAC audio decoder library"
-HOMEPAGE="https://github.com/mackron/dr_libs/"
-declare -A COMMITS=(
-	[dr_flac]="353bdc08bd90b24832a5eb149b2c4fd770a650f6"
-	[testbench]="4a19dc2ddb9ee3ac083abaa99faa3a0b7230f833"
-)
-SRC_URI="!test? ( https://raw.githubusercontent.com/mackron/dr_libs/${COMMITS[dr_flac]}/dr_flac.h -> ${P}.h )
-		  test? ( https://github.com/mackron/dr_libs/archive/${COMMITS[dr_flac]}.tar.gz -> ${P}.gh.tar.gz
-				  https://github.com/ietf-wg-cellar/flac-test-files/archive/${COMMITS[testbench]}.tar.gz
-				  -> ${P}-testbench.gh.tar.gz )"
-
-LICENSE="|| ( MIT-0 public-domain )"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="test? ( media-libs/flac )"
-
-TESTCASES=(
-	dr_flac_seeking.c
-	dr_flac_{decoding,test_0}.{c,cpp}
-)
-
-S="${WORKDIR}/dr_libs-${COMMITS[dr_flac]}"
-
-src_unpack() {
-	default
-	unpack "${FILESDIR}"/${P}-docs.tar.xz
-}
-
-src_prepare() {
-	if use test; then
-		# Remove some unused parts of the source tree that could contribute different
-		# (but acceptable) license terms if they were used—just to prove that we do not
-		# use them.
-		rm -rv old || die
-
-		# Sanitize testbench and move to expected location
-		find "${WORKDIR}"/flac-test-files-${COMMITS[testbench]}/subset -type f \
-			 \! -name "*.flac" -delete || die
-		mv -T "${WORKDIR}"/flac-test-files-${COMMITS[testbench]}/subset \
-		   tests/testvectors/flac/testbench || die
-
-		# Disable profiling tests as they are not relevant downstream.
-		for tcase in ${TESTCASES[@]}; do
-			sed -i "s/doProfiling = DRFLAC_TRUE/doProfiling = DRFLAC_FALSE/" \
-				tests/flac/$tcase || die "sed failed on tests/flac/$tcase"
-		done
-
-	fi
-	default
-}
-
-src_compile() {
-	if use test; then
-		local MY_{C,CC,CXX,BUILD,FLAGS}
-		MY_CC=$(tc-getCC)
-		MY_CXX=$(tc-getCXX)
-
-		pushd tests > /dev/null || die
-		for tcase in ${TESTCASES[@]}; do
-			einfo "Compiling test case ${tcase}."
-			case ${tcase} in
-				*.cpp)
-					MY_C=${MY_CXX}
-					MY_FLAGS=${CXXFLAGS}
-					;;
-				*.c)
-					MY_C=${MY_CC}
-					MY_FLAGS=${CFLAGS}
-					;;
-				*)
-					die "Unknown test case ${tcase}"
-					;;
-			esac
-			MY_BUILD="${MY_C} flac/${tcase} -o bin/${tcase} ${MY_FLAGS} ${CPPFLAGS}"
-			case ${tcase%.*} in
-				dr_flac_seeking)
-				;&
-				dr_flac_decoding)
-					MY_BUILD="${MY_BUILD} -lFLAC ${LDFLAGS}"
-					;;
-				*)
-					;;
-			esac
-			${MY_BUILD} || die "Build failed: ${MY_BUILD}"
-		done
-		popd || die
-	fi
-}
-
-src_test() {
-	pushd tests > /dev/null || die
-	for tcase in ${TESTCASES[@]}; do
-		einfo "Running test case ${tcase}."
-		./bin/${tcase} || die "Test case ${tcase} failed."
-	done
-	popd || die
-}
-
-src_install() {
-	einstalldocs
-	if use test; then
-		doheader dr_flac.h
-	else
-		newheader "${DISTDIR}"/${P}.h dr_flac.h
-	fi
-}

diff --git a/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz b/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz
deleted file mode 100644
index d0164f263a..0000000000
Binary files a/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz and /dev/null differ


^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_flac/files/, media-libs/dr_flac/
@ 2023-09-03 22:24 Lucio Sauer
  0 siblings, 0 replies; 2+ messages in thread
From: Lucio Sauer @ 2023-09-03 22:24 UTC (permalink / raw
  To: gentoo-commits

commit:     69ef98704288b2637e52bbc5f552569930a2685f
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Sep  3 22:23:22 2023 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Sep  3 22:24:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=69ef9870

media-libs/dr_flac: new package, add 0.12.41

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 media-libs/dr_flac/Manifest                        |   3 +
 media-libs/dr_flac/dr_flac-0.12.41.ebuild          | 117 +++++++++++++++++++++
 .../dr_flac/files/dr_flac-0.12.41-docs.tar.xz      | Bin 0 -> 6044 bytes
 media-libs/dr_flac/metadata.xml                    |  11 ++
 4 files changed, 131 insertions(+)

diff --git a/media-libs/dr_flac/Manifest b/media-libs/dr_flac/Manifest
new file mode 100644
index 0000000000..f603b6ed0a
--- /dev/null
+++ b/media-libs/dr_flac/Manifest
@@ -0,0 +1,3 @@
+DIST dr_flac-0.12.41-testbench.gh.tar.gz 209727087 BLAKE2B 72547637782c4af9eb914e417896d1c6c0b403ac9996dbcea4de7d3343e7d39072a8df2af397ef5ace81a85b0214015d4b73d40b06b072df9d60ea5dcb0bbe8a SHA512 990aed238e5158b1a1e03d67316416fc1b33cd9e1653bef3295ae6abd016f09060f87627904424afd2855886d1f43fc475259f4ec4d71e9e7e4f0f4158a819ac
+DIST dr_flac-0.12.41.gh.tar.gz 518329 BLAKE2B c01d2dd3a7397251589e2e2d0be14b6005e21f77b7453990bb340dd3c87808a8b64e033073380b832a377c614775cf7f8666df56b74b4fb1b1fd115add43b296 SHA512 9f0d2a162358b949bf9b35d92dc2f5845830c31014f2bc66c197240db5d840fcf85e9feec86b4678d05948e41e94ca1b9e909edc648e82ab7ba9ade195cc3a40
+DIST dr_flac-0.12.41.h 525519 BLAKE2B 4433e0406e8f4f7d301ebd7336d76b72c7b27767b570ab3807eeafab231274269709105bb0eb9995a6a205e94b0e38691208136ca71703a9273882b4a8313f36 SHA512 1cf8d2acc80ce2d4f417b7f34b5fc92b9c88678a4b44c6b4a0f8a22c7497ddc8bb9ba79aa860932d436ae60253455391cf6f843713fa0a8d9fb36d29602a4e3a

diff --git a/media-libs/dr_flac/dr_flac-0.12.41.ebuild b/media-libs/dr_flac/dr_flac-0.12.41.ebuild
new file mode 100644
index 0000000000..287d210e73
--- /dev/null
+++ b/media-libs/dr_flac/dr_flac-0.12.41.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Single-header FLAC audio decoder library"
+HOMEPAGE="https://github.com/mackron/dr_libs/"
+declare -A COMMITS=(
+	[dr_flac]="353bdc08bd90b24832a5eb149b2c4fd770a650f6"
+	[testbench]="4a19dc2ddb9ee3ac083abaa99faa3a0b7230f833"
+)
+SRC_URI="!test? ( https://raw.githubusercontent.com/mackron/dr_libs/${COMMITS[dr_flac]}/dr_flac.h -> ${P}.h )
+		  test? ( https://github.com/mackron/dr_libs/archive/${COMMITS[dr_flac]}.tar.gz -> ${P}.gh.tar.gz
+				  https://github.com/ietf-wg-cellar/flac-test-files/archive/${COMMITS[testbench]}.tar.gz
+				  -> ${P}-testbench.gh.tar.gz )"
+
+LICENSE="|| ( MIT-0 public-domain )"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( media-libs/flac )"
+
+TESTCASES=(
+	dr_flac_seeking.c
+	dr_flac_{decoding,test_0}.{c,cpp}
+)
+
+S="${WORKDIR}/dr_libs-${COMMITS[dr_flac]}"
+
+src_unpack() {
+	default
+	unpack "${FILESDIR}"/${P}-docs.tar.xz
+}
+
+src_prepare() {
+	if use test; then
+		# Remove some unused parts of the source tree that could contribute different
+		# (but acceptable) license terms if they were used—just to prove that we do not
+		# use them.
+		rm -rv old || die
+
+		# Sanitize testbench and move to expected location
+		find "${WORKDIR}"/flac-test-files-${COMMITS[testbench]}/subset -type f \
+			 \! -name "*.flac" -delete || die
+		mv -T "${WORKDIR}"/flac-test-files-${COMMITS[testbench]}/subset \
+		   tests/testvectors/flac/testbench || die
+
+		# Disable profiling tests as they are not relevant downstream.
+		for tcase in ${TESTCASES[@]}; do
+			sed -i "s/doProfiling = DRFLAC_TRUE/doProfiling = DRFLAC_FALSE/" \
+				tests/flac/$tcase || die "sed failed on tests/flac/$tcase"
+		done
+
+	fi
+	default
+}
+
+src_compile() {
+	if use test; then
+		local MY_{C,CC,CXX,BUILD,FLAGS}
+		MY_CC=$(tc-getCC)
+		MY_CXX=$(tc-getCXX)
+
+		pushd tests > /dev/null || die
+		for tcase in ${TESTCASES[@]}; do
+			einfo "Compiling test case ${tcase}."
+			case ${tcase} in
+				*.cpp)
+					MY_C=${MY_CXX}
+					MY_FLAGS=${CXXFLAGS}
+					;;
+				*.c)
+					MY_C=${MY_CC}
+					MY_FLAGS=${CFLAGS}
+					;;
+				*)
+					die "Unknown test case ${tcase}"
+					;;
+			esac
+			MY_BUILD="${MY_C} flac/${tcase} -o bin/${tcase} ${MY_FLAGS} ${CPPFLAGS}"
+			case ${tcase%.*} in
+				dr_flac_seeking)
+				;&
+				dr_flac_decoding)
+					MY_BUILD="${MY_BUILD} -lFLAC ${LDFLAGS}"
+					;;
+				*)
+					;;
+			esac
+			${MY_BUILD} || die "Build failed: ${MY_BUILD}"
+		done
+		popd || die
+	fi
+}
+
+src_test() {
+	pushd tests > /dev/null || die
+	for tcase in ${TESTCASES[@]}; do
+		einfo "Running test case ${tcase}."
+		./bin/${tcase} || die "Test case ${tcase} failed."
+	done
+	popd || die
+}
+
+src_install() {
+	einstalldocs
+	if use test; then
+		doheader dr_flac.h
+	else
+		newheader "${DISTDIR}"/${P}.h dr_flac.h
+	fi
+}

diff --git a/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz b/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz
new file mode 100644
index 0000000000..d0164f263a
Binary files /dev/null and b/media-libs/dr_flac/files/dr_flac-0.12.41-docs.tar.xz differ

diff --git a/media-libs/dr_flac/metadata.xml b/media-libs/dr_flac/metadata.xml
new file mode 100644
index 0000000000..6b41d45a1f
--- /dev/null
+++ b/media-libs/dr_flac/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>watermanpaint@posteo.net</email>
+    <name>Lucio Sauer</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">mackron/dr_libs</remote-id>
+  </upstream>
+</pkgmetadata>


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

end of thread, other threads:[~2023-12-07  2:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07  2:49 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_flac/files/, media-libs/dr_flac/ Lucio Sauer
  -- strict thread matches above, loose matches on Subject: below --
2023-09-03 22:24 Lucio Sauer

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