Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libcdaudio/, media-libs/libcdaudio/files/
Date: Wed, 23 Feb 2022 15:42:14
Message-Id: 1645630911.c9a7edb15e642ddc4ca6cac06c758bc0fe3c4ef0.bkohler@gentoo
1 commit: c9a7edb15e642ddc4ca6cac06c758bc0fe3c4ef0
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 23 15:40:27 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 23 15:41:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a7edb1
7
8 media-libs/libcdaudio: fix hardcoded /usr/lib in libcdaudio-config
9
10 Bug: https://bugs.gentoo.org/832199
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 .../files/libcdaudio-0.99.12-libdir-fix.patch | 12 ++++++++++
15 media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild | 28 ++++++++++++++++++++++
16 2 files changed, 40 insertions(+)
17
18 diff --git a/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch b/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch
19 new file mode 100644
20 index 000000000000..96ee6fabf69d
21 --- /dev/null
22 +++ b/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch
23 @@ -0,0 +1,12 @@
24 +diff -ur a/libcdaudio-config.in b/libcdaudio-config.in
25 +--- a/libcdaudio-config.in 2022-02-23 09:34:38.948920631 -0600
26 ++++ b/libcdaudio-config.in 2022-02-23 09:34:56.239410252 -0600
27 +@@ -49,7 +49,7 @@
28 + echo @LIB_LDADD@
29 + ;;
30 + --libs)
31 +- libdir=-L${exec_prefix}/lib
32 ++ libdir=-L${exec_prefix}@libdir@
33 + echo $libdir -lcdaudio @LIBS@
34 + ;;
35 + *)
36
37 diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild
38 new file mode 100644
39 index 000000000000..041695340a12
40 --- /dev/null
41 +++ b/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild
42 @@ -0,0 +1,28 @@
43 +# Copyright 1999-2022 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +DESCRIPTION="Library of cd audio related routines"
49 +HOMEPAGE="http://libcdaudio.sourceforge.net/"
50 +SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"
51 +
52 +LICENSE="GPL-2"
53 +SLOT="0"
54 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
55 +IUSE=""
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
59 + "${FILESDIR}"/${P}-bug245649.patch
60 + "${FILESDIR}"/${P}-libdir-fix.patch
61 +)
62 +
63 +src_configure() {
64 + econf --enable-threads --disable-static
65 +}
66 +
67 +src_install() {
68 + default
69 + find "${ED}" -name '*.la' -delete || die
70 +}