| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/mp3blaster/mp3blaster-3.2.5-r1.ebuild,v 1.9 2012/08/23 05:55:42 xmw Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit eutils
|
| 7 |
|
| 8 |
DESCRIPTION="Text console based program for playing audio files"
|
| 9 |
HOMEPAGE="http://mp3blaster.sourceforge.net/"
|
| 10 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
| 11 |
mirror://debian/pool/main/m/${PN}/${PN}_${PV}-3.debian.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86 ~x86-fbsd"
|
| 16 |
IUSE="lirc oss sdl sid vorbis"
|
| 17 |
|
| 18 |
RDEPEND=">=sys-libs/ncurses-5.7-r7
|
| 19 |
lirc? ( app-misc/lirc )
|
| 20 |
sdl? ( media-libs/libsdl )
|
| 21 |
sid? ( =media-libs/libsidplay-1* )
|
| 22 |
vorbis? ( >=media-libs/libvorbis-1 )"
|
| 23 |
DEPEND="${RDEPEND}
|
| 24 |
x11-misc/imake
|
| 25 |
oss? ( virtual/os-headers )"
|
| 26 |
|
| 27 |
REQUIRED_USE="|| ( oss sdl )"
|
| 28 |
|
| 29 |
DOCS="AUTHORS BUGS ChangeLog CREDITS FAQ NEWS README TODO"
|
| 30 |
|
| 31 |
src_prepare() {
|
| 32 |
EPATCH_SOURCE=${WORKDIR}/debian/patches EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
|
| 33 |
# file collision with media-sound/splay
|
| 34 |
sed -i -e 's:splay.1:splay_mp3blaster.1:' Makefile.in || die
|
| 35 |
mv -vf splay{,_mp3blaster}.1 || die
|
| 36 |
}
|
| 37 |
|
| 38 |
src_configure() {
|
| 39 |
# libpth and newthreads support are both broken
|
| 40 |
econf \
|
| 41 |
--disable-newthreads \
|
| 42 |
--without-pth \
|
| 43 |
--without-nas \
|
| 44 |
$(use_with lirc) \
|
| 45 |
$(use_with vorbis oggvorbis) \
|
| 46 |
$(use_with sid sidplay) \
|
| 47 |
--without-esd \
|
| 48 |
$(use_with sdl) \
|
| 49 |
$(use_with oss)
|
| 50 |
}
|
| 51 |
|
| 52 |
src_install() {
|
| 53 |
default
|
| 54 |
|
| 55 |
doman "${WORKDIR}"/debian/manpages/mp3tag.1
|
| 56 |
|
| 57 |
# relocate everything except commands.txt because it's used by src/main.cc
|
| 58 |
mv -vf "${ED}"usr/share/${PN}/{charmap,sample.*} "${ED}"usr/share/doc/${PF} || die
|
| 59 |
|
| 60 |
# file collision with media-sound/splay
|
| 61 |
mv -vf "${ED}"usr/bin/splay{,_mp3blaster} || die
|
| 62 |
}
|