diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-03 18:02:30 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-03 18:02:30 +0000 |
commit | 228117273775f6b58ff58f8d6db380e6f1a6e87f (patch) | |
tree | 0b528cd7ee7e22b7f51e73a987d1d191d3140e89 /media-sound/hydrogen | |
parent | Version bump (diff) | |
download | gentoo-2-228117273775f6b58ff58f8d6db380e6f1a6e87f.tar.gz gentoo-2-228117273775f6b58ff58f8d6db380e6f1a6e87f.tar.bz2 gentoo-2-228117273775f6b58ff58f8d6db380e6f1a6e87f.zip |
Make libarchive optional but enabled by default (upstream scons preferes libtar, we prefer libarchive).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/hydrogen')
-rw-r--r-- | media-sound/hydrogen/ChangeLog | 9 | ||||
-rw-r--r-- | media-sound/hydrogen/hydrogen-0.9.4-r1.ebuild | 64 | ||||
-rw-r--r-- | media-sound/hydrogen/metadata.xml | 3 |
3 files changed, 75 insertions, 1 deletions
diff --git a/media-sound/hydrogen/ChangeLog b/media-sound/hydrogen/ChangeLog index 102259d239c3..25139dee416c 100644 --- a/media-sound/hydrogen/ChangeLog +++ b/media-sound/hydrogen/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-sound/hydrogen # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/ChangeLog,v 1.91 2010/01/22 18:54:31 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/ChangeLog,v 1.92 2010/05/03 18:02:30 ssuominen Exp $ + +*hydrogen-0.9.4-r1 (03 May 2010) + + 03 May 2010; Samuli Suominen <ssuominen@gentoo.org> + +hydrogen-0.9.4-r1.ebuild: + Make libarchive optional but enabled by default (upstream scons preferes + libtar, we prefer libarchive). 22 Jan 2010; Raúl Porcel <armin76@gentoo.org> hydrogen-0.9.4.ebuild: sparc stable diff --git a/media-sound/hydrogen/hydrogen-0.9.4-r1.ebuild b/media-sound/hydrogen/hydrogen-0.9.4-r1.ebuild new file mode 100644 index 000000000000..70ae96af4d41 --- /dev/null +++ b/media-sound/hydrogen/hydrogen-0.9.4-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.4-r1.ebuild,v 1.1 2010/05/03 18:02:30 ssuominen Exp $ + +EAPI=2 +inherit eutils multilib + +DESCRIPTION="Advanced drum machine" +HOMEPAGE="http://www.hydrogen-music.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="alsa +archive flac jack ladspa lash oss" + +RDEPEND="x11-libs/qt-gui:4 + archive? ( app-arch/libarchive ) + !archive? ( >=dev-libs/libtar-1.2.11-r3 ) + media-libs/libsndfile + alsa? ( media-libs/alsa-lib ) + flac? ( media-libs/flac[cxx] ) + jack? ( media-sound/jack-audio-connection-kit ) + ladspa? ( media-libs/liblrdf ) + lash? ( media-sound/lash )" +DEPEND="${RDEPEND} + dev-util/scons" + +src_prepare() { + sed -i \ + -e '/cppflags +=/d' \ + Sconstruct || die +} + +src_compile() { + export QTDIR="/usr/$(get_libdir)" + + # obsolete portaudio v18 and portmidi not yet in portage + local myconf="portaudio=0 portmidi=0" + + use alsa || myconf="${myconf} alsa=0" + use archive && myconf="${myconf} libarchive=1" + use flac || myconf="${myconf} flac=0" + use jack || myconf="${myconf} jack=0" + use ladspa || myconf="${myconf} lrdf=0" + use lash && myconf="${myconf} lash=1" + use oss || myconf="${myconf} oss=0" + + scons \ + prefix=/usr \ + DESTDIR="${D}" \ + optflags="${CXXFLAGS}" \ + ${myconf} || die +} + +src_install() { + dobin hydrogen || die + insinto /usr/share/hydrogen + doins -r data || die + doicon data/img/gray/h2-icon.svg + domenu hydrogen.desktop + dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html + dodoc AUTHORS ChangeLog README.txt +} diff --git a/media-sound/hydrogen/metadata.xml b/media-sound/hydrogen/metadata.xml index af0275e2998a..b83a08d6d7cf 100644 --- a/media-sound/hydrogen/metadata.xml +++ b/media-sound/hydrogen/metadata.xml @@ -2,4 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>proaudio</herd> + <use> + <flag name="archive">Use libarchive instead of libtar</flag> + </use> </pkgmetadata> |