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 4127C15810F for ; Mon, 12 Jun 2023 02:27:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69F12E088F; Mon, 12 Jun 2023 02:27:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5219BE088A for ; Mon, 12 Jun 2023 02:27:53 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F4C2341438 for ; Mon, 12 Jun 2023 02:27:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D2C2A94 for ; Mon, 12 Jun 2023 02:27:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1686536843.e9777366728e865f52b85b151c8a160a5229775f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/slim/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/slim/Manifest dev-ruby/slim/slim-5.1.1.ebuild X-VCS-Directories: dev-ruby/slim/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e9777366728e865f52b85b151c8a160a5229775f X-VCS-Branch: master Date: Mon, 12 Jun 2023 02:27:49 +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: 53ae2161-9cd3-4340-8d13-a05f11a06c9d X-Archives-Hash: a33a63f8ae894575c7149c8da15777fb commit: e9777366728e865f52b85b151c8a160a5229775f Author: Sam James gentoo org> AuthorDate: Mon Jun 12 01:59:55 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jun 12 02:27:23 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9777366 dev-ruby/slim: add 5.1.1 Signed-off-by: Sam James gentoo.org> dev-ruby/slim/Manifest | 1 + dev-ruby/slim/slim-5.1.1.ebuild | 71 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-ruby/slim/Manifest b/dev-ruby/slim/Manifest index 1c9a02396628..70d33e21cc6e 100644 --- a/dev-ruby/slim/Manifest +++ b/dev-ruby/slim/Manifest @@ -1,2 +1,3 @@ DIST slim-4.1.0.gem 103424 BLAKE2B 87de8411d6284569ac56366d4e2f3ee351c6908001cbda2926312f25c1c39520662371e826493d1346722bb507348bd8c117f3b0447b433bdb406435b80a70e2 SHA512 a929edcd1b194bc6abddf5757e0e942835f6c5e1555aa7bf021b0e850d74c9777637a2a0eafbdf2de7f0f0574eb03866c562826c656adcc0517cc4bfcb5ca897 DIST slim-5.1.0.gem 100352 BLAKE2B 19d0bea76a932d18a39fab30d0b1f2cd4f8f2eba108d79d2992112b568461cbc854a99d70b6ea97622e1928db7f33434221a054d77c5d3fa989da639fae176e5 SHA512 2cc39659a5c36cf37e3eea240f5326552fac0be8a42ff6bfe62837467bb77f8841b34d838d5a6945ff7195eb1e59842c64e04944d6882d132819f1ffbf609f50 +DIST slim-5.1.1.gem 100864 BLAKE2B ea5c469702dca808bdc0555044a8d6a5a0b34e8d5b03a9c97e6e31ccb169725be6f76fc1f252d14673e92a53ac1a42caf023a3d1bacb66c4091710f8e9772c1a SHA512 935d488ad11478b28d51125ddbf7f0cb81f7791587bb69c7ead434eacf44c309958459dcff7228b6562b8972d6cb7125f3d451d21bfa2ded2f7ee1b55703d1f4 diff --git a/dev-ruby/slim/slim-5.1.1.ebuild b/dev-ruby/slim/slim-5.1.1.ebuild new file mode 100644 index 000000000000..7f09879cc6ed --- /dev/null +++ b/dev-ruby/slim/slim-5.1.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_RECIPE_DOC="rake" +RUBY_FAKEGEM_TASK_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A template language aiming to reduce the syntax to the essential parts" +HOMEPAGE="https://slim-template.github.io/" + +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc" + +ruby_add_rdepend " + !dev-ruby/slim:5 + >=dev-ruby/tilt-2.1.0:* + >=dev-ruby/temple-0.10.0:0.7 +" +# sass tests are currently disabled: https://github.com/slim-template/slim/commit/bd9d4601cd8142aa9fdbc0d87c9f9132a9a56cda +ruby_add_bdepend " + doc? ( + dev-ruby/yard + dev-ruby/redcarpet + ) + test? ( + dev-ruby/minitest:5 + dev-ruby/kramdown:2 + dev-ruby/redcarpet + >=dev-ruby/test-unit-3.5 + ) +" + +all_ruby_prepare() { + sed -i -e '/bundler/I s:^:#:' Rakefile || die + + # This sinatra code expects tests to be installed but we strip those. + sed -i -e "s/require 'sinatra'/require 'bogussinatra'/" Rakefile || die + + # Add missing include, bug 816573 + sed -i -e "1irequire 'ostruct'" test/core/test_code_evaluation.rb || die + + # Avoid tests for things we don't have. The builder test does not pass with tilt 2.x + sed -i -e '/test_wip_render_with_asciidoc/,/^ end/ s:^:#:' \ + -e '/test_render_with_wiki/,/^ end/ s:^:#:' \ + -e '/test_render_with_creole/,/^ end/ s:^:#:' \ + -e '/test_render_with_builder/,/^ end/ s:^:#:' \ + -e '/test_render_with_org/,/^ end/ s:^:#:' test/core/test_embedded_engines.rb || die + + # Avoid test failing due to tilt providing yet another markdown implementation + sed -i -e '/test_render_with_markdown/askip "new tilt version"' test/core/test_embedded_engines.rb || die + sed -i -e '/test_no_translation_of_embedded/askip "new tilt version"' test/translator/test_translator.rb || die + + sed -i -e '/s\.files/ s/git ls-files/find . -type f -print/' \ + -e '/s\.executables/ s:git ls-files -- bin/\*:find bin -type f -print:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + sed -i -e '/Open3/ s:ruby:'${RUBY}':' test/core/test_commands.rb || die +}