/[gentoo-x86]/media-sound/hydrogen/hydrogen-0.8.2-r3.ebuild
Gentoo

Contents of /media-sound/hydrogen/hydrogen-0.8.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 20 05:29:08 2004 UTC (16 years, 1 month ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Removing old versions.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.8.2-r3.ebuild,v 1.2 2004/06/25 00:05:33 agriffis Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Linux Drum Machine"
8 HOMEPAGE="http://hydrogen.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz \
10 mirror://sourceforge/hydrogen/3355606.tar.gz \
11 mirror://sourceforge/hydrogen/DrumkitPack1.tar.gz \
12 mirror://sourceforge/hydrogen/DrumkitPack2.tar.gz \
13 mirror://sourceforge/hydrogen/EasternHop-1.tar.gz \
14 mirror://sourceforge/hydrogen/TD-7.tar.gz \
15 mirror://sourceforge/hydrogen/UltraAcousticKit.tar.gz \
16 mirror://sourceforge/hydrogen/Millo-Drums_v1.tar.gz \
17 mirror://sourceforge/hydrogen/HardElectro1.tar.gz"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="~x86 ~amd64 ~ppc"
22
23 IUSE="alsa jack"
24
25
26 RDEPEND="virtual/x11
27 >=media-libs/audiofile-0.2.3 \
28 alsa? ( media-libs/alsa-lib ) \
29 jack? ( media-sound/jack-audio-connection-kit ) \
30 >=x11-libs/qt-3"
31
32 DEPEND="$RDEPEND >=sys-devel/autoconf-2.58"
33
34 src_unpack() {
35 unpack ${A}
36
37 epatch ${FILESDIR}/${P}-ui-spacer.patch
38 epatch ${FILESDIR}/${P}-64bit.patch
39
40 # unpack drum kits
41 cd ${P}/data/drumkits
42 tar zxf ${WORKDIR}/3355606/3355606kit.h2drumkit
43 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-1.h2drumkit
44 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-2.h2drumkit
45 tar zxf ${WORKDIR}/DrumkitPack2/Synthie-1.h2drumkit
46 tar zxf ${WORKDIR}/DrumkitPack2/TR808909.h2drumkit
47 tar zxf ${WORKDIR}/DrumkitPack2/Techno-1.h2drumkit
48 tar zxf ${WORKDIR}/EasternHop-1/EasternHop-1.h2drumkit
49 tar zxf ${WORKDIR}/EasternHop-1/EasternHop-1.h2drumkit
50 tar zxf ${WORKDIR}/TD-7/TD-7kit.h2drumkit
51 tar zxf ${WORKDIR}/UltraAcousticKit/UltraAcousticKit.h2drumkit
52 tar zxf ${WORKDIR}/Millo-Drums_v1/Millo-Drums_v.1.h2drumkit
53 tar zxf ${WORKDIR}/HardElectro1/HardElectro1.h2drumkit
54
55 # unpack demo songs
56 # (note that some songs are disabled due to incompatibility with this (newer?) version of hydrogen...)
57 cd ../demo_songs
58 #cp ${WORKDIR}/3355606/*.h2song .
59 #cp ${WORKDIR}/DrumkitPack1/*.h2song .
60 #cp ${WORKDIR}/DrumkitPack2/*.h2song .
61 #cp ${WORKDIR}/EasternHop-1/*.h2song .
62 #cp ${WORKDIR}/TD-7/*.h2song .
63 cp ${WORKDIR}/UltraAcousticKit/*.h2song .
64 cp ${WORKDIR}/Millo-Drums_v1/demo\ songs/*.h2song .
65 cp ${WORKDIR}/HardElectro1/*.h2song .
66
67 # fix file paths
68 for SONG in `ls *.h2song`; do
69 sed -i -e "s:/usr/local/share:/usr/share:" ${SONG}
70 done
71 }
72
73 src_compile() {
74 addwrite ${QTDIR}/etc/settings
75
76 einfo "Reconfiguring..."
77 export WANT_AUTOCONF=2.5
78 export WANT_AUTOMAKE=1.6
79
80 ./autogen.sh
81
82 econf || die
83 emake || die
84 }
85
86 src_install() {
87 local SUPPORTDIR=/usr/share/hydrogen
88
89 make DESTDIR=${D} install || die
90 dodoc AUTHORS COPYING ChangeLog README TODO
91
92 # install demo songs
93 insinto ${SUPPORTDIR}/data/demo_songs
94 doins data/demo_songs/*
95
96 # install drum kits
97 for KIT in `find data/drumkits -type d`; do
98 insinto ${SUPPORTDIR}/${KIT}
99 doins ${KIT}/*.xml
100 doins ${KIT}/*.wav
101 done
102 }

  ViewVC Help
Powered by ViewVC 1.1.20