summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-07-13 02:14:15 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-07-13 02:14:15 +0000
commitcaa1e5a14317c2974270b72ba207f1d43f1a156d (patch)
tree8943447d6d30c5b7c623b247100a8c3f4971e0e3 /media-sound/mpg321
parentStable on Mac OS X (diff)
downloadhistorical-caa1e5a14317c2974270b72ba207f1d43f1a156d.tar.gz
historical-caa1e5a14317c2974270b72ba207f1d43f1a156d.tar.bz2
historical-caa1e5a14317c2974270b72ba207f1d43f1a156d.zip
postrm removes the symlink now.
Diffstat (limited to 'media-sound/mpg321')
-rw-r--r--media-sound/mpg321/ChangeLog6
-rw-r--r--media-sound/mpg321/Manifest4
-rw-r--r--media-sound/mpg321/mpg321-0.2.10-r1.ebuild12
3 files changed, 14 insertions, 8 deletions
diff --git a/media-sound/mpg321/ChangeLog b/media-sound/mpg321/ChangeLog
index 34d4c22252a2..968e072fb2e0 100644
--- a/media-sound/mpg321/ChangeLog
+++ b/media-sound/mpg321/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/mpg321
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.18 2004/07/12 08:04:38 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/ChangeLog,v 1.19 2004/07/13 02:14:15 eradicator Exp $
+
+ 12 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ mpg321-0.2.10-r1.ebuild:
+ postrm removes the symlink now.
12 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> :
Make ebuild play nicer with GRP.
diff --git a/media-sound/mpg321/Manifest b/media-sound/mpg321/Manifest
index 787145a8373f..edb9739b3483 100644
--- a/media-sound/mpg321/Manifest
+++ b/media-sound/mpg321/Manifest
@@ -1,5 +1,5 @@
-MD5 aef1d5854ed0bbf76c73c9c51c55cfff ChangeLog 2613
+MD5 849ee716fc262167b5f66ad90058e42a ChangeLog 2732
MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
-MD5 c9213c2b82b80014b88c0322d75746e5 mpg321-0.2.10-r1.ebuild 1209
+MD5 3f97962d2ccf1ce539299451a1e1ea6c mpg321-0.2.10-r1.ebuild 1390
MD5 7f4e867ab9a86c4f3618228fdccc48f4 files/digest-mpg321-0.2.10-r1 65
MD5 f69e111b891dc01d56fb394621897e0d files/mpg321-0.1.5-ao.diff 7909
diff --git a/media-sound/mpg321/mpg321-0.2.10-r1.ebuild b/media-sound/mpg321/mpg321-0.2.10-r1.ebuild
index cffe9779e987..198849d8e8c1 100644
--- a/media-sound/mpg321/mpg321-0.2.10-r1.ebuild
+++ b/media-sound/mpg321/mpg321-0.2.10-r1.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-sound/mpg321/mpg321-0.2.10-r1.ebuild,v 1.20 2004/07/12 08:04:38 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg321/mpg321-0.2.10-r1.ebuild,v 1.21 2004/07/13 02:14:15 eradicator Exp $
IUSE=""
@@ -31,13 +31,15 @@ src_install () {
pkg_postinst() {
# We create a symlink for /usr/bin/mpg123 if it doesn't already exist
if ! [ -f /usr/bin/mpg123 ]; then
- ln -s mpg321 /usr/bin/mpg123
+ ln -s mpg321 ${ROOT}/usr/bin/mpg123
fi
}
pkg_postrm() {
- # We can't delete it here because it would break upgrades.
- if [ -L /usr/bin/mpg123 ]; then
- einfo "The /usr/bin/mpg123 symlink still exists. You may wish to remove it."
+ # We delete the symlink if it's nolonger valid.
+ if [ -L "${ROOT}/usr/bin/mpg123" ] && [ ! -x "${ROOT}/usr/bin/mpg123" ]; then
+ einfo "We are removing the ${ROOT}/usr/bin/mpg123 symlink since it is no longer valid."
+ einfo "If you are using another virtual/mpg123 program, you should setup the appropriate symlink."
+ rm ${ROOT}/usr/bin/mpg123
fi
}