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

Contents of /media-sound/hydrogen/hydrogen-0.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Nov 18 20:04:51 2007 UTC (13 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove old
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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.2.ebuild,v 1.6 2007/02/17 00:52:57 flameeyes Exp $
4
5 inherit eutils kde-functions autotools
6
7 DESCRIPTION="Linux Drum Machine"
8 HOMEPAGE="http://hydrogen.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~ppc64"
14 IUSE="alsa debug jack ladspa oss"
15
16 RDEPEND="media-libs/libsndfile
17 media-libs/audiofile
18 ~media-libs/flac-1.1.2
19 media-libs/portaudio
20 alsa? ( media-libs/alsa-lib )
21 jack? ( media-sound/jack-audio-connection-kit )
22 ladspa? ( media-libs/liblrdf )"
23 DEPEND="app-text/docbook-sgml-utils
24 ${RDEPEND}"
25 need-qt 3
26
27 src_unpack() {
28 unpack ${A}
29 cd ${S}/src
30 if use ppc; then
31 epatch ${FILESDIR}/0.9.1-OSS.patch || die "patching failed"
32 fi
33 cd ${S}
34 find . -type d -name CVS | xargs rm -r
35 mv data/doc/man ${S}
36 # broken or portability issue
37 find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
38 # find PortAudio/Midi files
39 sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
40 -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
41 -i configure.in
42 make -f Makefile.cvs
43
44 epatch ${FILESDIR}/hydrogen-0.9.2-configure.in.patch
45 }
46
47 src_compile() {
48 export PORTAUDIOPATH="/usr"
49 # PortMidi not yet in the repository
50 # export PORTMIDIPATH="/usr"
51
52 local myconf="$(use_enable jack jack-support) \
53 $(use_enable alsa) \
54 $(use_enable debug) \
55 $(use_enable ladspa) \
56 $(use_enable ladspa lrdf-support) \
57 $(use_enable oss oss-support)"
58
59 eautoconf
60 econf ${myconf} || die "Failed configuring hydrogen!"
61 emake || die "Failed making hydrogen!"
62 }
63
64 src_install() {
65 pushd data/i18n
66 ./updateTranslations.sh
67 rm *.ts updateTranslations.sh
68 popd
69
70 pushd data/doc
71 ./updateManuals.sh
72 rm *.docbook updateManuals.sh
73 popd
74
75 make DESTDIR="${D}" install || die "make install failed"
76 dodoc AUTHORS ChangeLog README TODO
77 dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
78 doman man/C/hydrogen.1
79
80 for N in 16 24 32 48 64 ; do
81 dodir /usr/share/icons/hicolor/${N}x${N}/apps
82 dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
83 /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
84 done
85 dodir /usr/share/icons/hicolor/scalable/apps
86 dosym /usr/share/hydrogen/data/img/gray/icon.svg \
87 /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
88 }

  ViewVC Help
Powered by ViewVC 1.1.20