diff options
Diffstat (limited to 'dev-ruby/slim')
-rw-r--r-- | dev-ruby/slim/Manifest | 6 | ||||
-rw-r--r-- | dev-ruby/slim/metadata.xml | 3 | ||||
-rw-r--r-- | dev-ruby/slim/slim-4.1.0-r3.ebuild | 6 | ||||
-rw-r--r-- | dev-ruby/slim/slim-5.1.0.ebuild | 70 |
4 files changed, 80 insertions, 5 deletions
diff --git a/dev-ruby/slim/Manifest b/dev-ruby/slim/Manifest index 50419e965437..43c89fac4dfa 100644 --- a/dev-ruby/slim/Manifest +++ b/dev-ruby/slim/Manifest @@ -1,4 +1,6 @@ AUX slim-4.1.0-temple.patch 1651 BLAKE2B b979b550ad138ddac448f974b3a96ca5c7b32f1586e0d3eb3581ece3fc398035bb4c6b32082a7366b946d29054ccdafa61b38adac5ff782991c070e161738aa1 SHA512 db3d64781003830fb98e331248fdaade0ee9076c6e452b06195d2cbbc6bbe7ed55c1da6c41e8ac0df9341f9c637e5cdc79142b7444f832eff870b8ea1a2b1dcb DIST slim-4.1.0.gem 103424 BLAKE2B 87de8411d6284569ac56366d4e2f3ee351c6908001cbda2926312f25c1c39520662371e826493d1346722bb507348bd8c117f3b0447b433bdb406435b80a70e2 SHA512 a929edcd1b194bc6abddf5757e0e942835f6c5e1555aa7bf021b0e850d74c9777637a2a0eafbdf2de7f0f0574eb03866c562826c656adcc0517cc4bfcb5ca897 -EBUILD slim-4.1.0-r3.ebuild 2100 BLAKE2B e86f1439dc4fdc7a11f8d6909f168f9c43bdd6129922b67c9012693da024e1f0a7641321b016d2312c50bf95aef740fdcac3942a1c078fd0c0f296919ea9bc75 SHA512 9e7ddd9c4d7dd0feeb216dbe3664f7b58ccc4803d22d6afd9f6377cb8c23abbf3d128c1ed40a27c812803228e5fa171201929e86e58d5fcbfdbb5161c63b5d0f -MISC metadata.xml 248 BLAKE2B 0c876bde3c72e61d28284a95a837103e6d594c9f6fccbd6d7d1039f9c5a604347c20c334c9a57d80b152888fed536196f2807b477e8d0336c80affb0e28c9dc9 SHA512 b2b64178cf6cbbaa5fb4671ffe1ab88b83c920de363ae099ef74fa3e5eb8c8f0285c749cabc0cebf344951503d1b7309ae294afe9e7cf5172700182d8843fa14 +DIST slim-5.1.0.gem 100352 BLAKE2B 19d0bea76a932d18a39fab30d0b1f2cd4f8f2eba108d79d2992112b568461cbc854a99d70b6ea97622e1928db7f33434221a054d77c5d3fa989da639fae176e5 SHA512 2cc39659a5c36cf37e3eea240f5326552fac0be8a42ff6bfe62837467bb77f8841b34d838d5a6945ff7195eb1e59842c64e04944d6882d132819f1ffbf609f50 +EBUILD slim-4.1.0-r3.ebuild 2111 BLAKE2B 42a84caa9fa58450a9b2d4a2f4b5c9c5e232739c8ffc376cb76351b7fae8a5f26beca0b889a95d1c1bcad9369e6389d2008d32ebedb391067813b92b3efc5bfc SHA512 c8486e8b116946dbadf6f40bdaeef53afb95bc1f09a54ca3702da814c829ba4b68f36cd05dc4972c11814d71261a278359e59c0d3e21aab559a4f6c441ab391b +EBUILD slim-5.1.0.ebuild 2129 BLAKE2B 747e998bdd4d0acc2d05059eaa9a099ffb5e5bae10b2ec1e4d71bd393281b35f9afdec915d708c63e241b076417fd5c418bb3ab79b63727de76ce358860736ef SHA512 a3e000b1b01ba42f90e7d9b2720c52cc2d5654f0d0c0f5da4001d12063b326e5a1fa2d0d80d1827919198237a74c8eb5e058b6a70ef18160e0f20e91150e209e +MISC metadata.xml 328 BLAKE2B 278b8ae81f02f38eb7a70fe1f6649cfcaa5a256ecdeaafdd1231b18050fb9b1a7e36d332ba6165867565ecc7d19ea425966d35a739950c170f151ad927ab57ed SHA512 21ea066ca55a1422879792472cc5b07a87332e5eb204b1311a5a63cbe9f33296a9ef48cba2491a50064baa3760a18285cec51882c3ca885a7cce2453a4e2234a diff --git a/dev-ruby/slim/metadata.xml b/dev-ruby/slim/metadata.xml index 658c72b1920d..16149c1d51b2 100644 --- a/dev-ruby/slim/metadata.xml +++ b/dev-ruby/slim/metadata.xml @@ -5,4 +5,7 @@ <email>ruby@gentoo.org</email> <name>Gentoo Ruby Project</name> </maintainer> +<upstream> + <remote-id type="github">slim-template/slim</remote-id> +</upstream> </pkgmetadata> diff --git a/dev-ruby/slim/slim-4.1.0-r3.ebuild b/dev-ruby/slim/slim-4.1.0-r3.ebuild index a280d21923ec..fbe924a5660e 100644 --- a/dev-ruby/slim/slim-4.1.0-r3.ebuild +++ b/dev-ruby/slim/slim-4.1.0-r3.ebuild @@ -15,11 +15,11 @@ RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" inherit ruby-fakegem DESCRIPTION="A template language aiming to reduce the syntax to the essential parts" -HOMEPAGE="http://slim-lang.com/" -LICENSE="MIT" +HOMEPAGE="https://slim-template.github.io/" -KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86" +LICENSE="MIT" SLOT="$(ver_cut 1)" +KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv x86" IUSE="doc" ruby_add_rdepend ">=dev-ruby/tilt-2.0.6:* =dev-ruby/tilt-2.0*:* diff --git a/dev-ruby/slim/slim-5.1.0.ebuild b/dev-ruby/slim/slim-5.1.0.ebuild new file mode 100644 index 000000000000..d556bffba84e --- /dev/null +++ b/dev-ruby/slim/slim-5.1.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 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="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc" + +ruby_add_rdepend " + >=dev-ruby/tilt-2.0.6:* + >=dev-ruby/temple-0.7.6:0.7 +" +ruby_add_bdepend " + doc? ( + dev-ruby/yard + dev-ruby/redcarpet + ) + test? ( + dev-ruby/minitest:5 + dev-ruby/kramdown:2 + dev-ruby/redcarpet + dev-ruby/sassc + >=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 +} |