Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pure-Ruby library code is duplicated in native packages * if there is a ruby-foo-common package, the pure-Ruby libraries are installed in it instead. * programs are installed in either ruby-foo-common (if present), or in the first binary package otherwise.
- Loading branch information
Showing
9 changed files
with
151 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'rubygems' | ||
require 'rake/gempackagetask' | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.summary = "Simple native extension used to test dh_ruby" | ||
s.name = 'simplemixed' | ||
s.version = '1.2.3' | ||
s.requirements << 'none' | ||
s.require_path = 'ext' | ||
s.extensions << 'ext/simplemixed/extconf.rb' | ||
#s.autorequire = 'rake' | ||
s.files = Dir.glob('{bin,ext,lib}/**/*') | ||
s.description = <<EOF | ||
simplemixed is a simple mixed library (both pure-Ruby and native extension) that is used to test dh_ruby. | ||
EOF | ||
end | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
pkg.need_zip = false | ||
pkg.need_tar = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
|
||
puts "I am a program installed by simplemixed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'mkmf' | ||
create_makefile('simplemixed') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "ruby.h" | ||
|
||
void Init_simplemixed() { | ||
rb_define_module("SimpleMixed"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require 'simplemixed.so' |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters