[DRE-commits] [ruby-rjb] 05/11: set license, force fit to 2.1

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Apr 10 18:57:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-rjb.

commit d8c15d32fa57ce325bc3edc66d4f414c74c79b66
Author: arton <artonx at yahoo.co.jp>
Date:   Fri Jan 3 19:09:26 2014 +0900

    set license, force fit to 2.1
---
 rjb.rake | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/rjb.rake b/rjb.rake
index e6a93f2..bc6388a 100644
--- a/rjb.rake
+++ b/rjb.rake
@@ -1,5 +1,11 @@
 require 'rubygems'
-require 'rake/gempackagetask'
+begin
+  require 'rake/gempackagetask'
+  $package_task = Rake::GemPackageTask
+rescue
+  require 'rubygems/package_task'
+  $package_task = Gem::PackageTask
+end
 require 'fileutils'
 
 def read_version
@@ -33,6 +39,7 @@ spec = Gem::Specification.new do |s|
   s.requirements << 'none'
   s.require_path = 'lib'
   s.requirements << 'JDK 5.0'
+  s.license = 'LGPL'
   files = FileList['ext/*.java', 'ext/*.c', 'ext/*.h', 'ext/depend',
                    'data/rjb/**/*.class', 'lib/*.rb', 'samples/**/*.rb', 
                    'test/*.rb', 'test/**/*.class', 'test/*.jar', 'COPYING', 'ChangeLog', 'readme.*']
@@ -50,8 +57,8 @@ spec = Gem::Specification.new do |s|
 RJB is a bridge program that connect between Ruby and Java with Java Native Interface.
 EOD
 end
-
-Rake::GemPackageTask.new(spec) do |pkg|
+
+$package_task.new(spec) do |pkg|
   pkg.gem_spec = spec
   pkg.need_zip = false
   pkg.need_tar = false

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rjb.git



More information about the Pkg-ruby-extras-commits mailing list