summaryrefslogtreecommitdiff
blob: d5c16f5427fdb12e904869aa5364be64242c341c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit eutils

DESCRIPTION="Audio converter/ripper featuring normalization and metadata editing"
HOMEPAGE="http://gnormalize.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="aac cddb flac mp3 musepack normalize vorbis"

RDEPEND="
	x11-libs/gtk+:2
	>=dev-perl/gtk2-perl-1.040
	aac? (
		media-libs/faac
		media-libs/faad2 )
	cddb? (
		dev-perl/CDDB_get
		media-sound/cdcd
		|| (
			media-sound/cdparanoia
			virtual/cdrtools ) )
	flac? (
		media-libs/flac
		!vorbis? ( media-sound/flac123 ) )
	mp3? (
		media-sound/lame
		dev-perl/MP3-Info
		|| (
			media-sound/madplay
			media-sound/mpg321
			media-sound/mpg123 ) )
	musepack? ( media-sound/musepack-tools )
	normalize? ( media-sound/wavegain )
	vorbis? ( media-sound/vorbis-tools )"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	unpack ./${PN}.1.lzma
}

src_install() {
	dobin ${PN} || die "dobin failed"

	insinto /usr/share/${PN}
	doins -r animations || die "doins failed"

	doicon icons/${PN}.png || die "doicon failed"
	make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.png "AudioVideo;Audio;AudioVideoEditing"

	doman ${PN}.1 || die "doman failed"
	dodoc README || die "dodoc failed"
}

pkg_postinst() {
	einfo "This package supports MAC (Monkey's Audio Codec) but due to licensing"
	einfo "issues MAC cannot be included in Portage at this time. If you need MAC"
	einfo "functionality, build and install the packages 'mac' and 'xmms-mac' from:"
	einfo
	einfo "    http://sourceforge.net/project/showfiles.php?group_id=123827"
}