public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mimemagic/, dev-ruby/mimemagic/files/
@ 2021-03-26  7:04 Hans de Graaff
  0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2021-03-26  7:04 UTC (permalink / raw
  To: gentoo-commits

commit:     dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 26 07:02:30 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 07:03:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd7f4b07

dev-ruby/mimemagic: add 0.3.9

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/mimemagic/Manifest                      |  1 +
 dev-ruby/mimemagic/files/mimemagic-0.3.9-path.rb |  3 ++
 dev-ruby/mimemagic/mimemagic-0.3.9.ebuild        | 36 ++++++++++++++++++++++++
 3 files changed, 40 insertions(+)

diff --git a/dev-ruby/mimemagic/Manifest b/dev-ruby/mimemagic/Manifest
index 8b0a22f9f7f..c52ca4f7133 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 00000000000..33e13fca249
--- /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 00000000000..43690277205
--- /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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-26  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-26  7:04 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/mimemagic/, dev-ruby/mimemagic/files/ Hans de Graaff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox