From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E277F158041 for ; Sat, 2 Mar 2024 08:02:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8285E29C0; Sat, 2 Mar 2024 08:02:08 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 86911E29BF for ; Sat, 2 Mar 2024 08:02:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32BC8342FFD for ; Sat, 2 Mar 2024 08:02:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B48D119 for ; Sat, 2 Mar 2024 08:02:05 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1709366126.8599e9b6d792226a47a93d3ccd9d6f211d8f85f6.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/dr_mp3/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/dr_mp3/Manifest media-libs/dr_mp3/dr_mp3-0.6.39-r1.ebuild X-VCS-Directories: media-libs/dr_mp3/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 8599e9b6d792226a47a93d3ccd9d6f211d8f85f6 X-VCS-Branch: dev Date: Sat, 2 Mar 2024 08:02:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 76a81847-2df0-46af-8b68-08d7ff2e076d X-Archives-Hash: 25ac8c1dbf00b35f36df6da076196591 commit: 8599e9b6d792226a47a93d3ccd9d6f211d8f85f6 Author: Lucio Sauer posteo net> AuthorDate: Sat Mar 2 07:55:26 2024 +0000 Commit: Lucio Sauer posteo net> CommitDate: Sat Mar 2 07:55:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8599e9b6 media-libs/dr_mp3: fetch the 0.6.39 commit instead of the 0.6.38 one... Apply fix to generate documentation proposed in https://github.com/gentoo/guru/commit/b88d3ed0965aeae7ff98e453e6216e92eaea2f3c#r134692400 Signed-off-by: Lucio Sauer posteo.net> media-libs/dr_mp3/Manifest | 2 +- media-libs/dr_mp3/dr_mp3-0.6.39-r1.ebuild | 60 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/media-libs/dr_mp3/Manifest b/media-libs/dr_mp3/Manifest index 57e90a0368..49d19c3190 100644 --- a/media-libs/dr_mp3/Manifest +++ b/media-libs/dr_mp3/Manifest @@ -1 +1 @@ -DIST dr_mp3-0.6.39.gh.tar.gz 518478 BLAKE2B 4ef68a7ba24b84d5a3c87271d399b7abe9d367137d34b68f0533414f968315bafa59fc8ae6e9d40b6d82542060420e821c47ee3337fbd1589fceb0d0aded129f SHA512 2aa595a926bf72c56c3012fa7ea13ac7141952d1dc454f7135674286ba0df900554121624e7885fb242104c4bf0598826ed36952f591055033d419199a6b66fc +DIST dr_mp3-0.6.39.gh.tar.gz 518741 BLAKE2B 4ce05d125597605a0274216e95c5b76754a04ebb363234f262f65fb4f0352cd58008ef9ac816ba13fc6386d4673c677d387e18fa5925d55c63308a63ec0260c1 SHA512 3bbdba77abc321eddd5e43d2bae778b220565331ff3d8cee9c4b82baf1aacaa6a6d6ac440c562c4f32feac884963364409016db3d04833f86ae5ee4b324e3c2f diff --git a/media-libs/dr_mp3/dr_mp3-0.6.39-r1.ebuild b/media-libs/dr_mp3/dr_mp3-0.6.39-r1.ebuild new file mode 100644 index 0000000000..7d5c5d0bf3 --- /dev/null +++ b/media-libs/dr_mp3/dr_mp3-0.6.39-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo toolchain-funcs + +DESCRIPTION="Single-header MP3 audio decoder library" +HOMEPAGE="https://github.com/mackron/dr_libs/" +COMMIT="da35f9d6c7374a95353fd1df1d394d44ab66cf01" +SRC_URI="https://github.com/mackron/dr_libs/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz" +LICENSE="|| ( MIT-0 public-domain )" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +RESTRICT="!test? ( test )" + +S="${WORKDIR}/dr_libs-${COMMIT}" + +# Unfortunately, the only other test is interactive. +TESTCASES=( + dr_mp3_test_0.c +) + +src_prepare() { + sed 's/Introducation/Introduction/' -i dr_mp3.h || die + awk '/Introduction/,/\*\//' dr_wav.h | sed '$d' > README.md + assert + awk '/REVISION HISTORY/,/\*\//' dr_wav.h | sed '$d' > CHANGELOG + assert + default +} + +src_compile() { + if use test; then + local MY_{CC,BUILD} + MY_CC=$(tc-getCC) + + pushd tests > /dev/null || die + for tcase in ${TESTCASES[@]}; do + MY_BUILD="${MY_CC} mp3/${tcase} -o bin/${tcase} ${CFLAGS} ${CPPFLAGS}" + edo ${MY_BUILD} + done + popd || die + fi +} + +src_test() { + pushd tests > /dev/null || die + for tcase in ${TESTCASES[@]}; do + edo bin/${tcase} + done + popd || die +} + +src_install() { + einstalldocs + doheader dr_mp3.h +}