Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libmad/, media-libs/libmad/files/
Date: Sun, 02 Aug 2020 10:54:53
Message-Id: 1596365680.d42031b7dffd924e259a67a4cfc70f94c3ae3046.fordfrog@gentoo
1 commit: d42031b7dffd924e259a67a4cfc70f94c3ae3046
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 2 08:28:43 2020 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 2 10:54:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d42031b7
7
8 media-libs/libmad: fixed wrong version in mad.pc
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 media-libs/libmad/files/mad.pc | 2 +-
14 .../libmad/{libmad-0.15.1b-r9.ebuild => libmad-0.15.1b-r10.ebuild} | 4 +++-
15 2 files changed, 4 insertions(+), 2 deletions(-)
16
17 diff --git a/media-libs/libmad/files/mad.pc b/media-libs/libmad/files/mad.pc
18 index 14a66f55258..329276cdeec 100644
19 --- a/media-libs/libmad/files/mad.pc
20 +++ b/media-libs/libmad/files/mad.pc
21 @@ -6,6 +6,6 @@ includedir=${prefix}/include
22 Name: mad
23 Description: MPEG Audio Decoder
24 Requires:
25 -Version: 0.15.0b
26 +Version: %VERSION%
27 Libs: -L${libdir} -lmad -lm
28 Cflags: -I${includedir}
29
30 diff --git a/media-libs/libmad/libmad-0.15.1b-r9.ebuild b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
31 similarity index 95%
32 rename from media-libs/libmad/libmad-0.15.1b-r9.ebuild
33 rename to media-libs/libmad/libmad-0.15.1b-r10.ebuild
34 index 856aa42c5f7..285cf5467f4 100644
35 --- a/media-libs/libmad/libmad-0.15.1b-r9.ebuild
36 +++ b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
37 @@ -67,7 +67,9 @@ multilib_src_install() {
38
39 # This file must be updated with each version update
40 insinto /usr/$(get_libdir)/pkgconfig
41 - doins "${FILESDIR}"/mad.pc
42 + cp "${FILESDIR}/mad.pc" "${S}"
43 + sed -i "s/%VERSION%/${PV}/g" "${S}/mad.pc"
44 + doins "${S}/mad.pc"
45
46 # Use correct libdir in pkgconfig file
47 sed -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \