This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating jdbc_drivers/sqlite3 for hoe
- Loading branch information
Bernerd Schaefer
committed
Jul 14, 2008
1 parent
fc5e13c
commit 5ed953a
Showing
4 changed files
with
33 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
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,7 @@ | ||
BSD-LICENSE | ||
History.txt | ||
Manifest.txt | ||
README.txt | ||
Rakefile | ||
lib/do_jdbc/sqlite3.rb | ||
lib/do_jdbc/sqlite3_version.rb |
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 |
---|---|---|
@@ -1,36 +1,34 @@ | ||
require 'rubygems' | ||
require 'rake' | ||
require 'rake/clean' | ||
require 'rake/gempackagetask' | ||
require 'pathname' | ||
require Pathname('lib/do_jdbc/sqlite3_version') | ||
|
||
CLEAN.include '{pkg}/' | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = 'do_jdbc-sqlite3' | ||
s.version = DataObjects::Jdbc::SQLite3::VERSION | ||
s.platform = 'java' | ||
s.has_rdoc = false | ||
s.extra_rdoc_files = %w[ README BSD-LICENSE ] | ||
s.summary = 'JDBC Driver for SQLite3, packaged as a Gem' | ||
s.description = s.summary | ||
s.author = '' | ||
s.email = '' | ||
s.homepage = '' | ||
s.require_path = 'lib' | ||
s.files = FileList[ '{lib}/**/*.{rb,jar}', 'Rakefile', *s.extra_rdoc_files ] | ||
end | ||
|
||
warn "#{spec.name} is only for use with JRuby" unless RUBY_PLATFORM =~ /java/ | ||
ROOT = Pathname(__FILE__).dirname.expand_path | ||
|
||
task :default => [ :install ] | ||
JRUBY = (RUBY_PLATFORM =~ /java/) rescue nil | ||
|
||
Rake::GemPackageTask.new(spec) do |pkg| | ||
pkg.gem_spec = spec | ||
end | ||
AUTHOR = "" | ||
EMAIL = "" | ||
GEM_NAME = "do_jdbc-sqlite3" | ||
GEM_VERSION = DataObjects::Jdbc::SQLite3::VERSION | ||
GEM_DEPENDENCIES = [["data_objects", GEM_VERSION]] | ||
GEM_CLEAN = ['pkg'] | ||
GEM_EXTRAS = { :platform => 'java', :has_rdoc => false } | ||
|
||
PROJECT_NAME = "dorb" | ||
PROJECT_URL = "http://rubyforge.org/projects/dorb" | ||
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "JDBC Driver for Sqlite3, packaged as a Gem" | ||
|
||
DRIVER = true | ||
|
||
require ROOT.parent.parent + 'tasks/hoe' | ||
|
||
warn "#{GEM_NAME} is only for use with JRuby" unless RUBY_PLATFORM =~ /java/ | ||
|
||
task :default => [ :install ] | ||
|
||
desc "Install #{spec.name} #{spec.version}" | ||
desc "Install #{GEM_NAME} #{GEM_VERSION}" | ||
task :install => [ :package ] do | ||
sh %{jruby -S gem install --local pkg/#{spec.name}-#{spec.version} --no-update-sources}, :verbose => false | ||
sh %{jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false | ||
end |