Convert to ruby-fakegem.
authorHans de Graaff <graaff@gentoo.org>
Fri, 26 Feb 2010 07:06:06 +0000 (07:06 +0000)
committerHans de Graaff <graaff@gentoo.org>
Fri, 26 Feb 2010 07:06:06 +0000 (07:06 +0000)
Package-Manager: portage-2.1.7.16/cvs/Linux x86_64

dev-ruby/oauth/ChangeLog
dev-ruby/oauth/files/oauth-0.3.6-newgem.patch [new file with mode: 0644]
dev-ruby/oauth/oauth-0.3.6-r1.ebuild [new file with mode: 0644]

index e905296fdfd080ea5f5e0d10b8bd2077a05d0375..4138a72ecfd3a3fb31fe9815c39dbcfdaa0df9c8 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-ruby/oauth
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/ChangeLog,v 1.6 2009/12/09 20:03:20 graaff Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/ChangeLog,v 1.7 2010/02/26 07:06:04 graaff Exp $
+
+*oauth-0.3.6-r1 (25 Feb 2010)
+
+  25 Feb 2010; Hans de Graaff <graaff@gentoo.org> +oauth-0.3.6-r1.ebuild,
+  +files/oauth-0.3.6-newgem.patch:
+  Convert to ruby-fakegem.
 
   09 Dec 2009; Hans de Graaff <graaff@gentoo.org> -oauth-0.3.5.ebuild:
   Remove old version.
diff --git a/dev-ruby/oauth/files/oauth-0.3.6-newgem.patch b/dev-ruby/oauth/files/oauth-0.3.6-newgem.patch
new file mode 100644 (file)
index 0000000..d10136c
--- /dev/null
@@ -0,0 +1,27 @@
+Patch out newgem since we don't need it to install and it currently
+isn't available in Gentoo.
+
+--- Rakefile.orig      2010-02-25 07:56:59.000000000 +0100
++++ Rakefile   2010-02-25 07:56:28.000000000 +0100
+@@ -1,4 +1,4 @@
+-%w[rubygems rake rake/clean fileutils newgem rubigen hoe].each { |f| require f }
++%w[rubygems rake rake/clean fileutils rubigen hoe].each { |f| require f }
+ $LOAD_PATH << File.dirname(__FILE__) + '/lib'
+ require 'oauth'
+ require 'oauth/version'
+@@ -18,7 +18,6 @@
+     ['ruby-hmac','>= 0.3.1']
+   ]
+   p.extra_dev_deps = [
+-    ['newgem', ">= #{::Newgem::VERSION}"],
+     ['actionpack'],
+     ['rack']
+   ]
+@@ -29,7 +28,6 @@
+   p.rsync_args = '-av --delete --ignore-errors'
+ end
+ 
+-require 'newgem/tasks' # load /tasks/*.rake
+ Dir['tasks/**/*.rake'].each { |t| load t }
+ 
+ # TODO - want other tests/tasks run by default? Add them to the list
diff --git a/dev-ruby/oauth/oauth-0.3.6-r1.ebuild b/dev-ruby/oauth/oauth-0.3.6-r1.ebuild
new file mode 100644 (file)
index 0000000..7f7ec01
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/oauth-0.3.6-r1.ebuild,v 1.1 2010/02/26 07:06:05 graaff Exp $
+
+EAPI="2"
+USE_RUBY="ruby18"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+
+RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc TODO"
+
+RUBY_FAKEGEM_EXTRAINSTALL="script"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A RubyGem for implementing both OAuth clients and servers."
+HOMEPAGE="http://oauth.rubyforge.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RUBY_PATCHES=( "oauth-0.3.6-newgem.patch" )
+
+ruby_add_bdepend test virtual/ruby-test-unit
+
+ruby_add_rdepend ">=dev-ruby/ruby-hmac-0.3.1 dev-ruby/rubigen"
+
+all_ruby_prepare() {
+       # Remove test that requires an insecure version of actionpack
+       # http://github.com/mojodna/oauth/issues/#issue/12
+       rm -f test/test_action_controller_request_proxy.rb || die "Unable to remove failing test."
+}