Skip to content

Commit

Permalink
dev-ruby/strscan: import 3.0.1
Browse files Browse the repository at this point in the history
Extracted from dev-lang/ruby, keywords have been migrated.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Hans de Graaff <[email protected]>
  • Loading branch information
graaff committed Feb 13, 2022
1 parent f148836 commit 9f29218
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/strscan/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST strscan-3.0.1.tar.gz 28111 BLAKE2B 4623fe6fd74a9ca30ba1818fe548fcc793f1e22798bba9d561299ccdc493dfa5deafec072b193532c92116307c5b79f2c7c7bd362602b0ba3a0d1ea778a1d528 SHA512 7cd37a24dbec02bfade6e7440139de52d149ce1c196a1ea73b5b09e4096a0a99b26d0680498bd27bd443befe62c806bb94cec08c2fbe097c4724446b56c8bfa0
11 changes: 11 additions & 0 deletions dev-ruby/strscan/metadata.xml
Original file line number Diff line number Diff line change
@@ -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>[email protected]</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">ruby/strscan</remote-id>
</upstream>
</pkgmetadata>
36 changes: 36 additions & 0 deletions dev-ruby/strscan/strscan-3.0.1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 9f29218

Please sign in to comment.