summaryrefslogtreecommitdiff
blob: f642e4f4fcac71a0bb7d413b2c4f2926453baae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/lastfm-ripper/lastfm-ripper-1.2.1-r3.ebuild,v 1.3 2009/02/18 18:39:27 beandog Exp $

inherit perl-module eutils

DESCRIPTION="save last.fm radio to mp3 files"
HOMEPAGE="http://search.cpan.org/src/JOCHEN/last.fm-ripper-1.2/README"
SRC_URI="mirror://cpan/authors/id/J/JO/JOCHEN/last.fm-ripper-${PV}.tar.gz"

LICENSE="|| ( Artistic GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="amazon tagwriting minimal"

DEPEND="virtual/perl-Getopt-Long
	virtual/perl-Digest-MD5
	!minimal? ( dev-perl/Term-ReadPassword )
	tagwriting? ( dev-perl/MP3-Tag )
	amazon? ( dev-perl/MP3-Tag dev-perl/Net-Amazon )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/last.fm-ripper-${PV}"
src_unpack() {
	unpack ${A}

	cd "${S}"
	epatch "${FILESDIR}"/UnescapedVariableFix.patch
	epatch "${FILESDIR}"/CoverOutputDirectoryFix.patch
	epatch "${FILESDIR}"/HandleSlashCharFix.patch
	epatch "${FILESDIR}"/URL-Handling-fix.patch
}