summaryrefslogtreecommitdiff
blob: 775e6a5f566cf17554210d607046c0a81fa8ea98 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.4_rc2.ebuild,v 1.3 2009/08/31 10:56:23 ssuominen Exp $

EAPI=2
MY_P=${P/_/-}
inherit eutils multilib

DESCRIPTION="Advanced Drum Machine"
HOMEPAGE="http://www.hydrogen-music.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"

LICENSE="GPL-2 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="alsa oss jack lash ladspa flac"

RDEPEND="jack? ( media-sound/jack-audio-connection-kit )
	alsa? ( media-libs/alsa-lib )
	lash? ( media-sound/lash )
	flac? ( media-libs/flac[cxx] )
	ladspa? ( media-libs/liblrdf )
	app-arch/libarchive
	x11-libs/qt-core:4
	x11-libs/qt-gui:4
	x11-libs/qt-opengl:4
	x11-libs/qt-script:4
	x11-libs/qt-qt3support:4"
DEPEND="${RDEPEND}
	dev-util/scons"

S=${WORKDIR}/${MY_P}

src_compile() {
	export QTDIR="/usr/$(get_libdir)"
	local myconf="prefix=/usr libarchive=1"
	use oss || myconf="${myconf} oss=0"
	use alsa || myconf="${myconf} alsa=0"
	use jack || myconf="${myconf} jack=0"
	use lash || myconf="${myconf} lash=0"
	use ladspa || myconf="${myconf} lrdf=0"
	use flac || myconf="${myconf} flac=0"
	scons ${myconf} || die "scons failed"
}

src_install() {
	dobin hydrogen || die
	insinto /usr/share/hydrogen
	doins -r data || die
	doicon data/img/gray/h2-icon.svg
	domenu hydrogen.desktop
	dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
	dodoc AUTHORS ChangeLog README.txt
}