diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-06-21 07:32:00 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-06-21 07:32:00 +0000 |
commit | 76820d2f7063ebd7908223bccab5128dc9303c59 (patch) | |
tree | bf115ac4b9480bb71059402f1b12b816e4f86c2f /media-sound/mpg321/mpg321-0.2.10-r3.ebuild | |
parent | Version bump. (diff) | |
download | historical-76820d2f7063ebd7908223bccab5128dc9303c59.tar.gz historical-76820d2f7063ebd7908223bccab5128dc9303c59.tar.bz2 historical-76820d2f7063ebd7908223bccab5128dc9303c59.zip |
Version bump. Handle /usr/bin/mpg123 symlink inside CONTENTS again.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
RepoMan-Options: --force
Diffstat (limited to 'media-sound/mpg321/mpg321-0.2.10-r3.ebuild')
-rw-r--r-- | media-sound/mpg321/mpg321-0.2.10-r3.ebuild | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/media-sound/mpg321/mpg321-0.2.10-r3.ebuild b/media-sound/mpg321/mpg321-0.2.10-r3.ebuild deleted file mode 100644 index e151c098a52e..000000000000 --- a/media-sound/mpg321/mpg321-0.2.10-r3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2009 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-r3.ebuild,v 1.13 2009/06/01 18:03:46 ssuominen Exp $ - -inherit eutils - -DESCRIPTION="Free MP3 player, drop-in replacement for mpg123" -HOMEPAGE="http://sourceforge.net/projects/mpg321" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 ~hppa -mips ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="" - -RDEPEND="media-libs/libmad - media-libs/libid3tag - media-libs/libao" -DEPEND="${RDEPEND}" - -src_unpack() { - unpack ${A} - cd "${S}" - # from debian? - epatch "${FILESDIR}"/${P}-file-descriptors-leak.patch - # provide an User-Agent when requesting via HTTP - # By Frank Ruell, in FreeBSD PR 84898 - epatch "${FILESDIR}"/${P}-useragent.patch -} - -src_compile() { - # disabling the symlink here and doing it in postinst is better for GRP - econf --disable-mpg123-symlink - emake || die "emake failed." -} - -src_install () { - emake DESTDIR="${D}" install || die "emake install failed." - dodoc AUTHORS BUGS ChangeLog HACKING NEWS README README.remote THANKS TODO -} - -pkg_postinst() { - # We create a symlink for /usr/bin/mpg123 if it doesn't already exist - if ! [ -f "${ROOT}"usr/bin/mpg123 ]; then - ln -s mpg321 "${ROOT}"usr/bin/mpg123 - fi -} - -pkg_postrm() { - # We delete the symlink if it's nolonger valid. - if [ -L "${ROOT}usr/bin/mpg123" ] && [ ! -x "${ROOT}usr/bin/mpg123" ]; then - elog "We are removing the ${ROOT}usr/bin/mpg123 symlink since it is no longer valid." - elog "If you are using another virtual/mpg123 program, you should setup the appropriate symlink." - rm "${ROOT}"usr/bin/mpg123 - fi -} |