summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-04-08 06:48:32 +0100
committerSam James <sam@gentoo.org>2024-04-08 06:49:56 +0100
commitb935417e4654d43e89c5f8b08e67bac113afbeba (patch)
tree89274db4da6f47803a62fd2b97f503130b7f69c8 /media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild
parentmedia-libs/netpbm: disable locale test on musl (diff)
downloadgentoo-b935417e4654d43e89c5f8b08e67bac113afbeba.tar.gz
gentoo-b935417e4654d43e89c5f8b08e67bac113afbeba.tar.bz2
gentoo-b935417e4654d43e89c5f8b08e67bac113afbeba.zip
media-sound/cdparanoia: EAPI 8, add pkg-config file
I'm porting media-sound/grip's ebuild to meson and it uses pkg-config to look for cdparanoia. Fedora have the patch I'm adding here to add a .pc file and it looks like it is upstream, just not in a release. Unfortunately, cdparanoia doesn't seem to have been migrated to xiph's gitlab. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild')
-rw-r--r--media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild b/media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild
new file mode 100644
index 000000000000..5b851fbabf37
--- /dev/null
+++ b/media-sound/cdparanoia/cdparanoia-3.10.2-r8.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools libtool toolchain-funcs multilib-minimal
+
+MY_P="${PN}-III-$(ver_cut 2-3)"
+DESCRIPTION="An advanced CDDA reader with error correction"
+HOMEPAGE="https://www.xiph.org/paranoia"
+SRC_URI="
+ https://downloads.xiph.org/releases/${PN}/${MY_P}.src.tgz
+ https://dev.gentoo.org/~pacho/${PN}/${P}-patches.tar.xz
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+IDEPEND="app-eselect/eselect-cdparanoia"
+
+PATCHES=(
+ # Patches from previous patchset + Fedora + Debian
+ "${WORKDIR}"/patches
+ # bug #713740
+ "${FILESDIR}"/${PN}-missing-sys_types_h.patch
+ "${FILESDIR}"/cdparanoia-pkgconfig.patch
+)
+
+src_prepare() {
+ default
+
+ mv configure.guess config.guess || die
+ mv configure.sub config.sub || die
+
+ sed -i -e '/configure.\(guess\|sub\)/d' configure.in || die
+
+ mv configure.{in,ac} || die
+ eautoconf
+ elibtoolize
+
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ tc-export AR CC RANLIB
+ econf
+}
+
+multilib_src_compile() {
+ emake OPT="${CFLAGS} -I${S}/interface"
+ use static-libs && emake lib OPT="${CFLAGS} -I${S}/interface"
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ mv "${ED}"/usr/bin/${PN}{,-paranoia} || die
+}
+
+pkg_postinst() {
+ eselect ${PN} update ifunset
+}
+
+pkg_postrm() {
+ eselect ${PN} update ifunset
+}