diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-26 08:02:30 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-26 08:03:27 +0100 |
commit | dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1 (patch) | |
tree | 710ac8fadee53e22ee961ef75fc4e81f873a1300 /dev-ruby | |
parent | dev-ruby/mini_mime: add 1.0.3 (diff) | |
download | gentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.tar.gz gentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.tar.bz2 gentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.zip |
dev-ruby/mimemagic: add 0.3.9
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/mimemagic/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/mimemagic/files/mimemagic-0.3.9-path.rb | 3 | ||||
-rw-r--r-- | dev-ruby/mimemagic/mimemagic-0.3.9.ebuild | 36 |
3 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/mimemagic/Manifest b/dev-ruby/mimemagic/Manifest index 8b0a22f9f7fa..c52ca4f71339 100644 --- a/dev-ruby/mimemagic/Manifest +++ b/dev-ruby/mimemagic/Manifest @@ -1,2 +1,3 @@ DIST mimemagic-0.3.4.gem 410112 BLAKE2B 42838f488bce370f3ea4bf7519f94b64b4e444f04a8758ac19ea1688e003158b000de22274c53451fd471c22de9773b9024f7823ea842e59fe0321301570f0dc SHA512 40b97e523fe96bba28bcc80da02d824c5a3d3be55b0bb1ae1e4eed0337ae8d8e625325adcbfcacd19a2b1ccefbd77b6c3a20af1cf00e03722959ba98659d4281 DIST mimemagic-0.3.5.gem 410112 BLAKE2B 19b68c246a3a5eb06a56e44c128f8321488c2d81a2d678bce5a31adb4389aca36844f16e8ff842dce9f8552a164c2e2e4547c34d8dd4835d57edd3a9afcff090 SHA512 3140946b3bc3dc33fcd15836c8ee69ca5471e02a063a473ea32993f633883969fec4be4382711aad950cc7e7c5031e9bfb5e0f5fda61c4cd7b4b94546490004e +DIST mimemagic-0.3.9.tar.gz 56322 BLAKE2B 41904211bfd0912ef3a161a26c3568dd1cc39ba0a4170969fec7285dbb38302bc94b6bc088f96a1d68e1367deccc9c5616d047cd1946be96dd9e44a892d28f0c SHA512 139ccb23418c476425cd850d2268139b7f1657713ea706c95bf116535fde2ffb4b7902c62f057992d3fa02fee7520a31433c97cce084b7abb5682cffa12b82ce diff --git a/dev-ruby/mimemagic/files/mimemagic-0.3.9-path.rb b/dev-ruby/mimemagic/files/mimemagic-0.3.9-path.rb new file mode 100644 index 000000000000..33e13fca2495 --- /dev/null +++ b/dev-ruby/mimemagic/files/mimemagic-0.3.9-path.rb @@ -0,0 +1,3 @@ +class MimeMagic + DATABASE_PATH="@GENTOO_PORTAGE_EPREFIX@/usr/share/mime/packages/freedesktop.org.xml" +end diff --git a/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild b/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild new file mode 100644 index 000000000000..43690277205f --- /dev/null +++ b/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild @@ -0,0 +1,36 @@ +# 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="0" +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}/${P}-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 +} |