Sha256: 415951ca1a00fb2ed5aebe75b28ae4dc64481f8a848d968d7067375f5188e7dc

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

require 'rubygems'
gem 'hoe', '>= 2.1.0'
require 'hoe'
require 'fileutils'
require './lib/hubris'

# Hoe.plugin :newgem
# Hoe.plugin :website
# Hoe.plugin :cucumberfeatures

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.spec 'hubris' do
  self.developer 'Mark Wotton', 'mwotton@gmail.com'
  self.rubyforge_name = "hubris"
  self.summary = 'tool to help build .so files from haskell code for use in Ruby via dl'
  self.post_install_message = 'PostInstall.txt'
  self.readme_file = "README.markdown"
  self.history_file = "HISTORY.markdown"
end

#require 'newgem/tasks'
# Dir['tasks/**/*.rake'].each { |t| load t }


#file "lib/RubyMap.hs" => ["lib/RubyMap.chs"] do
#  str = "c2hs -v --cppopts='-I" + Hubris::RubyHeader + "' --cpp=gcc --cppopts=-E --cppopts=-xc lib/RubyMap.chs"
#  # print str
#  system(str)
#end

require 'spec'
require 'spec/rake/spectask'

# desc "Run the specs under spec/"
# all_examples = Spec::Rake::SpecTask.new do |t|
#   t.spec_opts = ['--options', "spec/spec.opts"]
#   t.spec_files = FileList['spec/*.rb']
# end

# task :spec => ["lib/RubyMap.hs"]

task :clean do
  FileList[File.expand_path("~/.hubris_cache/*"),
           'lib*.so', 'lib/*.o', 'libfoo_*.bundle' ].each do |f|
    begin
        File.delete(f)
    rescue
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hubris-0.0.2 Rakefile