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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A1C0158086 for ; Wed, 27 Oct 2021 11:26:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A3C8E086E; Wed, 27 Oct 2021 11:26:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6435AE0843 for ; Wed, 27 Oct 2021 11:26:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 787EA343AFA for ; Wed, 27 Oct 2021 11:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCA59189 for ; Wed, 27 Oct 2021 11:26:29 +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: <1635333888.9f9c4f0b2fb9fa21ddb2154516b378d0898b9c9b.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ruby-filemagic/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild X-VCS-Directories: dev-ruby/ruby-filemagic/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 9f9c4f0b2fb9fa21ddb2154516b378d0898b9c9b X-VCS-Branch: master Date: Wed, 27 Oct 2021 11:26:29 +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: 86100dac-41f1-4fc5-8c5e-2a4cb9e28af1 X-Archives-Hash: fca0bfaba1ba9c6eabd6049f6ef8cbc0 commit: 9f9c4f0b2fb9fa21ddb2154516b378d0898b9c9b Author: Hans de Graaff gentoo org> AuthorDate: Wed Oct 27 05:43:37 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Wed Oct 27 11:24:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9c4f0b dev-ruby/ruby-filemagic: add ruby30; fix extension install Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Hans de Graaff gentoo.org> .../ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild new file mode 100644 index 00000000000..b8b2c7ec7e6 --- /dev/null +++ b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.2-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="ChangeLog README TODO" + +RUBY_FAKEGEM_EXTENSIONS=(ext/filemagic/extconf.rb) +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/filemagic" + +RUBY_FAKEGEM_TASK_TEST="" + +inherit multilib ruby-fakegem + +DESCRIPTION="Ruby binding to libmagic" +HOMEPAGE="https://github.com/blackwinter/ruby-filemagic" + +LICENSE="Ruby" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" +IUSE="" + +DEPEND="${DEPEND} sys-apps/file test? ( >=sys-apps/file-5.30 )" +RDEPEND="${RDEPEND} sys-apps/file" + +all_ruby_prepare() { + # Fix up tests for newer sys-apps/file definitions + sed -i -e '/test_abbrev_mime_type/,/^ end/ s/ms-office/ms-excel/' test/filemagic_test.rb || die + + # Fix up broken test symlink and regenerate compiled magic file + pushd test || die + rm -f pylink && ln -s pyfile pylink || die + file -C -m perl || die + popd || die +} + +each_ruby_test() { + find test + ${RUBY} -Ctest -I../lib filemagic_test.rb || die +}