media-libs/libcdaudio: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sat, 28 Jul 2018 17:34:07 +0000 (19:34 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 11 Aug 2018 10:35:10 +0000 (12:35 +0200)
Closes: https://github.com/gentoo/gentoo/pull/9368
Package-Manager: Portage-2.3.45, Repoman-2.3.10

media-libs/libcdaudio/files/libcdaudio-0.99.12-bug245649.patch
media-libs/libcdaudio/libcdaudio-0.99.12-r2.ebuild [new file with mode: 0644]

index 988c4c21c85d38803dafdebd5a2bb94f19a2c215..e859c0460ec5b8eb6801837bbdcc5818bab8fec7 100644 (file)
@@ -1,5 +1,5 @@
---- src/cddb.c
-+++ src/cddb.c
+--- a/src/cddb.c
++++ b/src/cddb.c
 @@ -1679,7 +1679,7 @@ cddb_read_disc_data(int cd_desc, struct disc_data *outdata)
        free(file);
         
diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r2.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r2.ebuild
new file mode 100644 (file)
index 0000000..aab9132
--- /dev/null
@@ -0,0 +1,22 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Library of cd audio related routines"
+HOMEPAGE="http://libcdaudio.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
+       "${FILESDIR}"/${P}-bug245649.patch
+)
+
+src_configure() {
+       econf --enable-threads
+}