audio/ecasound: Fixed ruby support.

ecasound.rb was being installed in package's root dir.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-12-09 16:01:18 +00:00
parent 3e7dce5d27
commit 075ebb2daf
2 changed files with 16 additions and 0 deletions

View File

@ -62,6 +62,10 @@ PYVER=$( python -c 'import sys; print "%d.%d" % sys.version_info[0:2]' )
# too). Sigh.
patch -p1 < $CWD/python_module_dir.diff
# Don't drop ruby module into the package root (patch from Arch)
# https://git.archlinux.org/svntogit/packages.git/plain/trunk/ruby2.patch?h=packages/ecasound
patch -p1 < $CWD/ruby2.patch
# --disable-static and --enable-shared are accepted, but ignored.
# This is deliberate: upstream doesn't want shared libs. See:
# http://www.eca.cx/ecasound-list/2002/10/0031.html

View File

@ -0,0 +1,12 @@
diff -aur ecasound-2.9.0.orig/configure ecasound-2.9.0/configure
--- ecasound-2.9.0.orig/configure 2013-03-26 17:14:51.759045636 +0800
+++ ecasound-2.9.0/configure 2013-03-26 17:15:50.502060731 +0800
@@ -6535,7 +6535,7 @@
rubyecasound_support=no
ECA_S_RUBY_SITEDIR=""
else
- ECA_S_RUBY_SITEDIR="`ruby -e 'require "rbconfig"; include Config; print CONFIG["sitedir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]'`"
+ ECA_S_RUBY_SITEDIR="`ruby -e 'include RbConfig; print CONFIG["vendordir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]'`"
fi