From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E30DA158094 for ; Sun, 17 Jul 2022 08:48:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 051BEE0E18; Sun, 17 Jul 2022 08:48:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B74BCE0E17 for ; Sun, 17 Jul 2022 08:48:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9FBC7340FB4 for ; Sun, 17 Jul 2022 08:48:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D3650326 for ; Sun, 17 Jul 2022 08:48:39 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1658047707.7e8dbdf53eea35b3e3e702174e535c4ad12f01b8.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/commonmarker/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/commonmarker/Manifest dev-ruby/commonmarker/commonmarker-0.23.5.ebuild dev-ruby/commonmarker/metadata.xml X-VCS-Directories: dev-ruby/commonmarker/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 7e8dbdf53eea35b3e3e702174e535c4ad12f01b8 X-VCS-Branch: master Date: Sun, 17 Jul 2022 08:48:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bfe05fe2-c778-46ab-916b-b78df6b5b4f0 X-Archives-Hash: 79b269731a341898179e737dd2880cc6 commit: 7e8dbdf53eea35b3e3e702174e535c4ad12f01b8 Author: Hans de Graaff gentoo org> AuthorDate: Sun Jul 17 08:07:51 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Jul 17 08:48:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e8dbdf5 dev-ruby/commonmarker: new package, add 0.23.5 Closes: https://bugs.gentoo.org/858410 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/commonmarker/Manifest | 1 + dev-ruby/commonmarker/commonmarker-0.23.5.ebuild | 41 ++++++++++++++++++++++++ dev-ruby/commonmarker/metadata.xml | 11 +++++++ 3 files changed, 53 insertions(+) diff --git a/dev-ruby/commonmarker/Manifest b/dev-ruby/commonmarker/Manifest new file mode 100644 index 000000000000..2b47d8f897ed --- /dev/null +++ b/dev-ruby/commonmarker/Manifest @@ -0,0 +1 @@ +DIST commonmarker-0.23.5.tar.gz 165248 BLAKE2B 2d29a0ece01b5000bbb7192133e6abd0bf50281e90ae1d7036ffc49d8576bf378845c782d65b462274b4586b99ee3f46b7312cd0d0ac71456de9a4dacdccb8c3 SHA512 ccc76f0a2eb40d547e604cb4d10b922eceab40a0d0e07f00c60a5b307f3dcb74984274b231c38fe3ba97c892dea54fd325486ba20aa2b0087e99d6bca3e3845c diff --git a/dev-ruby/commonmarker/commonmarker-0.23.5.ebuild b/dev-ruby/commonmarker/commonmarker-0.23.5.ebuild new file mode 100644 index 000000000000..4ac2e88f8d79 --- /dev/null +++ b/dev-ruby/commonmarker/commonmarker-0.23.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTENSIONS=(ext/commonmarker/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/commonmarker" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="commonmarker.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A fast, safe, extensible parser for CommonMark, wrapping the official libcmark library" +HOMEPAGE="https://github.com/gjtorikian/commonmarker" +SRC_URI="https://github.com/gjtorikian/commonmarker/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +# app-text/cmark is bundled in a modified way and integrated with the gem code + +all_ruby_prepare() { + sed -i -e '/focus/ s:^:#:' test/test_helper.rb || die + + # Avoid tests depending on unbundled cmark specification files + rm -f test/test_{spec,smartpunct}.rb || die + +} + +each_ruby_prepare() { + # Use current ruby version + sed -i -e '/make_bin/,/end/ s:ruby:'${RUBY}':' test/test_helper.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each {|f| require f}' || die +} diff --git a/dev-ruby/commonmarker/metadata.xml b/dev-ruby/commonmarker/metadata.xml new file mode 100644 index 000000000000..67b2b482f495 --- /dev/null +++ b/dev-ruby/commonmarker/metadata.xml @@ -0,0 +1,11 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + gjtorikian/commonmarker + +