summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2020-08-02 10:28:43 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2020-08-02 12:54:40 +0200
commitd42031b7dffd924e259a67a4cfc70f94c3ae3046 (patch)
treeb251d28e7bf8c8ab7355c5ab5f8586557900262b /media-libs
parentdev-haskell/missingh: bump up to 1.4.3.0 (diff)
downloadgentoo-d42031b7dffd924e259a67a4cfc70f94c3ae3046.tar.gz
gentoo-d42031b7dffd924e259a67a4cfc70f94c3ae3046.tar.bz2
gentoo-d42031b7dffd924e259a67a4cfc70f94c3ae3046.zip
media-libs/libmad: fixed wrong version in mad.pc
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libmad/files/mad.pc2
-rw-r--r--media-libs/libmad/libmad-0.15.1b-r10.ebuild (renamed from media-libs/libmad/libmad-0.15.1b-r9.ebuild)4
2 files changed, 4 insertions, 2 deletions
diff --git a/media-libs/libmad/files/mad.pc b/media-libs/libmad/files/mad.pc
index 14a66f552582..329276cdeec6 100644
--- a/media-libs/libmad/files/mad.pc
+++ b/media-libs/libmad/files/mad.pc
@@ -6,6 +6,6 @@ includedir=${prefix}/include
Name: mad
Description: MPEG Audio Decoder
Requires:
-Version: 0.15.0b
+Version: %VERSION%
Libs: -L${libdir} -lmad -lm
Cflags: -I${includedir}
diff --git a/media-libs/libmad/libmad-0.15.1b-r9.ebuild b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
index 856aa42c5f77..285cf5467f48 100644
--- a/media-libs/libmad/libmad-0.15.1b-r9.ebuild
+++ b/media-libs/libmad/libmad-0.15.1b-r10.ebuild
@@ -67,7 +67,9 @@ multilib_src_install() {
# This file must be updated with each version update
insinto /usr/$(get_libdir)/pkgconfig
- doins "${FILESDIR}"/mad.pc
+ cp "${FILESDIR}/mad.pc" "${S}"
+ sed -i "s/%VERSION%/${PV}/g" "${S}/mad.pc"
+ doins "${S}/mad.pc"
# Use correct libdir in pkgconfig file
sed -e "s:^libdir.*:libdir=${EPREFIX}/usr/$(get_libdir):" \