summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-02-11 22:15:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-02-11 22:15:13 +0000
commitdef81d73a822a57777989b2ece5bbf9413dfb625 (patch)
treefec32f0154195efa7a81194efbdedaca1663797f /dev-ruby/litc
parentAdd ~ia64-linux kw, tested to work (diff)
downloadgentoo-2-def81d73a822a57777989b2ece5bbf9413dfb625.tar.gz
gentoo-2-def81d73a822a57777989b2ece5bbf9413dfb625.tar.bz2
gentoo-2-def81d73a822a57777989b2ece5bbf9413dfb625.zip
Initial import of litc.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/litc')
-rw-r--r--dev-ruby/litc/ChangeLog10
-rw-r--r--dev-ruby/litc/files/litc-1.0.2-tests.patch40
-rw-r--r--dev-ruby/litc/litc-1.0.2.ebuild26
-rw-r--r--dev-ruby/litc/metadata.xml5
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-ruby/litc/ChangeLog b/dev-ruby/litc/ChangeLog
new file mode 100644
index 000000000000..6401aef92cdf
--- /dev/null
+++ b/dev-ruby/litc/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ruby/litc
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/ChangeLog,v 1.1 2010/02/11 22:15:12 flameeyes Exp $
+
+*litc-1.0.2 (11 Feb 2010)
+
+ 11 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org> +litc-1.0.2.ebuild,
+ +files/litc-1.0.2-tests.patch, +metadata.xml:
+ Initial import of litc.
+
diff --git a/dev-ruby/litc/files/litc-1.0.2-tests.patch b/dev-ruby/litc/files/litc-1.0.2-tests.patch
new file mode 100644
index 000000000000..c0b152705804
--- /dev/null
+++ b/dev-ruby/litc/files/litc-1.0.2-tests.patch
@@ -0,0 +1,40 @@
+diff --git a/Rakefile b/Rakefile
+index 31392f3..910113c 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -13,6 +13,8 @@ begin
+ gem.add_development_dependency "thoughtbot-shoulda"
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
++
++ task :test => :check_dependencies
+ rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+ end
+@@ -20,7 +22,7 @@ end
+ require 'rake/testtask'
+ Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+- test.pattern = 'test/**/*_test.rb'
++ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+
+@@ -28,7 +30,7 @@ begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+- test.pattern = 'test/**/*_test.rb'
++ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+ rescue LoadError
+@@ -37,8 +39,6 @@ rescue LoadError
+ end
+ end
+
+-task :test => :check_dependencies
+-
+ task :default => :test
+
+ require 'rake/rdoctask'
diff --git a/dev-ruby/litc/litc-1.0.2.ebuild b/dev-ruby/litc/litc-1.0.2.ebuild
new file mode 100644
index 000000000000..2c3df20ccb51
--- /dev/null
+++ b/dev-ruby/litc/litc-1.0.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/litc-1.0.2.ebuild,v 1.1 2010/02/11 22:15:12 flameeyes Exp $
+
+EAPI=2
+USE_RUBY="ruby18 jruby"
+
+RUBY_FAKEGEM_TASK_DOC="rerdoc"
+RUBY_FAKEGEM_DOCDIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A tiny ruby module for Amazon EC2 intance metadata"
+HOMEPAGE="http://github.com/bkaney/litc"
+
+IUSE=""
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+ruby_add_bdepend test "dev-ruby/shoulda dev-ruby/fakeweb dev-ruby/ruby-debug"
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}"/${P}-tests.patch
+}
diff --git a/dev-ruby/litc/metadata.xml b/dev-ruby/litc/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/litc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>