diff ruby/rbdc/rbdc.gemspec @ 6:80273969f043

- ruby binding path cleanup, previous version required bindings and dyncall be checked out in same parent directory
author cslag
date Sat, 26 Mar 2016 00:12:40 +0100
parents f5d4d5c2f750
children 681db37a300c
line wrap: on
line diff
--- a/ruby/rbdc/rbdc.gemspec	Tue Mar 22 01:49:34 2016 +0100
+++ b/ruby/rbdc/rbdc.gemspec	Sat Mar 26 00:12:40 2016 +0100
@@ -21,8 +21,8 @@
 #///////////////////////////////////////////////////////////////////////
 
 require 'rake'
-base_dir = '../../..'
-Dir.chdir(base_dir)
+#dyncall_dir = ENV['DC_DIR']
+#FileUtils.symlink dyncall_dir, 'dyncall'#, :force => true
 
 Gem::Specification.new do |spec|
 	spec.name                  = 'rbdc'
@@ -37,6 +37,8 @@
 	spec.required_ruby_version = '>= 1.9.1'
 	spec.license               = 'ISC'
 
-	spec.files                 = FileList['dyncall/**/*', 'dyncall-bindings/ruby/rbdc/rbdc.c'].exclude('dyncall/doc/**/*').exclude('dyncall/test/**/*').to_a
-	spec.extensions            << 'dyncall-bindings/ruby/rbdc/extconf.rb'
+	# Note that this requires dyncall to live in this directory, create a symlink to the dyncall directory.
+	spec.files                 = FileList['dyncall/**/*', 'rbdc.c'].exclude('dyncall/doc/**/*').exclude('dyncall/test/**/*').to_a
+	spec.extensions            << 'extconf.rb'
 end
+