summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-07-08 08:38:54 +0200
committerHans de Graaff <graaff@gentoo.org>2021-07-09 08:55:10 +0200
commitee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460 (patch)
tree5d2a01cbaa9da4189b15879786474b94fa1c8416 /dev-ruby/mimemagic
parentdev-ruby/mime-types-data: cleanup (diff)
downloadgentoo-ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460.tar.gz
gentoo-ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460.tar.bz2
gentoo-ee7ff3dbc6ef44ebaa8f210da9f6ad71295ed460.zip
dev-ruby/mimemagic: add 0.4.3
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mimemagic')
-rw-r--r--dev-ruby/mimemagic/Manifest1
-rw-r--r--dev-ruby/mimemagic/mimemagic-0.4.3.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/mimemagic/Manifest b/dev-ruby/mimemagic/Manifest
index 70415e33b51c..7fab91cd679d 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 000000000000..d8b4ab4e72fa
--- /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
+}