summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/rake/Manifest1
-rw-r--r--dev-ruby/rake/rake-13.0.1.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/rake/Manifest b/dev-ruby/rake/Manifest
index d0c400a7de31..787f13b197f2 100644
--- a/dev-ruby/rake/Manifest
+++ b/dev-ruby/rake/Manifest
@@ -1,3 +1,4 @@
DIST rake-12.3.1.tar.gz 120170 BLAKE2B c0d087911f33ccd5256462501d175e1f92fa104a3c89b62a5bc434836d5abb277a61fb12269778d0a6e3b9b831e78c0a94d9d1cd885906980fdb55e0402e398b SHA512 49736059713d609b0786d4ea89866fd5d58076977aabeda3eeee0440f10edad708cc10ba91b5224f59a8ab87ee2ab8e2674e9115f90f035c16e1fa8cba3f7649
DIST rake-12.3.3.tar.gz 122233 BLAKE2B e6c913b833092ef5d4203265bb5daf725bfc34ff3abef5a4871845ba9ee322bb8ec668564ed7fe5a2d9ce219d5b7cb00fa22d0b76fb9721f2138d2d963f16c22 SHA512 de15ea4428e845de214d35ad2155bd55cab51354feb5c7ae4c2cde5365d7a3959ee96d913346bdafacdb0542ab2d0e4c2e905514a7f97cfb18e630794bba3a3b
DIST rake-13.0.0.tar.gz 122378 BLAKE2B 996990f061a2604bf031926670043773b029d03e092513be3566763b04474d88b9bd05c085f25fc9d66b26a55e191b45fa34dc4aa215376703ad28750d71a6b1 SHA512 56038199fedd952994459967173d298afb13ae7fe9d7873dfe18cd4030b37f841ff74c944835843379cd66da96a6d1ee8c38294203f9d8e514c4331d65f5db79
+DIST rake-13.0.1.tar.gz 122821 BLAKE2B 698e92d32d4bedf523bc81636f4183ccb11da1f467d116f7ff4978e121bddc41b66160798e2c0a2b00aa8f79171a81df7e214e556adeb386bdb00a72a18b82b7 SHA512 50d82b3a9bbe194467c7669000ed9dd8e55fbb22307fbc7180aff6ab77095108a2519b3095965ad08b52cc984d0384016d7b166676f2e97394409a069d01545f
diff --git a/dev-ruby/rake/rake-13.0.1.ebuild b/dev-ruby/rake/rake-13.0.1.ebuild
new file mode 100644
index 000000000000..217d6fabbdc6
--- /dev/null
+++ b/dev-ruby/rake/rake-13.0.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+RUBY_FAKEGEM_EXTRADOC="CHANGES README.rdoc TODO"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rake.gemspec"
+
+inherit bash-completion-r1 ruby-fakegem
+
+DESCRIPTION="Make-like scripting in Ruby"
+HOMEPAGE="https://github.com/ruby/rake"
+SRC_URI="https://github.com/ruby/rake/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+DEPEND+=" app-arch/gzip"
+
+ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.8 )
+ doc? ( dev-ruby/rdoc )"
+
+all_ruby_prepare() {
+ sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+all_ruby_compile() {
+ if use doc; then
+ rdoc --title "Rake - Ruby Make" --main README.rdoc --out html lib *.rdoc doc/*/*.rdoc || die
+ rm -f html/js/*.js.gz
+ fi
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'gem "minitest", "~>5.8"; require "minitest/autorun"; Dir["test/test_*.rb"].each{|f| require f}' || die
+}
+
+all_ruby_install() {
+ ruby_fakegem_binwrapper rake
+
+ if use doc; then
+ pushd html
+ dodoc -r *
+ popd
+ fi
+
+ doman doc/rake.1
+
+ newbashcomp "${FILESDIR}"/rake.bash-completion ${PN}
+}