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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Apr 11 13:55:30 2005 UTC (15 years, 7 months ago) by luckyduck
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
 new upstream version, fixes #72986. updated maintainer information, chriswhite is retired. did some cleanup.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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-r4.ebuild,v 1.4 2005/01/03 09:37:57 corsair Exp $
4
5 IUSE="alsa jack"
6
7 inherit eutils
8
9 DESCRIPTION="Linux Drum Machine"
10 HOMEPAGE="http://hydrogen.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz \
12 mirror://sourceforge/hydrogen/3355606.tar.gz \
13 mirror://sourceforge/hydrogen/DrumkitPack1.tar.gz \
14 mirror://sourceforge/hydrogen/DrumkitPack2.tar.gz \
15 mirror://sourceforge/hydrogen/EasternHop-1.tar.gz \
16 mirror://sourceforge/hydrogen/TD-7.tar.gz \
17 mirror://sourceforge/hydrogen/UltraAcousticKit.tar.gz \
18 mirror://sourceforge/hydrogen/Millo-Drums_v1.tar.gz \
19 mirror://sourceforge/hydrogen/HardElectro1.tar.gz"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="x86 amd64 ~ppc"
24
25 RDEPEND=">=media-libs/audiofile-0.2.3
26 alsa? ( media-libs/alsa-lib )
27 jack? ( media-sound/jack-audio-connection-kit )
28 >=x11-libs/qt-3"
29
30 DEPEND="${RDEPEND}
31 >=sys-devel/autoconf-2.58"
32
33 src_unpack() {
34 unpack ${A}
35
36 epatch ${FILESDIR}/${P}-ui-spacer.patch
37 epatch ${FILESDIR}/${P}-64bit.patch
38 epatch ${FILESDIR}/${P}-gcc34.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