mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 13:37:03 +00:00
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
|
|
require '../../common'
|
|
require 'rubygems'
|
|
require 'rubygems/installer'
|
|
require 'rake'
|
|
require 'rake/gempackagetask'
|
|
require 'rake/clean'
|
|
|
|
$TOOLS_DOWNLOAD = File.join($BUILD_DIR, 'Cappuccino', 'Tools')
|
|
|
|
PKG_FILES = FileList['lib/**/*']
|
|
|
|
spec = Gem::Specification.new do |s|
|
|
s.platform = Gem::Platform::RUBY
|
|
s.author = '280 North, Inc.'
|
|
s.email = 'feedback @nospam@ 280north.com'
|
|
s.homepage = 'http://cappuccino.org/'
|
|
s.summary = "Objective-J extensions to Rake."
|
|
s.name = 'objective-j'
|
|
s.version = "0.7.1"
|
|
s.requirements << 'rake'
|
|
s.require_path = 'lib'
|
|
s.files = PKG_FILES
|
|
s.description = <<EOF
|
|
Extensions to Rake to allow building Objective-J
|
|
frameworks and applications.
|
|
EOF
|
|
end
|
|
|
|
Rake::GemPackageTask.new(spec) do |pkg|
|
|
pkg.need_zip = true
|
|
pkg.need_tar = true
|
|
pkg.package_dir = File.join($BUILD_DIR, $CONFIGURATION, 'Rake')
|
|
end
|
|
|
|
#task :install do
|
|
# Gem::Installer.new(File.join($BUILD_DIR, $CONFIGURATION, 'rake', 'objective-j-0.7.1.gem')).install
|
|
#end
|
|
|
|
task :objj_gem => [:gem] do
|
|
mkdir_p $TOOLS_DOWNLOAD
|
|
cp(File.join($BUILD_DIR, $CONFIGURATION, 'Rake', spec.file_name), File.join($TOOLS_DOWNLOAD, spec.file_name))
|
|
end
|
|
|
|
task :build
|
|
|
|
CLOBBER.include(File.join($BUILD_DIR, $CONFIGURATION, 'Rake'), File.join($TOOLS_DOWNLOAD, spec.file_name))
|