diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-12-09 16:01:18 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-12-10 00:57:38 +0000 |
commit | 075ebb2daf33859691ac16531f0af5791379da9f (patch) | |
tree | aedec85b5c305b95e06148bdbc4dd5a702696bcc | |
parent | 3e7dce5d27b3d591b8b2fc8c049f05f4d6cfbe93 (diff) | |
download | slackbuilds-075ebb2daf33859691ac16531f0af5791379da9f.tar.gz |
audio/ecasound: Fixed ruby support.
ecasound.rb was being installed in package's root dir.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | audio/ecasound/ecasound.SlackBuild | 4 | ||||
-rw-r--r-- | audio/ecasound/ruby2.patch | 12 |
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 + + |