summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wilmott <p8952@gentoo.org>2015-08-13 19:55:04 +0100
committerPeter Wilmott <p8952@gentoo.org>2015-08-13 19:59:04 +0100
commit94d0da5ada22fff170121eedd1d5833534e2d1b9 (patch)
tree150ea882ce2378fe58ff6d4f449b1bc6e35473b0 /dev-ruby
parentVersion bump, supports explicit keys for fnv1a_ch clusters (diff)
downloadgentoo-94d0da5ada22fff170121eedd1d5833534e2d1b9.tar.gz
gentoo-94d0da5ada22fff170121eedd1d5833534e2d1b9.tar.bz2
gentoo-94d0da5ada22fff170121eedd1d5833534e2d1b9.zip
dev-ruby/omniauth: Add ruby22
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/omniauth/omniauth-1.2.2-r1.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/omniauth/omniauth-1.2.2-r1.ebuild b/dev-ruby/omniauth/omniauth-1.2.2-r1.ebuild
new file mode 100644
index 00000000000..2388407c042
--- /dev/null
+++ b/dev-ruby/omniauth/omniauth-1.2.2-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_DOCDIR="doc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A generalized Rack framework for multiple-provider authentication"
+HOMEPAGE="https://github.com/intridea/omniauth"
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/rack dev-ruby/hashie"
+ruby_add_bdepend "doc? ( dev-ruby/yard )
+ test? ( dev-ruby/rack-test )"
+
+all_ruby_prepare() {
+ sed -i -e '/[Bb]undler/d' \
+ Rakefile ${PN}.gemspec || die "sed failed"
+ sed -i -e '/simplecov/,/^end/ s:^:#:' spec/helper.rb || die "sed failed"
+ # maruku fails, resorting to default markdown implementation
+ sed -i -e '/maruku/d' .yardopts || die "sed failed"
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ yard || die "yard failed"
+ fi
+}