summaryrefslogtreecommitdiff
path: root/dev-ruby/racc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
commit129160ec854dca4c3fedb5bcfbcb56930371da0f (patch)
tree53bf797418ac5e9b99c41ca0382c87b82421e5de /dev-ruby/racc
parent441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff)
gentoo new year resync : 01.01.2021
Diffstat (limited to 'dev-ruby/racc')
-rw-r--r--dev-ruby/racc/Manifest2
-rw-r--r--dev-ruby/racc/racc-1.5.2.ebuild70
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-ruby/racc/Manifest b/dev-ruby/racc/Manifest
index 671213509deb..d5ae0decf7e3 100644
--- a/dev-ruby/racc/Manifest
+++ b/dev-ruby/racc/Manifest
@@ -1,5 +1,7 @@
DIST racc-1.4.14.gem 116224 BLAKE2B 67abd0e9bed46d7c589c62426943c8594d3b119328cd08576247727b11beb9e32ea45c54d0aadefc26691972fc40aad1b009c55bcd90a5b89aaf37e37a1097c1 SHA512 7401ad1722c92101c24f881226e44bd8b21033c7bae8b13cbf329f9b426c312ce61d14ce584b4f94d6863b77f30d6ebccf26f9fca2de724f8e0659f0e2d2173f
DIST racc-1.4.16.tar.gz 451711 BLAKE2B d3bcb72a69df255d5468054541c281bf7bd3225eb3ba1997fccd6dcd219d3a8890e3df7b43fe106ffa3fc63a8d8079cab83e7096b0737f5bbacf816b7c3bbfb2 SHA512 7cdf6a62449e8f39984a8b27706045e509828a93a72d112b22a4c467184a63ee23b4b2048ef7017846053fb2ff4021aa43d96a6147fa271257df584ab3d66f38
+DIST racc-1.5.2.tar.gz 434903 BLAKE2B cfbaa09c1b2e233e82228075cf979c54688e51e702cade072d42b2952100b74a53e536d904cbbf15cb04ffc74018b48e5b27a5773adf6240614c815250d47119 SHA512 73c68dd75fa35727fd93a76886dd77afbb7032271e535c6e885a4ede6822052a93a610dec8a1f84daf24903c749b30a185831ec96d651588db2a2524f3dcd477
EBUILD racc-1.4.14.ebuild 1834 BLAKE2B db2b7502c1b78849f4a869a59e57a03aa77c6822b71655c983034a36c6e7aec1a1838ca08d0458870e305b0c5082348936f0055be8fbc06cff511a8069cdabeb SHA512 3b73e83f9441a3fc7f6974c2bbf7fed996bada375f8c73ae48c18492191a9725f65927eaaf7c601ece330c2e3cfe50d608e399120edab7cd079733f3e22165ce
EBUILD racc-1.4.16-r1.ebuild 1940 BLAKE2B e7b94991196922c0db8e15ca7d54d9bee6a3d429c16c4a5e8a2a9ced4a2b5794e26e7b46f5ecb60ea090b0dd398f4e3eea070fa8e1c80a7be9e9b4ffa0c49517 SHA512 aa517d186b326cedfb265f994fd2d47087a9af0ef3c800df30a94c11891538a9c67f4714b91ad4f320e25e701bf2ee65be214d276f93c8bdfbce3ac5080512ac
+EBUILD racc-1.5.2.ebuild 2012 BLAKE2B 717d4a7e448eb778cfa5efea6c67250525c3cce2d3b05a255e8dc4f7d38707d3bbaf3b2fd5559f8ee049d768cf8624dbf4c123b8fc3ef104fffd041b0bbbf63e SHA512 178f1d218259608564dadf79370e1479263278281e38f018d861cac52c6f8d4c65d1e45c6955607c49d5408ed779e5abf35c2be5dd9fdf5974eaa8a12ac30edf
MISC metadata.xml 331 BLAKE2B 67dac6bbbf2927c5fa694a0de98635c952eab8ceffa913aac7762c88625957b83f7bbeb22dbab5adb445b306e7bb5efed458e23b9a2c8137e65c36b4d12744fa SHA512 cf609ee98391504a83037f2fb2601b7b4f5dcb3ce58be9dfb895b8b961ed54e19d9782979cf24f1c1187087c1a8482e755d24abec089187870dd6361f17559b1
diff --git a/dev-ruby/racc/racc-1.5.2.ebuild b/dev-ruby/racc/racc-1.5.2.ebuild
new file mode 100644
index 000000000000..f4a4b873b916
--- /dev/null
+++ b/dev-ruby/racc/racc-1.5.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc README.ja.rdoc TODO ChangeLog"
+
+RUBY_FAKEGEM_GEMSPEC="racc.gemspec"
+
+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 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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_prepare() {
+ ${RUBY} -Cext/racc/cparse extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake V=1 -Cext/racc/cparse
+ # Copy over the file here so that we don't have to do
+ # special ruby install for JRuby and the other
+ # implementations.
+ mkdir -p lib/racc/cparse || die
+ cp -l ext/racc/cparse/cparse$(get_modname) lib/racc/cparse/cparse$(get_modname) || 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
+}