summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2019-11-10 16:42:00 +0100
committerPacho Ramos <pacho@gentoo.org>2019-11-10 16:50:59 +0100
commit24f4db73e7945860ab167194a736881b1a95b55a (patch)
treeff909f7b051f9887457fe53f33fb8402d09fb66b
parentdev-util/cunit: Don't use deprecated eclass func, rename configure.in (diff)
downloadgentoo-24f4db73e7945860ab167194a736881b1a95b55a.tar.gz
gentoo-24f4db73e7945860ab167194a736881b1a95b55a.tar.bz2
gentoo-24f4db73e7945860ab167194a736881b1a95b55a.zip
media-sound/cdparanoia: Fix build with format-security...
Update ebuild, rename configure.in, pull fixes from Fedora and Debian Closes: https://bugs.gentoo.org/517584 Closes: https://bugs.gentoo.org/645802 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
-rw-r--r--media-sound/cdparanoia/Manifest1
-rw-r--r--media-sound/cdparanoia/cdparanoia-3.10.2-r7.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/media-sound/cdparanoia/Manifest b/media-sound/cdparanoia/Manifest
index b04b7cc0dcd..34146febd51 100644
--- a/media-sound/cdparanoia/Manifest
+++ b/media-sound/cdparanoia/Manifest
@@ -1,2 +1,3 @@
+DIST cdparanoia-3.10.2-patches.tar.xz 12228 BLAKE2B 0a78bf713807ed738110543c0e4a8fb5af8add5c77b93b3cf219b1dd19d1317d0bf0197c9bf1cc2217b37c08ab1ff576982a0408d2c0adf6be79f25e35e0b36c SHA512 48ef57334f48d8b7449ea5ca361666d1a618529bf2e78182026fa09a94cd55865d18f4925369bf9de2c251d9420c0edfae17eb8726c157bb6eafd8b4fd410a5a
DIST cdparanoia-III-10.2-patches-2.tbz2 6242 BLAKE2B 6eb0f3c3a331421497e406df969de61d42590f4e8ffff13ffc212ec4a03170b1e02e00322c5c4f2042e5cc4be2cffff58ec8b9b57d851d5df8bebc3fb88ac913 SHA512 523a9ef9f3de263236aad6da102b807a6620cde8767e297e54dcd552f59077d959a89187bc82ad71c577fa66c4862d7c651e922b8b8b8369dd63685cbda9cb74
DIST cdparanoia-III-10.2.src.tgz 183236 BLAKE2B 295065388e45371329ea7b04bac03c90fd854478d34eb46fa95db03054a1a21effe7863e5065a9148e558796c352d5087b6ef1c3c4c20342e66abd7d2c9eef85 SHA512 4ab0a0f5ef44d56c1af72d1fc1035566a1a89c4eeddb9e8baea675fe51c06138d913342afc8bed167d9fa55672fa25a2763ce21f7e24c1232e4739aff20733a7
diff --git a/media-sound/cdparanoia/cdparanoia-3.10.2-r7.ebuild b/media-sound/cdparanoia/cdparanoia-3.10.2-r7.ebuild
new file mode 100644
index 00000000000..fdeb82c9e0c
--- /dev/null
+++ b/media-sound/cdparanoia/cdparanoia-3.10.2-r7.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+RDEPEND="app-eselect/eselect-cdparanoia"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # Patches from previus patchset + Fedora + Debian
+ eapply "${WORKDIR}"/patches/*.patch
+
+ mv configure.guess config.guess
+ mv configure.sub config.sub
+
+ 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}
+}
+
+pkg_postinst() {
+ eselect ${PN} update ifunset
+}
+
+pkg_postrm() {
+ eselect ${PN} update ifunset
+}