dev-ruby/syslog: add 0.3.0

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-03-14 08:55:12 +01:00
parent ef505a3fce
commit 2984780cd4
2 changed files with 38 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST syslog-0.2.0.tar.gz 15018 BLAKE2B 19ed351cb7d1f4a1ddef5ce2bd84b5a63c975998020c12569b16c531dfd5959302a7adf62d9103c05c2fcb000c074d579e2aed13eafd485679669a66d48f2328 SHA512 949cc3cabe6cf78f127e8e06145e83c35dda848ad2409d7fc6a7171aca4cfff89df1e340978a8d80ca4bf8c3337aaa4731948d1a5fea1d165cf728cf0397aead
DIST syslog-0.3.0.tar.gz 15839 BLAKE2B a81d4b2ce9cc66ee8dd42e0738f20284fe956c790deb614750785ed083d02a74283887ac08bad2661bf4c8c61d35db6dadf7d6450316222ecd427676df482a78 SHA512 9fc82609c483246147b09561227be4249e5aed602688910a36ccaf05067215c21a3840ca4a4dcd0078d3d6f799b9f9a2c83437c18e6ff054297f2e004f5393be

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_EXTENSIONS=(ext/syslog/extconf.rb)
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_GEMSPEC="syslog.gemspec"
inherit ruby-fakegem
DESCRIPTION="Ruby interface for the POSIX system logging facility"
HOMEPAGE="https://github.com/ruby/syslog"
SRC_URI="https://github.com/ruby/syslog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="test"
ruby_add_rdepend "dev-ruby/logger"
ruby_add_bdepend "test? ( dev-ruby/test-unit )"
all_ruby_prepare() {
sed -e 's/__dir__/"."/' \
-e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
-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
}