diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-10-04 05:42:03 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-10-04 05:42:03 +0000 |
commit | 4155f7db4baeee979aaf9c6b0c7adfeb07bf71d6 (patch) | |
tree | b5a7aa064476546231dbf00d40df70bc67f8784d /media-libs/flac/flac-1.1.1.ebuild | |
parent | Added preserve_old_lib as a temporary workaround to soname changes in libs. (diff) | |
download | gentoo-2-4155f7db4baeee979aaf9c6b0c7adfeb07bf71d6.tar.gz gentoo-2-4155f7db4baeee979aaf9c6b0c7adfeb07bf71d6.tar.bz2 gentoo-2-4155f7db4baeee979aaf9c6b0c7adfeb07bf71d6.zip |
Using preserve_old_lib to cut down on clutter.
Diffstat (limited to 'media-libs/flac/flac-1.1.1.ebuild')
-rw-r--r-- | media-libs/flac/flac-1.1.1.ebuild | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/media-libs/flac/flac-1.1.1.ebuild b/media-libs/flac/flac-1.1.1.ebuild index c856ac455dad..c59a454a41dc 100644 --- a/media-libs/flac/flac-1.1.1.ebuild +++ b/media-libs/flac/flac-1.1.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.1.ebuild,v 1.2 2004/10/02 23:56:46 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.1.ebuild,v 1.3 2004/10/04 05:40:55 eradicator Exp $ IUSE="sse xmms" @@ -54,30 +54,12 @@ src_install() { dodoc AUTHORS README # Keep around old lib - if [ -f ${ROOT}/usr/$(get_libdir)/libFLAC.so.4 ]; then - dodir /usr/$(get_libdir) - cp ${ROOT}/usr/$(get_libdir)/libFLAC.so.4 ${D}/usr/$(get_libdir) - touch ${D}/usr/$(get_libdir)/libFLAC.so.4 - fperms 755 /usr/$(get_libdir)/libFLAC.so.4 - fi - if [ -f ${ROOT}/usr/$(get_libdir)/libFLAC++.so.2 ]; then - dodir /usr/$(get_libdir) - cp ${ROOT}/usr/$(get_libdir)/libFLAC++.so.2 ${D}/usr/$(get_libdir) - touch ${D}/usr/$(get_libdir)/libFLAC++.so.2 - fperms 755 /usr/$(get_libdir)/libFLAC++.so.2 - fi + preserve_old_lib /usr/$(get_libdir)/libFLAC.so.4 + preserve_old_lib /usr/$(get_libdir)/libFLAC++.so.2 } pkg_postinst() { - if [ -f /usr/$(get_libdir)/libFLAC.so.4 ]; then - einfo "An old version of libFLAC was detected on your system." - einfo "In order to avoid conflicts, we've kept the old lib" - einfo "around. In order to make full use of the new version" - einfo "of libFLAC, you will need to do the following:" - einfo " revdep-rebuild --soname libFLAC.so.4" - einfo " revdep-rebuild --soname libFLAC++.so.2" - einfo - einfo "After doing that, you can safely remove /usr/$(get_libdir)/libFLAC.so.4 and libFLAC++.so.2" - fi + preserve_old_lib_notify /usr/$(get_libdir)/libFLAC.so.4 + preserve_old_lib_notify /usr/$(get_libdir)/libFLAC++.so.2 } |