diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-06-21 07:35:10 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-06-21 07:35:10 +0000 |
commit | 00284d137e793c03eee4d8b27bda2817af023fa3 (patch) | |
tree | 91b09122ab7c0ee27d74507b7875afb21f2c4a3a /media-sound/mpg123 | |
parent | Version bump. Handle /usr/bin/mpg123 symlink inside CONTENTS again. (diff) | |
download | historical-00284d137e793c03eee4d8b27bda2817af023fa3.tar.gz historical-00284d137e793c03eee4d8b27bda2817af023fa3.tar.bz2 historical-00284d137e793c03eee4d8b27bda2817af023fa3.zip |
Revision bump for mpg123 symlink transition.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
RepoMan-Options: --force
Diffstat (limited to 'media-sound/mpg123')
-rw-r--r-- | media-sound/mpg123/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/mpg123/mpg123-1.7.3-r1.ebuild | 78 |
2 files changed, 85 insertions, 1 deletions
diff --git a/media-sound/mpg123/ChangeLog b/media-sound/mpg123/ChangeLog index df375f76048f..c662d62684f7 100644 --- a/media-sound/mpg123/ChangeLog +++ b/media-sound/mpg123/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/mpg123 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.190 2009/06/09 18:53:40 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.191 2009/06/21 07:35:10 ssuominen Exp $ + +*mpg123-1.7.3-r1 (21 Jun 2009) + + 21 Jun 2009; Samuli Suominen <ssuominen@gentoo.org> + +mpg123-1.7.3-r1.ebuild: + Revision bump for mpg123 symlink transition. 09 Jun 2009; Raúl Porcel <armin76@gentoo.org> mpg123-1.7.3.ebuild: ia64/sparc stable wrt #270781 diff --git a/media-sound/mpg123/mpg123-1.7.3-r1.ebuild b/media-sound/mpg123/mpg123-1.7.3-r1.ebuild new file mode 100644 index 000000000000..e5beb7c62f54 --- /dev/null +++ b/media-sound/mpg123/mpg123-1.7.3-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.7.3-r1.ebuild,v 1.1 2009/06/21 07:35:10 ssuominen Exp $ + +EAPI=2 + +DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3." +HOMEPAGE="http://www.mpg123.org" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd" +IUSE="3dnow 3dnowext alsa altivec ipv6 jack mmx nas +network oss portaudio pulseaudio sdl sse" + +RDEPEND="alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + nas? ( media-libs/nas ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + sdl? ( media-libs/libsdl ) + !>media-sound/mpg321-0.2.10-r3[symlink]" +DEPEND="${RDEPEND} + dev-util/pkgconfig" +PDEPEND="virtual/mpg123" + +pkg_setup() { + # Make sure there is no mpg123 symlink left + local link="${ROOT}usr/bin/mpg123" + local msg="Removing invalid symlink ${link}" + if [ -L "${link}" ] && [ ! -x "${link}" ]; then + ebegin "${msg}" + rm -f "${link}" || die "${msg} failed, please open a bug." + eend $? + fi +} + +src_prepare() { + sed -i -e 's:-faltivec::' configure || die "sed failed" +} + +src_configure() { + local myaudio + + use alsa && myaudio="${myaudio} alsa" + use jack && myaudio="${myaudio} jack" + use nas && myaudio="${myaudio} nas" + use oss && myaudio="${myaudio} oss" + use portaudio && myaudio="${myaudio} portaudio" + use pulseaudio && myaudio="${myaudio} pulse" + use sdl && myaudio="${myaudio} sdl" + + local mycpu + + if use altivec; then + mycpu="--with-cpu=altivec" + elif use 3dnowext; then + mycpu="--with-cpu=3dnowext" + elif use 3dnow; then + mycpu="--with-cpu=3dnow" + elif use sse; then + mycpu="--with-cpu=sse" + elif use mmx; then + mycpu="--with-cpu=mmx" + fi + + econf \ + --disable-dependency-tracking \ + --with-optimization=0 ${mycpu} \ + --with-audio="${myaudio}" \ + $(use_enable network) \ + $(use_enable ipv6) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS* README +} |