forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: portage-2.3.3
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST twitter-5.16.0.tar.gz 525064 SHA256 3edc39b1fbe54b1fd4f38855bd0c5b64859ef68ba15a6ae15bb119a1ab93e3a6 SHA512 7f80203a6324644adf9e97834310892dd1e4db87962aa9abb7055d7713ee511a014234b74f5ecf74f40e3296aa1437f148519fd010b9d85e8fd73d4b19a78d2e WHIRLPOOL 395490c387ed665bdc7f77caa5c2bc1df92d2cbdf8c6ceb593580b28bc89d6ce08a8908a051e7743faf528abf597ea7e1ce1600c52f0aaa690e562f506d5663b | ||
DIST twitter-5.17.0.tar.gz 525292 SHA256 176888c63997fa82954b483f107a8e279517037657ffb823bc827c29aed34d90 SHA512 5b663a5984258229c05cd0db94ba586ed9b2491dc8da32fb444ca4a03f1e2cdc65201d8a4347ea3f05620506471b73e215cbb6feef17413c197e70679e02d706 WHIRLPOOL e1e7bfb7a89fe90d6dc99b10d5540128212838761223b8e9030c3e8fed5784d90963c9e14766e03dd87426ffe63ac8e98536d35654b111d9a7540c89a48617e2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
USE_RUBY="ruby20 ruby21 ruby22" | ||
|
||
RUBY_FAKEGEM_RECIPE_DOC="yard" | ||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" | ||
|
||
RUBY_FAKEGEM_GEMSPEC="twitter.gemspec" | ||
|
||
inherit ruby-fakegem | ||
|
||
DESCRIPTION="Ruby wrapper around the Twitter API" | ||
HOMEPAGE="https://sferik.github.com/twitter/" | ||
SRC_URI="https://github.com/sferik/twitter/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="MIT" | ||
SLOT="5" | ||
KEYWORDS="~amd64" | ||
IUSE="" | ||
|
||
ruby_add_rdepend " | ||
>=dev-ruby/addressable-2.3 | ||
>=dev-ruby/buftok-0.2.0 | ||
>=dev-ruby/equalizer-0.0.10 | ||
=dev-ruby/faraday-0* | ||
>=dev-ruby/faraday-0.9.0 | ||
dev-ruby/http:1.0 | ||
>=dev-ruby/http_parser_rb-0.6.0 | ||
>=dev-ruby/json-1.8:0 | ||
>=dev-ruby/memoizable-0.4.0 | ||
>=dev-ruby/naught-1.0 | ||
=dev-ruby/simple_oauth-0.3* | ||
>=dev-ruby/simple_oauth-0.3.0" | ||
|
||
ruby_add_bdepend "test? ( | ||
dev-ruby/rspec:3 | ||
dev-ruby/webmock:0 | ||
>=dev-ruby/timecop-0.6.1 | ||
) | ||
doc? ( dev-ruby/yard )" | ||
|
||
all_ruby_prepare() { | ||
sed -i -e '/equalizer/ s/0.0.10/~>0.0.10/' ${RUBY_FAKEGEM_GEMSPEC} || die | ||
|
||
# rm Gemfile || die | ||
sed -i -e '/[Bb]undler/d' Rakefile || die "Unable to remove bundler code." | ||
|
||
sed -i -e '/simplecov/,/^ end/ s:^:#:' \ | ||
-e '1igem "webmock", "~>1.0"' spec/helper.rb || die | ||
|
||
# Avoid a spec that fails due to changes in dependencies. | ||
sed -i -e '/#reverse_token/,/^ end/ s:^:#:' \ | ||
spec/twitter/rest/oauth_spec.rb | ||
} | ||
|
||
each_ruby_test() { | ||
CI=true RSPEC_VERSION=3 ruby-ng_rspec || die | ||
} |