Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 09d192b2f7
Fetching contributors…

Cannot retrieve contributors at this time

file 73 lines (64 sloc) 1.855 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
require 'ubygems'
require 'pp'
require 'rake'

def info(s)
  {
    :author => "Sam Roberts",
    :email => "vieuxtech@gmail.com",
    :homepage => "http://vpim.rubyforge.org",
    :rubyforge_project => "vpim",
  }.each do |k,v|
    s.send(k.to_s+"=", v)
  end
end

spec_vpim = Gem::Specification.new do |s|
  info(s)
  s.name = "vpim"
  s.version = `ruby stamp.rb`
  s.summary = "iCalendar and vCard support for ruby"
  s.description = <<'---'
This is a pure-ruby library for decoding and encoding vCard and iCalendar data
("personal information") called vPim.
---
  s.has_rdoc = true
  s.extra_rdoc_files = ["README", "CHANGES", "COPYING", "samples/README.mutt" ]

  candidates = FileList[
    'lib/vpim/**/*.rb',
    'lib/vpim.rb',
    'bin/*',
    'samples/*',
    'test/test_*.rb',
    'COPYING',
    'README',
    'CHANGES',
  ].to_a

  s.files = candidates
  s.test_files = Dir.glob("test/test_*.rb")
  s.executables = FileList["bin/*"].map{|path| File.basename(path)}

  s.require_path = "lib"
# s.add_dependency("plist")
# s.autorequire = "vpim"
end

#pp [spec_vpim, spec_vpim.instance_variables]

spec_vpim_icalendar = Gem::Specification.new do |s|
  info(s)
  s.name = "vpim_icalendar"
  s.version = "1.1"
  s.summary = "Virtual gem depending on vPim's iCalendar support for ruby"
  s.description = <<'---'
This is a virtual gem, it exists to depend on vPim, which provides iCalendar
support for ruby. You can install vPim directly.
---
  s.add_dependency("vpim")
end

#require 'hoe'
#
#Hoe.new(spec_vpim.name, spec_vpim.version) do |p|
# p.rubyforge_name = "vpim"
# p.remote_rdoc_dir = '' # Release to root
#end
#

if $0==__FILE__
  Gem::Builder.new(spec_vpim).build
  Gem::Builder.new(spec_vpim_icalendar).build
end
Something went wrong with that request. Please try again.