From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 908B315808B for ; Sat, 12 Mar 2022 07:21:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C07CE0929; Sat, 12 Mar 2022 07:21:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22018E0929 for ; Sat, 12 Mar 2022 07:21:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 021A0342DB5 for ; Sat, 12 Mar 2022 07:21:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 176D832A for ; Sat, 12 Mar 2022 07:21:32 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1647069680.1dc1fdd8f4218328a49e6a898b479e3dfe7cfcca.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rake/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rake/rake-13.0.6-r1.ebuild X-VCS-Directories: dev-ruby/rake/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 1dc1fdd8f4218328a49e6a898b479e3dfe7cfcca X-VCS-Branch: master Date: Sat, 12 Mar 2022 07:21:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e5b6ee0-f1fa-49c3-afe2-a12649440d6b X-Archives-Hash: 5f59234b44603d016b76ff7135d2f2b8 commit: 1dc1fdd8f4218328a49e6a898b479e3dfe7cfcca Author: Hans de Graaff gentoo org> AuthorDate: Sat Mar 12 07:16:44 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Mar 12 07:21:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dc1fdd8 dev-ruby/rake: add ruby31; EAPI 8 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rake/rake-13.0.6-r1.ebuild | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/dev-ruby/rake/rake-13.0.6-r1.ebuild b/dev-ruby/rake/rake-13.0.6-r1.ebuild new file mode 100644 index 000000000000..56b5c8015f57 --- /dev/null +++ b/dev-ruby/rake/rake-13.0.6-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-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 -e 's/git ls-files -z/find * -type f -print0/' \ + -e "s:_relative ': './:" \ + -i ${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} +}