Permalink
Browse files

remove ext

  • Loading branch information...
1 parent 12d8495 commit fa823fa93c900b0be3b5ad8b48cfa55faaff3164 @quix committed Mar 17, 2011
Showing with 0 additions and 56 deletions.
  1. +0 −56 levitate.rb
View
@@ -178,7 +178,6 @@ def self.attribute(name, &block)
extra_rdoc_files
require_paths
required_ruby_version
- extensions
].each do |param|
t = send(param) and g.send("#{param}=", t)
end
@@ -269,17 +268,6 @@ def self.attribute(name, &block)
[]
end
- attribute :extensions do
- ["ext/#{gem_name}/extconf.rb"].select { |f| File.file? f }
- end
-
- attribute :so_file do
- unless extensions.empty?
- require 'rbconfig'
- "lib/" + gem_name + "." + RbConfig::CONFIG["DLEXT"]
- end
- end
-
attribute :remote_levitate do
url = ENV["LEVITATE"] ||
"https://github.com/quix/levitate/raw/master/levitate.rb"
@@ -479,22 +467,6 @@ def define_install
task :uninstall do
Installer.new.uninstall
end
-
- if so_file
- dest = File.join(RbConfig::CONFIG["sitearchdir"], File.basename(so_file))
-
- task :install => so_file do
- puts "install #{so_file} --> #{dest}"
- FileUtils.install(so_file, dest)
- end
-
- task :uninstall do
- if File.file?(dest)
- puts "rm #{dest}"
- FileUtils.rm(dest)
- end
- end
- end
end
def define_check_directory
@@ -590,34 +562,6 @@ def define_debug_gem
end
end
- def define_extension
- if so_file and (source_control? or !File.file?(so_file))
- require 'rbconfig'
- require 'rake/extensiontask'
-
- Rake::ExtensionTask.new gem_name, gemspec do |ext|
- ext.cross_compile = true
- ext.cross_platform = 'i386-mswin32'
- ext.cross_compiling do |gemspec|
- gemspec.post_install_message =
- "U got dat binary versionation of this gemination!"
- end
- end
-
- if Rake::Task[so_file].needed?
- task :test => so_file
- end
-
- task :cross_native_gem do
- Rake::Task[:gem].reenable
- Rake.application.top_level_tasks.replace %w[cross native gem]
- Rake.application.top_level
- end
-
- task :gem => :cross_native_gem
- end
- end
-
#### helpers
def files_in_require_paths

0 comments on commit fa823fa

Please sign in to comment.