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 25CB1139345 for ; Fri, 9 Jul 2021 06:55:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7756E0AD8; Fri, 9 Jul 2021 06:55:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6CD7E0AB9 for ; Fri, 9 Jul 2021 06:55:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A052E342BB2 for ; Fri, 9 Jul 2021 06:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 290F07CE for ; Fri, 9 Jul 2021 06:55:20 +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: <1625813710.ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mimemagic/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/mimemagic/Manifest dev-ruby/mimemagic/mimemagic-0.4.3.ebuild X-VCS-Directories: dev-ruby/mimemagic/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460 X-VCS-Branch: master Date: Fri, 9 Jul 2021 06:55:20 +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: 6e3e9dd8-8dee-4eb1-bd25-730c3c3ac372 X-Archives-Hash: 51276504142bb79bd9c4312bda2c08fe commit: ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460 Author: Hans de Graaff gentoo org> AuthorDate: Thu Jul 8 06:38:54 2021 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Jul 9 06:55:10 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee7ff3db dev-ruby/mimemagic: add 0.4.3 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/mimemagic/Manifest | 1 + dev-ruby/mimemagic/mimemagic-0.4.3.ebuild | 40 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/dev-ruby/mimemagic/Manifest b/dev-ruby/mimemagic/Manifest index 70415e33b51..7fab91cd679 100644 --- a/dev-ruby/mimemagic/Manifest +++ b/dev-ruby/mimemagic/Manifest @@ -1,2 +1,3 @@ DIST mimemagic-0.3.10.tar.gz 56979 BLAKE2B 5a3113172747b911abe92ad8c20b04992ec4cea5eca91d6fe0c71c2aba14a0e5094a6d6cf710815ef8f728fe67c25151b5997e74b8dfb3c6de77b78960f054e2 SHA512 1c967509bb3ded1512859d9542fb56022debfe3864a63f2fd45c899a94e5c6aaab1e8714bfb797dc0719baf8bafbd3ba56c67d26d8c6c5f18c967ea6a2efea72 DIST mimemagic-0.3.9.tar.gz 56322 BLAKE2B 41904211bfd0912ef3a161a26c3568dd1cc39ba0a4170969fec7285dbb38302bc94b6bc088f96a1d68e1367deccc9c5616d047cd1946be96dd9e44a892d28f0c SHA512 139ccb23418c476425cd850d2268139b7f1657713ea706c95bf116535fde2ffb4b7902c62f057992d3fa02fee7520a31433c97cce084b7abb5682cffa12b82ce +DIST mimemagic-0.4.3.tar.gz 56539 BLAKE2B 7029842f12b80e4ede79209f7aa9b5b05ead3dc4cabdb3b170098b90d0c5a195cc934119507af0e622b4235b47c192e295aabb057ae6ede08ba422d0921ca26c SHA512 a3a960e0219cef0ad21d5e3541c99c190f1ae98da0e6a022a5acb235cee57f5b9ea4fa1f366114e82e6789668b7b000409a6f355b5e0fab12032c08b43fe556b diff --git a/dev-ruby/mimemagic/mimemagic-0.4.3.ebuild b/dev-ruby/mimemagic/mimemagic-0.4.3.ebuild new file mode 100644 index 00000000000..d8b4ab4e72f --- /dev/null +++ b/dev-ruby/mimemagic/mimemagic-0.4.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC=mimemagic.gemspec + +inherit prefix ruby-fakegem + +DESCRIPTION="Fast mime detection by extension or content" +HOMEPAGE="https://github.com/mimemagicrb/mimemagic" +SRC_URI="https://github.com/mimemagicrb/mimemagic/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND+=" x11-misc/shared-mime-info" + +ruby_add_rdepend " + dev-ruby/nokogiri + dev-ruby/rake +" + +ruby_add_bdepend "test? ( dev-ruby/minitest )" + +all_ruby_prepare() { + cp "${FILESDIR}/${PN}-0.3.9-path.rb" lib/mimemagic/path.rb || die + eprefixify lib/mimemagic/path.rb + + sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each {|f| require f}' || die +}