require 'fileutils'
require 'sass'

begin
  require 'jeweler'

  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "compass-drupal-zen-plugin"
    gemspec.summary = "Compass compatible Sass port of Drupal Zen theme"
    gemspec.email = "bjd@pobox.com"
    gemspec.homepage = "http://github.com/bangpound/compass-drupal-zen-plugin"
    gemspec.description = "Zen is the ultimate starting theme for Drupal, an homage to the CSS Zen Garden site where designers can redesign the page purely through the use of CSS. http://drupal.org/project/zen"
    gemspec.authors = ["Benjamin Doherty"]

    gemspec.files.include %w(d6_zen2/*/*/*)
  end

rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"

  require 'echoe'
 
  Echoe.new('compass-drupal-zen-plugin', open('VERSION').read) do |p|
    # p.rubyforge_name = 'drupal-zen'
    p.summary = "Compass compatible Sass port of Drupal Zen theme"
    p.description = "Zen is the ultimate starting theme for Drupal, an homage to the CSS Zen Garden site where designers can redesign the page purely through the use of CSS. http://drupal.org/project/zen"
    p.url = "http://github.com/bangpound/compass-drupal-zen-plugin"
    p.author = ['Benjamin Doherty']
    p.email = "bjd@bangpound.org"
    p.dependencies = ["chriseppstein-compass"]
    p.has_rdoc = false
  end
 
rescue LoadError => boom
  puts "You are missing a dependency required for meta-operations on this gem."
  puts "#{boom.to_s.capitalize}."
end