diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-07-15 09:43:02 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-07-15 09:47:45 +0200 |
commit | c0e369821ab117dcbf004ec718a4c669b5d034ac (patch) | |
tree | 44d8d558d9ddbbbe46600e30e1f9bb2c311f0411 | |
parent | dev-ruby/mini_magick: drop 4.12.0 (diff) | |
download | gentoo-c0e369821ab117dcbf004ec718a4c669b5d034ac.tar.gz gentoo-c0e369821ab117dcbf004ec718a4c669b5d034ac.tar.bz2 gentoo-c0e369821ab117dcbf004ec718a4c669b5d034ac.zip |
dev-ruby/nkf: new package, add 0.2.0
Extracted from dev-lang/ruby, migrated keywords accordingly.
New dependency for dev-ruby/mechanize.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/nkf/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/nkf/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/nkf/nkf-0.2.0.ebuild | 33 |
3 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/nkf/Manifest b/dev-ruby/nkf/Manifest new file mode 100644 index 000000000000..8a77413d01a3 --- /dev/null +++ b/dev-ruby/nkf/Manifest @@ -0,0 +1 @@ +DIST nkf-0.2.0.tar.gz 196728 BLAKE2B 198575e067d1a61aedd61468c28a55a495057a182c1f8f492ca96f38cb643698db5b00cdf9d69121d852b86859dda7c29367e62e78e21c76c69f7af22cd7f9ca SHA512 a3d06d0797368d15d118dac621c8230816ffc0af852c998f21d095acb09a3600c6d82e3f540672a2f11536e1f16c70335388e5c2dfe9f06b957caf635615bff5 diff --git a/dev-ruby/nkf/metadata.xml b/dev-ruby/nkf/metadata.xml new file mode 100644 index 000000000000..c872c7296592 --- /dev/null +++ b/dev-ruby/nkf/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/nkf</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/nkf/nkf-0.2.0.ebuild b/dev-ruby/nkf/nkf-0.2.0.ebuild new file mode 100644 index 000000000000..130f9b05866b --- /dev/null +++ b/dev-ruby/nkf/nkf-0.2.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTENSIONS=(ext/nkf/extconf.rb) +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="nkf.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby extension for Network Kanji Filter" +HOMEPAGE="https://github.com/ruby/nkf" +SRC_URI="https://github.com/ruby/nkf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_bdepend "test? ( dev-ruby/test-unit )" + +all_ruby_prepare() { + sed -e 's:__dir__:".":' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test:test/lib -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die +} |