summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-29 22:10:08 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-29 22:10:57 +0200
commit1c4a5786faf7fcb2782708cd1a45c59af7db98ff (patch)
tree5deac234eff532e0ee01fc5e213feb69178ce85f /dev-ruby
parentarm64/p.u.s.m: no ocamlopt stuff here! (diff)
downloadgentoo-1c4a5786faf7fcb2782708cd1a45c59af7db98ff.tar.gz
gentoo-1c4a5786faf7fcb2782708cd1a45c59af7db98ff.tar.bz2
gentoo-1c4a5786faf7fcb2782708cd1a45c59af7db98ff.zip
dev-ruby/redcarpet: add 3.5.0
Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/redcarpet/Manifest1
-rw-r--r--dev-ruby/redcarpet/redcarpet-3.5.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/redcarpet/Manifest b/dev-ruby/redcarpet/Manifest
index bbbc2afc2bdf..038ffbd14222 100644
--- a/dev-ruby/redcarpet/Manifest
+++ b/dev-ruby/redcarpet/Manifest
@@ -1 +1,2 @@
DIST redcarpet-3.4.0.tar.gz 105525 BLAKE2B 38b28f400b7300ea49cebda9b4739193b54c322c1c20ecba50938893286ad87e44ba9e9da83eab8433af0790d76bc0db4189fc0b70a4438480fe784570809e1a SHA512 25ed1fd35ebf815f396ed819baec69aae366bafab3983a53d364b1ef0d3f18cecaa523953d12cb0e5b896c30ac86e000318f33c633047bd271362474b9b8f877
+DIST redcarpet-3.5.0.tar.gz 106773 BLAKE2B 34c72d21c8ea4d841c9728e3c7e66be02c69943e5e0ee091688992c400748cf0a0900fa15de7bbaf18db8a89bc0309160fd5c2b2ca83ee86f6d46dd5d13d9770 SHA512 8d48f1b437297aa556d7f3c5e69c8dde04c63388e78ffe15ea3c36e4764790b5cb75a8baaf75ad64317bccc63384fa0a42251d05718902096229f9f6a24f06c9
diff --git a/dev-ruby/redcarpet/redcarpet-3.5.0.ebuild b/dev-ruby/redcarpet/redcarpet-3.5.0.ebuild
new file mode 100644
index 000000000000..182d1bb7d601
--- /dev/null
+++ b/dev-ruby/redcarpet/redcarpet-3.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOCS="README.markdown CONTRIBUTING.md CHANGELOG.md doc"
+RUBY_FAKEGEM_TASK_TEST="test:unit"
+
+RUBY_FAKEGEM_GEMSPEC="redcarpet.gemspec"
+
+inherit multilib ruby-fakegem
+
+SRC_URI="https://github.com/vmg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A Ruby wrapper for Upskirt"
+HOMEPAGE="https://github.com/vmg/redcarpet"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/nokogiri )"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/d' -e 's/=> :compile//' Rakefile || die
+
+ # Avoid unneeded dependency on rake-compiler
+ sed -i -e '/extensiontask/I s:^:#:' Rakefile || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s#ruby#${RUBY}#" bin/redcarpet || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/redcarpet extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake V=1 -Cext/${PN}
+ cp ext/${PN}/*$(get_modname) lib || die
+}