summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-11-09 20:51:15 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2024-11-10 10:30:44 +0100
commitbe1082bc270174ccb35c57cab48076a7bac57b9e (patch)
tree92f316c2a41b258e67f2c88d2670582dc40222e7 /media-libs
parentdev-lang/pypy: Stabilize 2.7.7.3.17 x86, #943161 (diff)
downloadgentoo-be1082bc270174ccb35c57cab48076a7bac57b9e.tar.gz
gentoo-be1082bc270174ccb35c57cab48076a7bac57b9e.tar.bz2
gentoo-be1082bc270174ccb35c57cab48076a7bac57b9e.zip
media-libs/soxr: update EAPI 7 -> 8
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/soxr/soxr-0.1.3-r2.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/media-libs/soxr/soxr-0.1.3-r2.ebuild b/media-libs/soxr/soxr-0.1.3-r2.ebuild
new file mode 100644
index 000000000000..68d93c60de26
--- /dev/null
+++ b/media-libs/soxr/soxr-0.1.3-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${P}-Source"
+inherit cmake-multilib
+
+DESCRIPTION="SoX Resampler library"
+HOMEPAGE="https://sourceforge.net/p/soxr/wiki/Home/"
+SRC_URI="https://downloads.sourceforge.net/soxr/${MY_P}.tar.xz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86"
+IUSE="examples test"
+
+# CMakeLists.txt builds examples if either test or examples USE flag is enabled.
+REQUIRED_USE="test? ( examples )"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.1.1-nodoc.patch"
+ "${FILESDIR}/${P}-fix-pkgconfig.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_EXAMPLES="$(usex examples)"
+ -DBUILD_TESTS="$(usex test)"
+ )
+ if use examples ; then
+ mycmakeargs+=(
+ -DDOC_INSTALL_DIR="/usr/share/doc/${PF}"
+ )
+ fi
+ cmake-multilib_src_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+ if use examples ; then
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}