summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/ecasound/ecasound.SlackBuild4
-rw-r--r--audio/ecasound/ruby2.patch12
2 files changed, 16 insertions, 0 deletions
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
+
+