diff options
Diffstat (limited to 'dev-ruby/strscan')
-rw-r--r-- | dev-ruby/strscan/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/strscan/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/strscan/strscan-3.0.1.ebuild | 36 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/strscan/Manifest b/dev-ruby/strscan/Manifest new file mode 100644 index 000000000000..9d97720cd8a9 --- /dev/null +++ b/dev-ruby/strscan/Manifest @@ -0,0 +1 @@ +DIST strscan-3.0.1.tar.gz 28111 BLAKE2B 4623fe6fd74a9ca30ba1818fe548fcc793f1e22798bba9d561299ccdc493dfa5deafec072b193532c92116307c5b79f2c7c7bd362602b0ba3a0d1ea778a1d528 SHA512 7cd37a24dbec02bfade6e7440139de52d149ce1c196a1ea73b5b09e4096a0a99b26d0680498bd27bd443befe62c806bb94cec08c2fbe097c4724446b56c8bfa0 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 +} |