From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-ruby/hpricot/Manifest | 6 +++ dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch | 24 +++++++++ dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild | 61 ++++++++++++++++++++++ dev-ruby/hpricot/metadata.xml | 8 +++ 4 files changed, 99 insertions(+) create mode 100644 dev-ruby/hpricot/Manifest create mode 100644 dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch create mode 100644 dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild create mode 100644 dev-ruby/hpricot/metadata.xml (limited to 'dev-ruby/hpricot') diff --git a/dev-ruby/hpricot/Manifest b/dev-ruby/hpricot/Manifest new file mode 100644 index 000000000000..738d035fa27d --- /dev/null +++ b/dev-ruby/hpricot/Manifest @@ -0,0 +1,6 @@ +AUX hpricot-0.8.6-fast_xs.patch 650 SHA256 82d2b8c3b4df44da8f7a8a1b5263cff57f27b853b84843e9d4edcf305d184216 SHA512 cbb1aa6138ec98e2eac9bcad8d06ed7c435a8ca503e062776576cfdddb944b294b270dd30e2c2924441ea527445df149e7ce34d085652ca6f184c4e66d209b8d WHIRLPOOL 4511612f245a6f36b86d4f2de24169013d216d6b981a3dfe0eb53f81714f8ec0fcd504701a207e74170ea6fd7d3fc971ecb87c862778dc304978d5bea418c00a +DIST hpricot-0.8.6.gem 293888 SHA256 dfe8f4b3414ba8377d7626030f3aa605caadee9de87cffbeadf8a50359eac8ca SHA512 f0ea9168ae79d099cdb751dd5a205e0896dfb229759e499fff833e94209d1497aa97becb285176dcbcc1fee19bc11913ca3ac0d7a467067e5d837c1eb6e310ad WHIRLPOOL d45ca1c1d8edfab43abcc0a14c3b035b9b9b934d95212ce61109692d83bbc641c34451b3dbd946fe9af7583628ab76eaeb097c909db5a182d2a86973b755ad4c +EBUILD hpricot-0.8.6-r5.ebuild 1726 SHA256 f66d25ad130a45aa86967454e9e86e379f9bedbed8f52449482a72a9b3134dce SHA512 675a8537104c28ecccf4e9df29ed0bc19b5c1f53023f9118d62e65d1bfa9ba8dec62e9e7c8e429bd61bb2ecd5487397049d2580d3ee7d5a594d30932731feb56 WHIRLPOOL aace391cd26d5fe0dc9f7b8694c63a9a28327091a27d01f1a7f7113ca91b001b6e7639a274ebd5192ed788dfc19a4ece37164ae366190a713b52502536f29c31 +MISC ChangeLog 6014 SHA256 d988b1b9bf414b5f6435d4360572767e7de4ccc8cca487b39da9e53afeddc537 SHA512 e00aa1207c4d4254d8d8f19b3b8eb06e7718e7bfed6bc7ff294de7daa61b6804c172967d62ebc2259293c8eb5568631eb4bf61df80f8c2c18b78f14eec411b29 WHIRLPOOL b4e0ab2b01b2ce13a5a7582a641291534e7073fc0b63a1c7c2f256d0e2813ff8bc20e4e257c72e7dd24fb3cd382b5ab8e61627f8b0cd981921e6cffdd7efa231 +MISC ChangeLog-2015 9192 SHA256 316ab14c013cbd06c42e5b22c2a94b41a2d83210605c1c4f3ab4ae410862958f SHA512 b6270da6ef81f0370ea4f8d443ab412a28fec0e4b7c4f9a5244a02e40a75c8ba6f658ed827bac342f912f93a48aede4b33d73bc25ba255f4cccbd25a9241c9a3 WHIRLPOOL 2a0badae3283d39597b9536a630199c6812fc6032e61936070a2f9167e05feebdf3de810e14cba8b57dda6fe90b0f9288d2f8ac1dd6484db19c3fb02a379ad81 +MISC metadata.xml 247 SHA256 1236c1552dc683658bd5bc3c5f880b71d9dfa13025edab4a0f8973f9eaa6bcf5 SHA512 ea4c044637b751a2c28c6ac226121e74ef18196af4b594e60413fec907bbab29c6b0c7735c3f503485df16dcfb36ddb86038394d92e2cd18c8f04626628e9f09 WHIRLPOOL c1aa829db3553d79fe71a8bf79fd6ea24e9fff4e591a4ade3c05e2a97b0df352170fbce76450c0402ec6d8998951c2f3eb3e198ac4638c0e0882208b9f4d8fc8 diff --git a/dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch b/dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch new file mode 100644 index 000000000000..0b16b6c61b93 --- /dev/null +++ b/dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch @@ -0,0 +1,24 @@ +Index: hpricot-0.8.6/metadata +=================================================================== +--- hpricot-0.8.6.orig/metadata ++++ hpricot-0.8.6/metadata +@@ -16,7 +16,18 @@ bindir: bin + cert_chain: [] + + date: 2012-01-17 00:00:00 Z +-dependencies: [] ++dependencies: ++- !ruby/object:Gem::Dependency ++ name: fast_xs ++ prerelease: false ++ requirement: &id003 !ruby/object:Gem::Requirement ++ none: false ++ requirements: ++ - - ">=" ++ - !ruby/object:Gem::Version ++ version: 0.7.3 ++ type: :runtime ++ version_requirements: *id003 + + description: a swift, liberal HTML parser with a fantastic library + email: why@ruby-lang.org diff --git a/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild b/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild new file mode 100644 index 000000000000..73f1d06b5b86 --- /dev/null +++ b/dev-ruby/hpricot/hpricot-0.8.6-r5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md" + +inherit ruby-fakegem eutils + +DESCRIPTION="A fast and liberal HTML parser for Ruby" +HOMEPAGE="https://wiki.github.com/hpricot/hpricot" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend "dev-ruby/rake + dev-ruby/rdoc + dev-ruby/rake-compiler" + +ruby_add_rdepend "dev-ruby/fast_xs" + +# Probably needs the same jdk as JRuby but I'm not sure how to express +# that just yet. +DEPEND+=" dev-util/ragel" + +all_ruby_prepare() { + sed -i -e '/[Bb]undler/ s:^:#:' Rakefile || die + + # Fix encoding assumption of environment for Ruby 1.9. + # https://github.com/hpricot/hpricot/issues/52 + # sed -i -e '1 iEncoding.default_external=Encoding::UTF_8 if RUBY_VERSION =~ /1.9/' test/load_files.rb || die + + # Avoid unneeded dependency on git. + sed -i -e '/^REV/ s/.*/REV = "6"/' Rakefile || die + + # Fix int size warning + sed -i -e 's/te - ts/(int)(te - ts)/' ext/hpricot_scan/hpricot_css.rl || die +} + +each_ruby_prepare() { + pushd .. &>/dev/null + epatch "${FILESDIR}"/${P}-fast_xs.patch + popd .. &>/dev/null +} + +each_ruby_configure() { + ${RUBY} -Cext/hpricot_scan extconf.rb || die "hpricot_scan/extconf.rb failed" +} + +each_ruby_compile() { + local modname=$(get_modname) + + ${RUBY} -S rake ragel || die + emake V=1 -Cext/hpricot_scan CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make hpricot_scan failed" + cp ext/hpricot_scan/hpricot_scan${modname} lib/ || die +} diff --git a/dev-ruby/hpricot/metadata.xml b/dev-ruby/hpricot/metadata.xml new file mode 100644 index 000000000000..28ab0c15f206 --- /dev/null +++ b/dev-ruby/hpricot/metadata.xml @@ -0,0 +1,8 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + -- cgit v1.2.3