media-libs/libcddb: unrestrict tests

Skip tests that require network. Only one test gets run but it's better
than nothing, innit.

Bug: https://bugs.gentoo.org/157213
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-06-13 01:58:35 +01:00
parent dc7197ada8
commit 88443b7bc2

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,8 +18,6 @@ RDEPEND=">=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( app-text/doxygen )"
RESTRICT="test"
DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
MULTILIB_WRAPPED_HEADERS=( /usr/include/cddb/version.h )
@@ -30,6 +28,17 @@ PATCHES=(
src_prepare() {
default
# Need ntwork access
local file
for file in tests/check_{cache,discid,server,charset}.sh ; do
cat <<-EOF > "${file}"
#!/bin/sh
exit 77
EOF
chmod +x "${file}" || die
done
# Required for CONFIG_SHELL != bash (bug #528012)
eautoreconf
}