diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-12-11 08:25:20 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-12-11 09:40:44 +0100 |
commit | 260bd1e79a4d9ec294f232a9b359e464702d2bae (patch) | |
tree | 3837cf4247db39567615821e1e02f1ce02fea3d3 /dev-ruby/liquid-c/liquid-c-4.0.0.ebuild | |
parent | dev-ruby/liquid: add ruby25 (diff) | |
download | gentoo-260bd1e79a4d9ec294f232a9b359e464702d2bae.tar.gz gentoo-260bd1e79a4d9ec294f232a9b359e464702d2bae.tar.bz2 gentoo-260bd1e79a4d9ec294f232a9b359e464702d2bae.zip |
dev-ruby/liquid-c: add 4.0.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/liquid-c/liquid-c-4.0.0.ebuild')
-rw-r--r-- | dev-ruby/liquid-c/liquid-c-4.0.0.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/liquid-c/liquid-c-4.0.0.ebuild b/dev-ruby/liquid-c/liquid-c-4.0.0.ebuild new file mode 100644 index 000000000000..ced776af297b --- /dev/null +++ b/dev-ruby/liquid-c/liquid-c-4.0.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit multilib ruby-fakegem + +DESCRIPTION="Liquid performance extension in C" +HOMEPAGE="https://github.com/Shopify/liquid-c" + +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64" +IUSE="" + +MY_PN=${PN/-/_} + +ruby_add_rdepend ">=dev-ruby/liquid-3.0.0:*" + +all_ruby_prepare() { + sed -i -e "s/-Werror//" ext/${MY_PN}/extconf.rb || die + sed -i -e "/[Bb]undler/d" Rakefile || die +} + +each_ruby_configure() { + ${RUBY} -Cext/${MY_PN} extconf.rb || die +} + +each_ruby_compile() { + emake V=1 -Cext/${MY_PN} + cp ext/${MY_PN}/${MY_PN}$(get_modname) lib/ || die +} |