diff options
author | Samuli Suominen <drac@gentoo.org> | 2008-05-19 19:49:04 +0000 |
---|---|---|
committer | Samuli Suominen <drac@gentoo.org> | 2008-05-19 19:49:04 +0000 |
commit | ab104cad5e3ae1a22005e00dc304b67e9950ff3b (patch) | |
tree | 566db833c2be92b6731ad57a28d43a881c2e65a1 /media-sound/hydrogen | |
parent | amd64/x86 stable, bug #221063 (diff) | |
download | gentoo-2-ab104cad5e3ae1a22005e00dc304b67e9950ff3b.tar.gz gentoo-2-ab104cad5e3ae1a22005e00dc304b67e9950ff3b.tar.bz2 gentoo-2-ab104cad5e3ae1a22005e00dc304b67e9950ff3b.zip |
Revision bump to remove USE portaudio wrt #222841.
(Portage version: 2.1.5)
Diffstat (limited to 'media-sound/hydrogen')
-rw-r--r-- | media-sound/hydrogen/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild | 4 | ||||
-rw-r--r-- | media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild | 112 |
3 files changed, 121 insertions, 3 deletions
diff --git a/media-sound/hydrogen/ChangeLog b/media-sound/hydrogen/ChangeLog index 0f42e5c794ba..3439e39fc84f 100644 --- a/media-sound/hydrogen/ChangeLog +++ b/media-sound/hydrogen/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/hydrogen # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/ChangeLog,v 1.63 2008/04/20 18:14:52 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/ChangeLog,v 1.64 2008/05/19 19:49:04 drac Exp $ + +*hydrogen-0.9.3-r3 (19 May 2008) + + 19 May 2008; Samuli Suominen <drac@gentoo.org> hydrogen-0.9.3-r2.ebuild, + +hydrogen-0.9.3-r3.ebuild: + Revision bump to remove USE portaudio wrt #222841. 20 Apr 2008; Alexis Ballier <aballier@gentoo.org> +files/hydrogen-0.9.3-gcc43.patch, hydrogen-0.9.3-r2.ebuild: diff --git a/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild b/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild index bdaf910d11ae..39d2d5c94748 100644 --- a/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild +++ b/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild,v 1.12 2008/04/20 18:14:52 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.3-r2.ebuild,v 1.13 2008/05/19 19:49:04 drac Exp $ inherit eutils kde-functions autotools multilib @@ -17,7 +17,7 @@ RDEPEND="dev-libs/libxml2 media-libs/libsndfile media-libs/audiofile flac? ( media-libs/flac ) - portaudio? ( media-libs/portaudio ) + portaudio? ( =media-libs/portaudio-18* ) alsa? ( media-libs/alsa-lib ) jack? ( media-sound/jack-audio-connection-kit ) ladspa? ( media-libs/liblrdf )" diff --git a/media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild b/media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild new file mode 100644 index 000000000000..7287a93dd978 --- /dev/null +++ b/media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.3-r3.ebuild,v 1.1 2008/05/19 19:49:04 drac Exp $ + +inherit eutils kde-functions autotools multilib + +DESCRIPTION="Linux Drum Machine" +HOMEPAGE="http://www.hydrogen-music.org/" +SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="alsa debug doc flac jack ladspa oss" + +RDEPEND="dev-libs/libxml2 + media-libs/libsndfile + media-libs/audiofile + flac? ( media-libs/flac ) + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + ladspa? ( media-libs/liblrdf )" +DEPEND="${RDEPEND} + doc? ( app-text/docbook-sgml-utils ) + dev-util/pkgconfig" + +need-qt 3 + +pkg_setup() { + if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then + eerror "" + eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you" + eerror "need to have built media-libs/alsa-lib with midi USE flag." + die "Missing midi USE flag on media-libs/alsa-lib" + fi + if use flac && ! built_with_use --missing true media-libs/flac cxx; then + eerror "To build ${PN} with flac support you need the C++ bindings for flac." + eerror "Please enable the cxx USE flag for media-libs/flac" + die "Missing FLAC C++ bindings." + fi +} + +src_unpack() { + unpack ${A} + if use ppc; then + cd "${S}/src" + epatch "${FILESDIR}/0.9.1-OSS.patch" || die "patching failed" + fi + cd "${S}" + + mv data/doc/man "${S}" + # broken or portability issue + find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \; + # find PortAudio/Midi files + sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \ + -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \ + -i configure.in + sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in + + epatch "${FILESDIR}/hydrogen-0.9.2-configure.in.patch" + epatch "${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch" + epatch "${FILESDIR}/${P}-flac113.patch" + epatch "${FILESDIR}/${P}-automagic.patch" + epatch "${FILESDIR}/${P}-desktop-noexec.patch" + epatch "${FILESDIR}/${P}-gcc43.patch" + eautoreconf +} + +src_compile() { + export PORTAUDIOPATH="/usr" + # PortMidi not yet in the repository + # export PORTMIDIPATH="/usr" + + # Disable portaudio v18 support wrt #222841 + local myconf="$(use_enable jack jack-support) \ + --disable-portaudio \ + $(use_enable alsa) \ + $(use_enable debug) \ + $(use_enable flac flac_support) \ + $(use_enable ladspa) \ + $(use_enable ladspa lrdf-support) \ + $(use_enable oss oss-support)" + + econf ${myconf} || die "Failed configuring hydrogen!" + emake -j1 || die "Failed making hydrogen!" +} + +src_install() { + pushd data/i18n + use doc && ./updateTranslations.sh + rm *.ts updateTranslations.sh + popd + + pushd data/doc + use doc && ./updateManuals.sh + rm *.docbook updateManuals.sh + popd + + emake DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README + dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html + doman man/C/hydrogen.1 + + for N in 16 24 32 48 64 ; do + dodir /usr/share/icons/hicolor/${N}x${N}/apps + dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \ + /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png + done + dodir /usr/share/icons/hicolor/scalable/apps + dosym /usr/share/hydrogen/data/img/gray/icon.svg \ + /usr/share/icons/hicolor/scalable/apps/hydrogen.svg +} |