diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-05-25 18:49:44 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-05-25 18:50:05 +0200 |
commit | 666256031a278f28ca7a32aa4c07645f4b6575cc (patch) | |
tree | 9e76a5336ca1c1b3d2f69125ec4309c0edb78655 /media-sound/mp3blaster/mp3blaster-3.2.6.ebuild | |
parent | media-sound/picard: bump to 1.4.2 (diff) | |
download | gentoo-666256031a278f28ca7a32aa4c07645f4b6575cc.tar.gz gentoo-666256031a278f28ca7a32aa4c07645f4b6575cc.tar.bz2 gentoo-666256031a278f28ca7a32aa4c07645f4b6575cc.zip |
media-sound/mp3blaster: Bump to 3.2.6
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-sound/mp3blaster/mp3blaster-3.2.6.ebuild')
-rw-r--r-- | media-sound/mp3blaster/mp3blaster-3.2.6.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/media-sound/mp3blaster/mp3blaster-3.2.6.ebuild b/media-sound/mp3blaster/mp3blaster-3.2.6.ebuild new file mode 100644 index 000000000000..fcd21a9f975e --- /dev/null +++ b/media-sound/mp3blaster/mp3blaster-3.2.6.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Text console based program for playing audio files" +HOMEPAGE="http://www.mp3blaster.org/ http://mp3blaster.sourceforge.net/ https://github.com/stragulus/mp3blaster" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="lirc oss +sdl sid vorbis" + +RDEPEND=" + sys-libs/ncurses:0= + lirc? ( app-misc/lirc ) + sdl? ( media-libs/libsdl ) + sid? ( media-libs/libsidplay:1 ) + vorbis? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + x11-misc/imake + oss? ( virtual/os-headers )" + +REQUIRED_USE="|| ( oss sdl )" +PATCHES=( + "${FILESDIR}"/${PN}-3.2.5-fix-c++14.patch + "${FILESDIR}"/${PN}-3.2.5-fix-build-system.patch +) + +src_prepare() { + default + eautoreconf + + # file collision with media-sound/splay + sed -i -e 's:splay.1:splay_mp3blaster.1:' Makefile.in || die + mv -vf splay{,_mp3blaster}.1 || die +} + +src_configure() { + # libpth and newthreads support are both broken + econf \ + --disable-newthreads \ + --without-pth \ + --without-nas \ + $(use_with lirc) \ + $(use_with vorbis oggvorbis) \ + $(use_with sid sidplay) \ + --without-esd \ + $(use_with sdl) \ + $(use_with oss) +} + +src_install() { + default + + # relocate everything except commands.txt because it's used by src/main.cc + mv -vf "${ED%/}"/usr/share/{${PN}/{charmap,sample.*},doc/${PF}} || die + + # file collision with media-sound/splay + mv -vf "${ED%/}"/usr/bin/splay{,_mp3blaster} || die +} |