summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-02-02 08:06:57 +0100
committerHans de Graaff <graaff@gentoo.org>2017-02-02 08:06:57 +0100
commit7c71d8106c560909a81e3ae4afa8f971faf68256 (patch)
tree743ec518d06872a664acdfadb6e4734c402a5a7c /dev-ruby/dotenv
parentdev-ruby/sexp_processor: add 4.8.0 (diff)
downloadgentoo-7c71d8106c560909a81e3ae4afa8f971faf68256.tar.gz
gentoo-7c71d8106c560909a81e3ae4afa8f971faf68256.tar.bz2
gentoo-7c71d8106c560909a81e3ae4afa8f971faf68256.zip
dev-ruby/dotenv: add 2.2.0
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-ruby/dotenv')
-rw-r--r--dev-ruby/dotenv/Manifest1
-rw-r--r--dev-ruby/dotenv/dotenv-2.2.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/dotenv/Manifest b/dev-ruby/dotenv/Manifest
index b96589843146..9131985d5d9f 100644
--- a/dev-ruby/dotenv/Manifest
+++ b/dev-ruby/dotenv/Manifest
@@ -1 +1,2 @@
DIST dotenv-2.1.1.tar.gz 14019 SHA256 c1fb9da9dd85b9e92026e49766de2ef13117b7adbcb9a21876ae478653da3d59 SHA512 6e9e6604d698ae3bcdf2c10bcbdd169b278477eafd532c4031f592db1daf4e000e57486a4e98d032718c555cf6032189947bae02737bf2a46819b8638a8dc8ab WHIRLPOOL ddbf38c95633040774ae31268bf7eecb1a5d5c31f3cec5edad1e5fecec621d39d2418dfe73082dd3501d90d6bf9349b7261a1e8fce26599dab1c1fe74813709e
+DIST dotenv-2.2.0.tar.gz 15246 SHA256 1b6db209aea6a07ca7605d0abe2560e7d3d36a8a5df3ca6ec1961d176f12a062 SHA512 c681f017f85d3aaf4881519b7bc5616b1bf2dcfe5f42be1d4b279f0c61936c16378664103908c913d283bb0e58cd3128ea88451f0702337c5171a46133d497d6 WHIRLPOOL 006c970d4b25c9bad1c6eb99ed21fe3828ce9ec4afa34ec93011b1f999083b98849a7078d390ecd0c88d216cdd62ed9f5484e411cc2cea43fa2dcbfb3755ab56
diff --git a/dev-ruby/dotenv/dotenv-2.2.0.ebuild b/dev-ruby/dotenv/dotenv-2.2.0.ebuild
new file mode 100644
index 000000000000..6cb11d18e5cf
--- /dev/null
+++ b/dev-ruby/dotenv/dotenv-2.2.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_EXTRADOC="README.md Changelog.md"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Loads environment variables from .env into ENV"
+HOMEPAGE="https://github.com/bkeepers/dotenv"
+SRC_URI="https://github.com/bkeepers/dotenv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~arm ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="2"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/spring dev-ruby/rails )"
+
+all_ruby_prepare() {
+ sed -i -e '/:guard/,/end/ s:^:#:' \
+ -e '5igem "rspec", "~> 3.0"' Gemfile || die
+
+ sed -i -e '/rubocop/ s:^:#:' -e 's/git ls-files/find/' dotenv.gemspec || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s:ruby -v:${RUBY} -v:g" spec/dotenv/parser_spec.rb || die
+}