[proaudio] [1767] media-sound/boodler bump to 2.0.3, bash-completion and jack support.

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1767
Author:   gavlee
Date:     2010-10-15 17:15:36 +0200 (Fri, 15 Oct 2010)
Log Message:
-----------
media-sound/boodler bump to 2.0.3, bash-completion and jack support.

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/boodler/ChangeLog
    trunk/overlays/proaudio/media-sound/boodler/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/boodler/boodler-2.0.3.ebuild
    trunk/overlays/proaudio/media-sound/boodler/files/
    trunk/overlays/proaudio/media-sound/boodler/files/boodler

Modified: trunk/overlays/proaudio/media-sound/boodler/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-sound/boodler/ChangeLog	2010-10-12 22:51:26 UTC (rev 1766)
+++ trunk/overlays/proaudio/media-sound/boodler/ChangeLog	2010-10-15 15:15:36 UTC (rev 1767)
@@ -1,7 +1,14 @@
 # ChangeLog for media-sound/boodler
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*boodler-2.0.3 (15 Oct 2010)
+
+  15 Oct 2010; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx>
+  +boodler-2.0.3.ebuild, +files/boodler:
+  bump to 2.0.3, add bash-completion script and USE flag, add jack USE flag
+  that requires =media-libs/bio2jack-0.9 (thx to Tim Harder for Gentoo bump)
+
 *boodler-2.0.2 (15 Sep 2009)
 
   15 Sep 2009; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx>

Modified: trunk/overlays/proaudio/media-sound/boodler/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/boodler/Manifest	2010-10-12 22:51:26 UTC (rev 1766)
+++ trunk/overlays/proaudio/media-sound/boodler/Manifest	2010-10-15 15:15:36 UTC (rev 1767)
@@ -1,4 +1,7 @@
+AUX boodler 2156 RMD160 3f14fe314d6d4f3dc05d566a710a9348825eb358 SHA1 5442b4abfc45054f7395afa16e1b359704bccf5e SHA256 b2f5fbc14dc152e78fdaca0b23020a8df03956c1987ce379df8cf082937177a1
 DIST Boodler-2.0.2.tar.gz 303617 RMD160 2d0577027bfb6cfb295e6d1eaf54fb3dcea4a56b SHA1 a153f58b3b39763a7876bbd28632a05134bbf522 SHA256 94a687d4ce854fc0d7749da6953d0f17efbcd00ad30359299f4d478f6b8e5197
+DIST Boodler-2.0.3.tar.gz 306478 RMD160 3499e5894a7fe457b3aafaaadebbc1063223e019 SHA1 1f543d4a09930fe33e680f1d6cf986abf07fd29e SHA256 fe432e35737aa14e3595930df05f85ecd24ba0278365c34c4028192c20a06088
 EBUILD boodler-2.0.2.ebuild 1647 RMD160 597802fd10303055a77bf1f2cb0ed7fd48504b02 SHA1 fbef618c802ec9323a8e72bf87487727e348bc09 SHA256 521d5270b7bdadd73849d3e29d9e2036cd58b43d4d7b984c364bd9d148eab5d5
-MISC ChangeLog 275 RMD160 26d495d7a74a67164fab40266d1590fd095e1bf9 SHA1 710729df286002ecc3b2e5a9a2136dedd4aca7f8 SHA256 147376f035aff73317303a065203cfcc35acb64e8e97c02c3e5733cdc6a50ed4
+EBUILD boodler-2.0.3.ebuild 1977 RMD160 78d123848f328faebffd460abbf34a4839383e5c SHA1 1ac8e96111be945a46507a7cebe5ac533440929e SHA256 ab3ce6546a7a1e54eff9eacee8bf5dd6b182dfe8313742676e42aa3cc285ddd3
+MISC ChangeLog 556 RMD160 6119fd0b97141353903a4fa720226507a88c624f SHA1 9c805e3ee3b52def6ac01d079fdbea7c17da2b36 SHA256 ac4502e83ed91585f5f5615125d970c978c3b590b5b4b41071eeaf8545db25f5
 MISC metadata.xml 457 RMD160 035f8f3790a1a312b132650bca012e2db915a57d SHA1 2098a41f73f85e1b3e75e10cb494117df2cb7587 SHA256 723b7bd3d0f84f5193ad64b625597ba2f9dc5c7d250a8b636b8cada6ad5f682b

Added: trunk/overlays/proaudio/media-sound/boodler/boodler-2.0.3.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/boodler/boodler-2.0.3.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/boodler/boodler-2.0.3.ebuild	2010-10-15 15:15:36 UTC (rev 1767)
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+PYTHON_DEPEND="2:2.4"
+
+inherit python distutils bash-completion
+
+MY_P="Boodler-${PV}"
+
+DESCRIPTION="Tool for creating soundscapes -- continuous, infinitely varying streams of sound"
+HOMEPAGE="http://boodler.org/";
+SRC_URI="http://boodler.org/dl/${MY_P}.tar.gz";
+LICENSE="GPL-2 LGPL-2 public-domain"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="alsa bash-completion esd intmath jack lame pulseaudio shout vorbis"
+RESTRICT="mirror"
+
+DEPEND="alsa? ( >=media-libs/alsa-lib-1.0.17a )
+		esd? ( >=media-sound/esound-0.2.41 )
+		jack? ( >=media-libs/bio2jack-0.9 )
+		lame? ( >=media-sound/lame-3.98.2-r1 )
+		pulseaudio? ( >=media-sound/pulseaudio-0.9.9 )
+		shout? ( >=media-libs/libshout-2.1 )
+		vorbis? ( >=media-libs/libvorbis-1.2.1_rc1-r2 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+	if use shout && ! use vorbis; then
+		eerror "To have shout support, you also need to build boodler with"
+		eerror "USE=\"vorbis\"!"
+		die
+	fi
+}
+
+src_prepare() {
+	local default_driver
+	local with
+	local without
+	use alsa && default_driver=alsa || default_driver=oss
+	use alsa && with="${with}alsa," || without="${without}alsa,"
+	use esd && with="${with}esd," || without="${without}esd,"
+	use jack && with="${with}jackb," || without="${without}jackb,"
+	use lame && with="${with}lame," || without="${without}lame,"
+	use pulseaudio && with="${with}pulse," || without="${without}pulse,"
+	use shout && with="${with}shout," || without="${without}shout,"
+	use vorbis && with="${with}vorbis," || without="${without}vorbis,"
+	cat > "${S}/setup.cfg" <<-EOF
+		[build_scripts]
+		default_driver=${default_driver}
+		[build_ext]
+		with-drivers=${with}
+		without-drivers=${without}
+		intmath=$(use intmath && echo 1 || echo 0)
+	EOF
+}
+
+src_install() {
+	distutils_src_install
+
+	# a bash completion addon script downloaded from the official site
+	dobashcompletion "${FILESDIR}/boodler"
+}

Added: trunk/overlays/proaudio/media-sound/boodler/files/boodler
===================================================================
--- trunk/overlays/proaudio/media-sound/boodler/files/boodler	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/boodler/files/boodler	2010-10-15 15:15:36 UTC (rev 1767)
@@ -0,0 +1,86 @@
+# /etc/bash_completion.d/boodler #v3
+mgr=boodle-mgr.py 
+
+#types="agent" # only agents
+types="agent\|sound" # 
+
+typefilter=".*\[\(${types}\)\].*"
+
+
+#20091113 - v3 - typefilter introduction
+#20091113 - v2 - cleanup, documentation, bugfix, substring version
+#20091113 - v1 - initial working version
+
+# does simple bash completion for boodler.py in via wildcard or a two-step process
+#  type
+#    boodler.py <tab><tab> # to get package completion
+#    boodler.py name.me.example/<tab><tab> # for agent completion
+#    boodler.py exam*<tab><tab> # get substring matching completion
+
+
+_boodlelib() 
+{
+	# case insensitive matches
+	if `shopt -q nocasematch`; then 
+		oldnocasematchset=true ;   else oldnocasematchset=false ; 
+	fi
+	shopt -s nocasematch # FIXME - TRAP ME
+	
+    local cur prev opts
+    COMPREPLY=()
+    cur="${COMP_WORDS[COMP_CWORD]}"
+    prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+	# packages list (have to remove the last line 'xx packages installed...')	
+    packages=`$mgr -- list 2>/dev/null | sed "$ s/.*//"`
+	
+	
+	case "$cur" in
+	*\*) # WILDCARD - long, thorough search (package/agent completion)
+		cur="${cur%\*}" # removing the wildcard
+		agents=""
+		for p in $packages; do
+			ags=`$mgr contents "$p" 2>/dev/null | grep -e "${typefilter}" | awk '{print $1}'`
+			#echo ags_${ags}_ags
+			for ag in $ags; do 
+				pag="$p/$ag"
+				if [[ "$pag" == *${cur}* ]] ; then
+					#echo "$pag" == *${cur}*
+					
+					agents+="$pag "
+				fi
+			done
+		done
+		
+		COMPREPLY=( ${agents} )
+		;;
+	*/*) # AGENT completion
+		p="${cur%\/}" # removing the trailing slash
+
+  	    ags=`$mgr contents "$p" 2>/dev/null | grep -e "${typefilter}" | awk '{print $1}'`
+		for ag in $ags; do 
+			# echo found $ag
+			agents+="$p/$ag "
+		done
+
+	    opts="$agents"
+		COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+		;;
+	*)	# PACKAGE completion 
+		# match first on packages (with slashes at the end)
+		opts=`echo "$packages" | sed "s/\([a-zA-Z0-9]\)$/\1\//"`
+	    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+		;;
+	esac
+
+	# clean-up
+	if ${oldnocasematchset} ; then
+		shopt -s nocasematch
+	else
+		shopt -u nocasematch
+	fi
+	
+    return 0
+}
+
+complete -o nospace -F _boodlelib boodler.py


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/