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 ACFAF15808B for ; Sat, 9 Apr 2022 07:38:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9E4D4E08ED; Sat, 9 Apr 2022 07:38:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4884E08F2 for ; Sat, 9 Apr 2022 07:38:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 A5614341370 for ; Sat, 9 Apr 2022 07:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E83BB397 for ; Sat, 9 Apr 2022 07:38:48 +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: <1649489921.652307bdfd1e0d7861e8561f2dd4c61fc9313559.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mini_magick/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/mini_magick/mini_magick-4.11.0-r1.ebuild X-VCS-Directories: dev-ruby/mini_magick/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 652307bdfd1e0d7861e8561f2dd4c61fc9313559 X-VCS-Branch: master Date: Sat, 9 Apr 2022 07:38:48 +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: 8fda6222-c124-4f0a-b21f-a77f6b2b9798 X-Archives-Hash: 88d8b719cb14b69caebe38c84d3274b6 commit: 652307bdfd1e0d7861e8561f2dd4c61fc9313559 Author: Hans de Graaff gentoo org> AuthorDate: Sat Apr 9 06:41:17 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Apr 9 07:38:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=652307bd dev-ruby/mini_magick: update EAPI 7 -> 8 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/mini_magick/mini_magick-4.11.0-r1.ebuild | 62 +++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/dev-ruby/mini_magick/mini_magick-4.11.0-r1.ebuild b/dev-ruby/mini_magick/mini_magick-4.11.0-r1.ebuild new file mode 100644 index 000000000000..9387743eba56 --- /dev/null +++ b/dev-ruby/mini_magick/mini_magick-4.11.0-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Manipulate images with minimal use of memory" +HOMEPAGE="https://github.com/minimagick/minimagick" +SRC_URI="https://github.com/minimagick/minimagick/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="minimagick-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +# It's only used at runtime in this case because this extension only +# _calls_ the commands. But when we run tests we're going to need tiff +# and jpeg support at a minimum. +RDEPEND+=" media-gfx/imagemagick" +DEPEND+=" test? ( virtual/imagemagick-tools[jpeg,png,tiff] )" + +ruby_add_bdepend "test? ( dev-ruby/mocha dev-ruby/webmock )" + +all_ruby_prepare() { + # remove executable bit from all files + find "${S}" -type f -exec chmod -x {} + + + sed -i -e '/\([Bb]undler\|pry\)/ s:^:#:' spec/spec_helper.rb || die + + # Don't force a specific formatter but use overall Gentoo defaults. + sed -i -e '/config.formatter/d' spec/spec_helper.rb || die + + # Avoid broken spec that does not assume . in path name + sed -i -e '/reformats a layer/,/end/ s:^:#:' spec/lib/mini_magick/image_spec.rb || die + + # Avoid spec broken by recent imagemagick updates + sed -i -e '/cache files generated from .mpc/askip' spec/lib/mini_magick/image_spec.rb || die + sed -i -e '/does not hang when parsing verbose data/askip' spec/lib/mini_magick/image_spec.rb || die + + # Avoid graphicsmagick tests because installing both in parallel for + # tests is hard. + sed -i -e 's/:graphicsmagick//' spec/spec_helper.rb || die + sed -i -e '/identifies when gm exists/,/^ end/ s:^:#:' spec/lib/mini_magick/utilities_spec.rb || die + sed -i -e '/returns GraphicsMagick/,/^ end/ s:^:#:' spec/lib/mini_magick_spec.rb || die + sed -i -e 's/"GraphicsMagick"//' spec/lib/mini_magick/image_spec.rb || die + + # Avoid posix-spawn tests because is not the default, does not work with ruby30 and appears to be unmaintained. + sed -e '/SHELL_APIS.*posix-spawn/ s:^:#:' \ + -e 's/"posix-spawn"//' \ + -i spec/spec_helper.rb || die +}