Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Updating jdbc_drivers/sqlite3 for hoe
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernerd Schaefer committed Jul 14, 2008
1 parent fc5e13c commit 5ed953a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 29 deletions.
1 change: 1 addition & 0 deletions jdbc_drivers/sqlite3/History.txt
@@ -0,0 +1 @@

7 changes: 7 additions & 0 deletions jdbc_drivers/sqlite3/Manifest.txt
@@ -0,0 +1,7 @@
BSD-LICENSE
History.txt
Manifest.txt
README.txt
Rakefile
lib/do_jdbc/sqlite3.rb
lib/do_jdbc/sqlite3_version.rb
@@ -1,5 +1,4 @@
SQLite3 JDBC Driver
===================
= SQLite3 JDBC Driver

This is a SQLite3 JDBC driver packaged as gem for convenient installation in JRuby.

Expand All @@ -12,8 +11,7 @@ If you want to load this driver directly:

to make the driver accessible to JDBC and DataObjects code running in JRuby.

Copyright and Licensing
-----------------------
== Copyright and Licensing

This gem bundles the SQLiteJDBC Driver. SQLiteJDBC Driver is available under the
terms of a BSD License.
Expand Down
48 changes: 23 additions & 25 deletions jdbc_drivers/sqlite3/Rakefile
@@ -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

0 comments on commit 5ed953a

Please sign in to comment.