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 8D8F615808C for ; Sat, 12 Mar 2022 07:21:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80037E092F; Sat, 12 Mar 2022 07:21:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 4C3C7E092F for ; Sat, 12 Mar 2022 07:21:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 1DB23342E42 for ; Sat, 12 Mar 2022 07:21:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50A2B32E 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.35b1301bf586c021c2376a05acd231cbf48775f1.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/racc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/racc/racc-1.5.2-r2.ebuild X-VCS-Directories: dev-ruby/racc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 35b1301bf586c021c2376a05acd231cbf48775f1 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: 39902982-6f85-4bc5-b284-877d13e03e83 X-Archives-Hash: 347f55705abe8c5ff0fe1c2b2705bfa0 commit: 35b1301bf586c021c2376a05acd231cbf48775f1 Author: Hans de Graaff gentoo org> AuthorDate: Sat Mar 12 07:17:48 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=35b1301b dev-ruby/racc: add ruby31; EAPI 8 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/racc/racc-1.5.2-r2.ebuild | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/dev-ruby/racc/racc-1.5.2-r2.ebuild b/dev-ruby/racc/racc-1.5.2-r2.ebuild new file mode 100644 index 000000000000..223c5c03648e --- /dev/null +++ b/dev-ruby/racc/racc-1.5.2-r2.ebuild @@ -0,0 +1,60 @@ +# 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_TASK_DOC="docs" +RUBY_FAKEGEM_EXTRADOC="README.rdoc README.ja.rdoc TODO ChangeLog" + +RUBY_FAKEGEM_GEMSPEC="racc.gemspec" + +RUBY_FAKEGEM_EXTENSIONS=(ext/racc/cparse/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/racc/cparse" + +inherit multilib ruby-fakegem + +DESCRIPTION="A LALR(1) parser generator for Ruby" +HOMEPAGE="https://github.com/tenderlove/racc" +SRC_URI="https://github.com/tenderlove/racc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +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 test" + +ruby_add_rdepend "virtual/ruby-ssl" + +ruby_add_bdepend "dev-ruby/rake + test? ( dev-ruby/minitest )" + +all_ruby_prepare() { + sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed" + + sed -i -e 's/, :isolate//' Rakefile || die + sed -i -e '/bundler/ s:^:#:' -e '/rdoc/,/^end/ s:^:#:' Rakefile || die + + # Avoid depending on rake-compiler since we don't use it to compile + # the extension. + sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile + sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile + # Which means we need to generate the parser file here + rake lib/racc/parser-text.rb || die + + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + PATH="bin:${PATH}" ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die +} + +all_ruby_install() { + all_fakegem_install + + dodoc -r rdoc + + docinto examples + dodoc -r sample +}