summaryrefslogtreecommitdiff
blob: 775c439e723223388567e1dc680282d70df063f8 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/cantus/cantus-20060206.ebuild,v 1.3 2006/02/10 16:58:50 gustavoz Exp $

inherit eutils multilib

DESCRIPTION="Easy to use tool for tagging and renaming MP3 and OGG/Vorbis files"
HOMEPAGE="http://www.debain.org/software/cantus"

SRC_URI="mirror://gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"

IUSE=""

DEPEND="media-libs/libvorbis
	media-libs/libogg
	>=dev-cpp/gtkmm-2.4.0
	>=dev-cpp/libglademm-2.4.0"

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch ${FILESDIR}/${PN}-gentoo.patch
}

src_compile() {
	GENTOO_LIBDIR="$(get_libdir)" ./build.sh --prefix /usr || die "Build failed"
}

src_install() {
	# this package has an amazingly stupid installer
	dodir /usr/$(get_libdir)
	GENTOO_LIBDIR="$(get_libdir)" ./build.sh --install --prefix ${D}/usr || die "Install failed"

	rm -rf "${D}"/usr/doc "${D}"/usr/share/gnome/help/cantus_3/C/figures/CVS/
	dodoc AUTHORS TODO README NEWS CHANGELOG

	insinto /usr/share/pixmaps
	newins ${FILESDIR}/${PN}.png ${PN}3.png

	insinto /usr/share/applications
	doins ${FILESDIR}/${PN}.desktop
}