summaryrefslogtreecommitdiff
path: root/dev-ruby/marcel
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/marcel')
-rw-r--r--dev-ruby/marcel/Manifest1
-rw-r--r--dev-ruby/marcel/marcel-0.3.3-r1.ebuild34
-rw-r--r--dev-ruby/marcel/metadata.xml12
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/marcel/Manifest b/dev-ruby/marcel/Manifest
new file mode 100644
index 000000000000..a1304b1415da
--- /dev/null
+++ b/dev-ruby/marcel/Manifest
@@ -0,0 +1 @@
+DIST marcel-0.3.3.tar.gz 7845456 BLAKE2B e27d851119f434144a790cd1bfb1ca21662357b1875ae9193273e00c5abc6156c217efeb961356d4967d984b4c8fb4b4047620fa5d0448cc20651aa1ce05bb69 SHA512 d9be185fd6f5185fc67f3eed931ecf3084da671840b6e464bf341f51c9dec4ab1b4650abd1916e640b7caced230d6cb90370bffb559151e0047a8b03211dc751
diff --git a/dev-ruby/marcel/marcel-0.3.3-r1.ebuild b/dev-ruby/marcel/marcel-0.3.3-r1.ebuild
new file mode 100644
index 000000000000..d92cbf438233
--- /dev/null
+++ b/dev-ruby/marcel/marcel-0.3.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Simple mime type detection using magic numbers, filenames, and extensions"
+HOMEPAGE="https://github.com/basecamp/marcel"
+SRC_URI="https://github.com/basecamp/marcel/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/mimemagic-0.3.2:0"
+
+all_ruby_prepare() {
+ sed -i -e '2irequire "pathname"' test/test_helper.rb || die
+
+ sed -i -e '/bundler/ s:^:#:' Rakefile || die
+
+ # Account for changes in shared-mime-info 1.10
+ mkdir test/fixtures/{magic,name}/font || die
+ mv test/fixtures/magic/application/x-font-ttf.ttf test/fixtures/magic/font/ttf.ttf || die
+ mv test/fixtures/name/application/x-font-ttf.ttf test/fixtures/name/font/ttf.ttf || die
+}
diff --git a/dev-ruby/marcel/metadata.xml b/dev-ruby/marcel/metadata.xml
new file mode 100644
index 000000000000..bd59248f17e3
--- /dev/null
+++ b/dev-ruby/marcel/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">basecamp/marcel</remote-id>
+ </upstream>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>