summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-02 15:18:42 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-09-02 15:18:42 +0100
commit95a01ae09f39633df83baf5bcab36cec20a5077c (patch)
treee838a46e61106f5b741c986a14ee0d1725014ad6
parent4874e98d35b50674d1621dc0c2320beff51aa19d (diff)
downloadmorph-95a01ae09f39633df83baf5bcab36cec20a5077c.tar.gz
import: Make ruby build commands actually construct the .gem
-rwxr-xr-ximport/rubygem.to_chunk10
1 files changed, 7 insertions, 3 deletions
diff --git a/import/rubygem.to_chunk b/import/rubygem.to_chunk
index bee5be14..f1cc0377 100755
--- a/import/rubygem.to_chunk
+++ b/import/rubygem.to_chunk
@@ -329,11 +329,14 @@ class RubyGemChunkMorphologyGenerator
}
]
- # FIXME: these should build from source instead!
+ build_commands = [
+ "gem build #{spec.name}.gemspec",
+ ]
+
install_commands = [
"mkdir -p #{gem_dir}",
"gem install --install-dir #{gem_dir} --bindir #{bin_dir} " +
- "--ignore-dependencies --local #{spec.full_name}.gem"
+ "--ignore-dependencies --local ./#{spec.full_name}.gem"
]
{
@@ -343,7 +346,8 @@ class RubyGemChunkMorphologyGenerator
'build-system' => 'manual',
##'gem-url' => "http://rubygems.org/downloads/#{spec.full_name}.gem",
'products' => split_rules,
- 'install-commands' => install_commands
+ 'build-commands' => build_commands,
+ 'install-commands' => install_commands,
}
end