diff options
author | Joe Sapp <nixphoeni@gentoo.org> | 2011-05-07 17:58:08 +0000 |
---|---|---|
committer | Joe Sapp <nixphoeni@gentoo.org> | 2011-05-07 17:58:08 +0000 |
commit | c2445dea1c4dd881aebfe4806447ec6fe2f92d9a (patch) | |
tree | eccba02f97ea25404ff2739889f1ce593ecbed30 /media-sound/xwax | |
parent | alpha/arm/ia64/sparc stable wrt #360315 (diff) | |
download | gentoo-2-c2445dea1c4dd881aebfe4806447ec6fe2f92d9a.tar.gz gentoo-2-c2445dea1c4dd881aebfe4806447ec6fe2f92d9a.tar.bz2 gentoo-2-c2445dea1c4dd881aebfe4806447ec6fe2f92d9a.zip |
Added new beta version
(Portage version: 2.1.9.45/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/xwax')
-rw-r--r-- | media-sound/xwax/ChangeLog | 7 | ||||
-rw-r--r-- | media-sound/xwax/xwax-0.10_beta1.ebuild | 102 |
2 files changed, 108 insertions, 1 deletions
diff --git a/media-sound/xwax/ChangeLog b/media-sound/xwax/ChangeLog index a55afb316bda..ce2827479673 100644 --- a/media-sound/xwax/ChangeLog +++ b/media-sound/xwax/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-sound/xwax # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.32 2011/05/07 17:52:41 nixphoeni Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/ChangeLog,v 1.33 2011/05/07 17:58:08 nixphoeni Exp $ + +*xwax-0.10_beta1 (07 May 2011) + + 07 May 2011; Joe Sapp <nixphoeni@gentoo.org> +xwax-0.10_beta1.ebuild: + Added new beta version 07 May 2011; Joe Sapp <nixphoeni@gentoo.org> -xwax-0.7.ebuild: Removed old version diff --git a/media-sound/xwax/xwax-0.10_beta1.ebuild b/media-sound/xwax/xwax-0.10_beta1.ebuild new file mode 100644 index 000000000000..0c97ce0a6fb1 --- /dev/null +++ b/media-sound/xwax/xwax-0.10_beta1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/xwax/xwax-0.10_beta1.ebuild,v 1.1 2011/05/07 17:58:08 nixphoeni Exp $ + +EAPI=4 +inherit toolchain-funcs versionator + +MY_PV="${PV/_/-}" +TYPE="$(version_format_string '$3')" + +DESCRIPTION="Digital vinyl emulation software" +HOMEPAGE="http://www.xwax.co.uk/" +SRC_URI="http://www.xwax.co.uk/testing/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="testing" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="alsa jack oss cdda mp3 +fallback" +REQUIRED_USE="|| ( cdda mp3 fallback ) + || ( alsa jack oss )" + +RDEPEND="media-libs/libsdl + media-libs/sdl-ttf + media-fonts/dejavu + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit ) + cdda? ( media-sound/cdparanoia ) + mp3? ( || ( media-sound/mpg123 media-sound/mpg321 ) ) + fallback? ( virtual/ffmpeg )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-${MY_PV}" + +DOCS="README CHANGES" + +pkg_setup() { + ewarn "Please note that XWAX_DECODERS is deprecated in favor of USE flags." + ewarn "Sorry for the inconvenience." +} + +src_prepare() { + # Remove the forced optimization from 'CFLAGS' and 'LDFLAGS' in + # the Makefile + # Also replace VERSION so we don't have to depend on git... + sed -i -e 's:\(^CFLAGS.*\)-O[0-9]\(.*\):\1\2:' \ + -e 's:\(^LDFLAGS.*\)-O[0-9]\(.*\):\1\2:' \ + -e "s:\(^VERSION =\).*:\1 ${PV}:" \ + Makefile || die "sed failed" + + # Fix name for importer and scanner + sed -i -e "s:\(xwax-import\):\1-${TYPE}:g" \ + -e "s:\(xwax-scan\):\1-${TYPE}:g" \ + xwax.c || die "patching xwax.c failed" + + # Replace any decoder commands in the import script, if necessary + if [[ `use mp3` ]]; then + # mpg123 is upstream's default + if has_version media-sound/mpg123; then + TO="mpg123" + FROM="mpg321" + # Otherwise, use mpg321 + else + TO="mpg321" + FROM="mpg123" + fi + debug-print "found ${TO}" + sed -i -e "s:${FROM}:${TO}:g" import || \ + die "problem converting xwax-import to use ${TO}" + fi +} + +src_configure() { + tc-export CC + econf \ + --prefix "${EROOT}usr" \ + $(use_enable alsa) \ + $(use_enable jack) \ + $(use_enable oss) +} + +src_compile() { + # EXECDIR is the default directory in which xwax will look for + # the 'xwax-import' and 'xwax-scan' scripts + emake EXECDIR="${EROOT}usr/bin" +} + +src_install() { + # This is easier than setting all the environment variables + # needed, running the sed script required to get the man directory + # correct, and removing the GPL-2 after a 'make install' run + newbin xwax xwax-${TYPE} || die "failed to install xwax" + newbin import xwax-import-${TYPE} || die "failed to install xwax-import" + newbin scan xwax-scan-${TYPE} || die "failed to install xwax-scan" + newman xwax.1 xwax-${TYPE}.1 || die "failed to install man page" + + dodoc ${DOCS} || die "failed to install docs" +} + +pkg_postinst() { + ewarn "Note that this is a testing package and is probably unsuitable for" + ewarn "live shows." +} |