d473972471
version 12.0 of rake.
63 lines
2 KiB
Text
63 lines
2 KiB
Text
$NetBSD: patch-Rakefile,v 1.3 2017/06/05 16:06:57 taca Exp $
|
|
|
|
* Require modern task rule from rdoc.
|
|
* Drop task for release.
|
|
|
|
--- Rakefile.orig 2007-03-23 11:32:09.000000000 +0000
|
|
+++ Rakefile
|
|
@@ -1,13 +1,11 @@
|
|
require "rbconfig"
|
|
require "rake/clean"
|
|
require "rake/testtask"
|
|
-require "rake/rdoctask"
|
|
+require "rdoc/task"
|
|
require "rake/packagetask"
|
|
-require "rake/contrib/compositepublisher"
|
|
-require "rake/contrib/sshpublisher"
|
|
|
|
-require "rake/configuretask"
|
|
-require "rake/extensiontask"
|
|
+require_relative "rake/configuretask"
|
|
+require_relative "rake/extensiontask"
|
|
|
|
PKG_NAME = "ruby-eet"
|
|
PKG_VERSION = File.read("lib/eet.rb").
|
|
@@ -43,6 +41,9 @@ task :pre_ext => [:configure] do
|
|
|
|
cflags = [
|
|
ext.env[:cflags],
|
|
+ "-I#{RbConfig::CONFIG["rubyhdrdir"]}",
|
|
+ "-I#{RbConfig::CONFIG["rubyhdrdir"]}/ruby",
|
|
+ "-I#{RbConfig::CONFIG["rubyhdrdir"]}/#{RbConfig::CONFIG["arch"]}",
|
|
config.eet.cflags
|
|
]
|
|
|
|
@@ -52,11 +53,11 @@ end
|
|
task :install => [:ext] do |t|
|
|
destdir = ENV["DESTDIR"] || ""
|
|
|
|
- ddir = destdir + Config::CONFIG["sitearchdir"]
|
|
+ ddir = destdir + RbConfig::CONFIG["sitearchdir"]
|
|
FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir)
|
|
FileUtils::Verbose.install(ext.lib_name, ddir, :mode => 0755)
|
|
|
|
- ddir = destdir + Config::CONFIG["sitelibdir"]
|
|
+ ddir = destdir + RbConfig::CONFIG["sitelibdir"]
|
|
FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir)
|
|
FileUtils::Verbose.install("lib/eet.rb", ddir, :mode => 0644)
|
|
end
|
|
@@ -87,14 +88,3 @@ Rake::PackageTask.new(PKG_NAME, PKG_VERS
|
|
t.need_tar_gz = true
|
|
t.package_files = PKG_FILES
|
|
end
|
|
-
|
|
-task :publish => [:rdoc, :package] do
|
|
- p = Rake::CompositePublisher.new
|
|
- p.add(Rake::SshFreshDirPublisher.new("code-monkey.de",
|
|
- "public_docs/" +
|
|
- PKG_NAME, "doc"))
|
|
- p.add(Rake::SshFilePublisher.new("code-monkey.de",
|
|
- ".", "pkg",
|
|
- "#{PKG_NAME}-#{PKG_VERSION}.tar.gz"))
|
|
- p.upload
|
|
-end
|