summaryrefslogtreecommitdiff
blob: ce340ef6379a95fc5cc2288885dd69a57544c708 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/cheesetracker/cheesetracker-0.9.15.3.ebuild,v 1.4 2008/12/08 00:28:07 darkside Exp $

inherit eutils

DESCRIPTION="A clone of Impulse Tracker with some extensions and a built-in sample editor"
HOMEPAGE="http://cheesetracker.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~ppc sparc x86"
IUSE="alsa examples jack"

RDEPEND="alsa? ( media-libs/alsa-lib )
	jack? ( media-sound/jack-audio-connection-kit )
	media-libs/audiofile
	=dev-libs/libsigc++-1.2*
	=x11-libs/qt-3*
	dev-libs/gmp"
DEPEND="${RDEPEND}
	>=dev-util/scons-0.94-r2
	dev-util/pkgconfig"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-gcc43.patch
}

src_compile() {
	scons || die "scons failed."
}

src_install() {
	dodir /usr/bin
	scons prefix="${D}/usr" install || die "scons install failed."

	dodoc ChangeLog TODO ${PN}/{AUTHORS,README,docs/*.txt}

	if use examples; then
		insinto /usr/share/${PN}/examples
		doins ${PN}/examples/*.{it,xm}
	fi

	newicon ${PN}/icons/cheese_48x48.xpm ${PN}.xpm
	make_desktop_entry ${PN}_qt CheeseTracker ${PN} "AudioVideo;Qt"
}