diff options
| author | Ian Delaney <idella4@gentoo.org> | 2015-12-24 16:30:15 +0800 |
|---|---|---|
| committer | Ian Delaney <idella4@gentoo.org> | 2015-12-24 16:31:24 +0800 |
| commit | 98b51f2c00d5f8b675f111e97e759e8eeea6125e (patch) | |
| tree | b87a9367d03c5e98613c20b0fd107f8b9be43268 /dev-ruby/omniauth/omniauth-1.3.1.ebuild | |
| parent | 3bf393ce26cc918d2da1dd69c842ba54a53c7067 (diff) | |
| parent | 6202dcf8e261f73a44bb94ba103555c3407bcbec (diff) | |
| download | gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.tar.gz gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.tar.bz2 gentoo-98b51f2c00d5f8b675f111e97e759e8eeea6125e.zip | |
Merge remote-tracking branch 'remotes/Coacher/fwknop-2.6.8-bump'
Pull request: https://github.com/gentoo/gentoo/pull/520
Diffstat (limited to 'dev-ruby/omniauth/omniauth-1.3.1.ebuild')
| -rw-r--r-- | dev-ruby/omniauth/omniauth-1.3.1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/omniauth/omniauth-1.3.1.ebuild b/dev-ruby/omniauth/omniauth-1.3.1.ebuild new file mode 100644 index 000000000000..86f9ee6fd165 --- /dev/null +++ b/dev-ruby/omniauth/omniauth-1.3.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A generalized Rack framework for multiple-provider authentication" +HOMEPAGE="https://github.com/intridea/omniauth" +SRC_URI="https://github.com/intridea/omniauth/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0" +IUSE="" + +ruby_add_rdepend "dev-ruby/rack:* + >=dev-ruby/hashie-1.2:* <dev-ruby/hashie-4:*" +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 '/RUBY_VERSION/,/^end/ s:^:#:' spec/helper.rb || die "sed failed" + # maruku fails, resorting to default markdown implementation + sed -i -e '/maruku/d' .yardopts || die "sed failed" + + sed -i -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +all_ruby_compile() { + all_fakegem_compile + + if use doc ; then + yard || die "yard failed" + fi +} |
