From 075ebb2daf33859691ac16531f0af5791379da9f Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 9 Dec 2016 16:01:18 +0000 Subject: audio/ecasound: Fixed ruby support. ecasound.rb was being installed in package's root dir. Signed-off-by: David Spencer --- audio/ecasound/ecasound.SlackBuild | 4 ++++ audio/ecasound/ruby2.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 audio/ecasound/ruby2.patch diff --git a/audio/ecasound/ecasound.SlackBuild b/audio/ecasound/ecasound.SlackBuild index 1321478278..ff7f4870f8 100644 --- a/audio/ecasound/ecasound.SlackBuild +++ b/audio/ecasound/ecasound.SlackBuild @@ -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 diff --git a/audio/ecasound/ruby2.patch b/audio/ecasound/ruby2.patch new file mode 100644 index 0000000000..d55f121403 --- /dev/null +++ b/audio/ecasound/ruby2.patch @@ -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 + + -- cgit v1.2.3