diff options
Diffstat (limited to 'dev-ruby/strscan')
-rw-r--r-- | dev-ruby/strscan/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/strscan/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/strscan/strscan-3.0.1.ebuild | 36 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/strscan/Manifest b/dev-ruby/strscan/Manifest new file mode 100644 index 000000000000..bcde0601908c --- /dev/null +++ b/dev-ruby/strscan/Manifest @@ -0,0 +1,3 @@ +DIST strscan-3.0.1.tar.gz 28111 BLAKE2B 4623fe6fd74a9ca30ba1818fe548fcc793f1e22798bba9d561299ccdc493dfa5deafec072b193532c92116307c5b79f2c7c7bd362602b0ba3a0d1ea778a1d528 SHA512 7cd37a24dbec02bfade6e7440139de52d149ce1c196a1ea73b5b09e4096a0a99b26d0680498bd27bd443befe62c806bb94cec08c2fbe097c4724446b56c8bfa0 +EBUILD strscan-3.0.1.ebuild 948 BLAKE2B 328594741004433aa1af9540ec165ecc3b29e60c378f6ce94f6646aa0aa63009fd9dfccb99171348ab5f399561a7f25fbaf5fa948c0eef730852ce8c689bc6a5 SHA512 5ebbcf32c5718176c98bf3fa6082242bb1b978158e905960bcbcb4ea5441483189ee721ce6857e0c32ac29b08478509d250a8321385c5639dfab4b15e8bac2f8 +MISC metadata.xml 339 BLAKE2B 78f4ae75b57e9192dcd9490dad00fe1ba916bad247dd6665b7eb6c4804ff1340c78407f6c79b777c555817f17e6ca3beb25a29f3d44be8b1865659a0b127f826 SHA512 8cd27e859d447843da29169be15647a5b7355d830f375aa59e8b39d701dd9b9c7c377c7f53c53eeea6c7222f4f9aec0ae0f7040673e24d6cdfb8b25f411819f0 diff --git a/dev-ruby/strscan/metadata.xml b/dev-ruby/strscan/metadata.xml new file mode 100644 index 000000000000..dd3a41b2a323 --- /dev/null +++ b/dev-ruby/strscan/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="github">ruby/strscan</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/strscan/strscan-3.0.1.ebuild b/dev-ruby/strscan/strscan-3.0.1.ebuild new file mode 100644 index 000000000000..48debae95824 --- /dev/null +++ b/dev-ruby/strscan/strscan-3.0.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27" + +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_GEMSPEC="strscan.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_EXTENSIONS=(ext/strscan/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="Provides lexical scanning operations on a String" +HOMEPAGE="https://github.com/ruby/strscan" +SRC_URI="https://github.com/ruby/strscan/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +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" +SLOT="$(ver_cut 1)" +IUSE="" + +all_ruby_prepare() { + sed -i -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + mkdir lib || die +} + +each_ruby_test() { + RUBYOPT="-Ilib -Itest/lib -rhelper" ${RUBY} run-test.rb || die +} |