mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
media-libs/dr_mp3: treeclean
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST dr_mp3-0.6.40.gh.tar.gz 519154 BLAKE2B 7ec2c44fca62f78d3e385894d38a7d8963d251f27fd5cb280bf6c27164a9d9ff0fbbf99bb54e5a96476a6afa6f0b15f7758792945555db443df844cc3315b3ba SHA512 9d4e4e45eb26790ed121b61cd2ec804c3cd73b2dc03a2358ddcc41c596e778e7de1cc664b57c00c35ebed62891413f156d457fc75b0d69682f10dcb7e1de97d8
|
||||
@@ -1,61 +0,0 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit eapi9-pipestatus edo toolchain-funcs
|
||||
|
||||
COMMIT="37a5ffb671a4465cfefc7ba8ce7e8ae298612e5a"
|
||||
|
||||
DESCRIPTION="Single-header MP3 audio decoder library"
|
||||
HOMEPAGE="https://github.com/mackron/dr_libs/"
|
||||
SRC_URI="https://github.com/mackron/dr_libs/archive/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
S="${WORKDIR}/dr_libs-${COMMIT}"
|
||||
|
||||
LICENSE="|| ( MIT-0 public-domain )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Unfortunately, the only other test is interactive.
|
||||
TESTCASES=(
|
||||
dr_mp3_test_0.c
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
awk '/Introduction/,/\*\//' dr_mp3.h | sed '$d' > README
|
||||
pipestatus || die
|
||||
awk '/REVISION HISTORY/,/\*\//' dr_mp3.h | sed '$d' > CHANGELOG
|
||||
pipestatus || die
|
||||
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
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user