/[gentoo-x86]/media-sound/hydrogen/hydrogen-0.9.0_beta1.ebuild
Gentoo

Contents of /media-sound/hydrogen/hydrogen-0.9.0_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 19 05:47:26 2004 UTC (15 years, 11 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Stable amd64, sparc, x86.

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.9.0_beta1.ebuild,v 1.2 2004/08/20 18:11:13 fvdpol Exp $
4
5 inherit eutils
6
7 MY_P=${P/_beta1/beta1}
8
9 DESCRIPTION="Linux Drum Machine"
10 HOMEPAGE="http://hydrogen.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/hydrogen/${MY_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 IUSE="alsa jack"
26
27 RDEPEND="virtual/x11
28 >=media-libs/audiofile-0.2.3 \
29 alsa? ( media-libs/alsa-lib ) \
30 jack? ( media-sound/jack-audio-connection-kit ) \
31 >=x11-libs/qt-3 \
32 >=media-libs/flac-1"
33
34 DEPEND="$RDEPEND >=sys-devel/autoconf-2.58"
35
36 S="${WORKDIR}/${MY_P}"
37
38 src_unpack() {
39 unpack ${A}
40
41 epatch ${FILESDIR}/${P}-math.patch
42
43 # unpack drum kits
44 cd ${MY_P}/data/drumkits
45 tar zxf ${WORKDIR}/3355606/3355606kit.h2drumkit
46 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-1.h2drumkit
47 tar zxf ${WORKDIR}/DrumkitPack1/HipHop-2.h2drumkit
48 tar zxf ${WORKDIR}/DrumkitPack2/Synthie-1.h2drumkit
49 tar zxf ${WORKDIR}/DrumkitPack2/TR808909.h2drumkit
50 tar zxf ${WORKDIR}/DrumkitPack2/Techno-1.h2drumkit
51 tar zxf ${WORKDIR}/EasternHop-1/EasternHop-1.h2drumkit
52 tar zxf ${WORKDIR}/EasternHop-1/EasternHop-1.h2drumkit
53 tar zxf ${WORKDIR}/TD-7/TD-7kit.h2drumkit
54 tar zxf ${WORKDIR}/UltraAcousticKit/UltraAcousticKit.h2drumkit
55 tar zxf ${WORKDIR}/Millo-Drums_v1/Millo-Drums_v.1.h2drumkit
56 tar zxf ${WORKDIR}/HardElectro1/HardElectro1.h2drumkit
57
58 # unpack demo songs
59 # (note that some songs are disabled due to incompatibility with this (newer?) version of hydrogen...)
60 cd ../demo_songs
61 #cp ${WORKDIR}/3355606/*.h2song .
62 #cp ${WORKDIR}/DrumkitPack1/*.h2song .
63 #cp ${WORKDIR}/DrumkitPack2/*.h2song .
64 #cp ${WORKDIR}/EasternHop-1/*.h2song .
65 #cp ${WORKDIR}/TD-7/*.h2song .
66 cp ${WORKDIR}/UltraAcousticKit/*.h2song .
67 cp ${WORKDIR}/Millo-Drums_v1/demo\ songs/*.h2song .
68 cp ${WORKDIR}/HardElectro1/*.h2song .
69
70 # fix file paths
71 for SONG in `ls *.h2song`; do
72 sed -i -e "s:/usr/local/share:/usr/share:" ${SONG}
73 done
74 }
75
76 src_compile() {
77 addwrite ${QTDIR}/etc/settings
78
79 #einfo "Reconfiguring..."
80 #export WANT_AUTOCONF=2.5
81 #export WANT_AUTOMAKE=1.6
82 #
83 #./autogen.sh
84
85 econf || die
86 emake || die
87 }
88
89 src_install() {
90 local SUPPORTDIR=/usr/share/hydrogen
91
92 make DESTDIR=${D} install || die
93 dodoc AUTHORS COPYING ChangeLog README TODO
94
95 # install demo songs
96 insinto ${SUPPORTDIR}/data/demo_songs
97 doins data/demo_songs/*
98
99 # install drum kits
100 for KIT in `find data/drumkits -type d`; do
101 insinto ${SUPPORTDIR}/${KIT}
102 doins ${KIT}/*.xml
103 doins ${KIT}/*.wav
104 done
105 }

  ViewVC Help
Powered by ViewVC 1.1.20