diff options
Diffstat (limited to 'dev-ruby/fast_xs')
-rw-r--r-- | dev-ruby/fast_xs/Manifest | 6 | ||||
-rw-r--r-- | dev-ruby/fast_xs/fast_xs-0.8.0-r2.ebuild | 49 | ||||
-rw-r--r-- | dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch | 23 | ||||
-rw-r--r-- | dev-ruby/fast_xs/metadata.xml | 11 |
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-ruby/fast_xs/Manifest b/dev-ruby/fast_xs/Manifest new file mode 100644 index 000000000000..39c52915d2cc --- /dev/null +++ b/dev-ruby/fast_xs/Manifest @@ -0,0 +1,6 @@ +AUX fast_xs-0.8.0+ruby-1.9.patch 1090 SHA256 5f4b59f7ae2aac87377d37d9124430ca752cfda0348a308464a1d06800aa8518 SHA512 0c4f4b03db6ed70381b9aa7e671038206648a2c88211bb7d015f552e2114015a7cb749678670ee876aa568505ac3df42535f839367cfd1fc52ba6674429940a5 WHIRLPOOL ff0156914c5b8b0239030d307d7438c5b398a388d8206b63d15ad26fb600d62839a167c73589bfaf08c4fdc0499bcfbb1b69cf68ee702e5e0210cab4c9b76e5a +DIST fast_xs-0.8.0.gem 22016 SHA256 5ff2e1b088bdad3d4eae2a71b118b8aa9b39975702853c3bb307e35db1facdc7 SHA512 55fc2704fab020f03b1ce138d1631dd5ad73a8601dcd95989a59c7cccb490c70b4e1af59fb8b009bfa0899f2c23feb42cc3068e243cd539ba1cb01a9f7bc573b WHIRLPOOL e29bd2abf334e85809abb830968d9850439a5c50767aee0718ad5967c26b6ca9c9d7a9661a0bfc78a85e425634e69d6cac859eb59e8f57e29c481c8ca6969e3d +EBUILD fast_xs-0.8.0-r2.ebuild 1333 SHA256 a570b7b5a84f42573aa67c636a121d4dc71ff9f3d01b857406f937d1500fdbb3 SHA512 af39165f06a97079a768582b36bae6e323b6323809a7526e2c8cdb10a0fbd6123c5b7d50113e1d68a602667ef6d97b3a49422cc242ec226faa7568a8bc395a11 WHIRLPOOL 456d3b0ac0f21338634d03e9d484858f445a3e2f8f288a5a2bdb45cc73beb86c4838b5e50393684cf95dd75473ad4db183a2ecc983b170ca5e03a2231da8cb70 +MISC ChangeLog 4651 SHA256 bdf39e600cb3c1f9fd42ef1df2eba9d3c1d29200d1a2ea9d3e2d1f62dd273a57 SHA512 0e97416d8e41949967bef585e984433cfa0be5634f493134c23a4482e6b60f84c909f2d3e2cea7d355df9cc74bf4f36f5843729132addede751393d2a4d6393f WHIRLPOOL b96d2d32af833bd36cc4211d459050ec21319de98369a2849f219f834f1c16a6dcd06f27c0e68a373c7bf34993e8902e86280c4ee35750528912de429be74fac +MISC ChangeLog-2015 4620 SHA256 b8f0c1ad5df6ac25fe3967e5bb2fad9aaf876238426522e52db4e05943fb848c SHA512 fe047088ea8e582e85f08a07f4d641dc4828ad892962b69637e108162b587dae364141ab74cc382177682dcf0c3739be6fc54d4ffab9d9ebb78b61b9734a03be WHIRLPOOL 4365212045aa3f1f359800cca2b41e90c3943eb091a3606cfb50137d4a1842fe688615a6cc7aebe7bec1638870eeddf0d17c1c5a74c0a110a243df14d4b0f2bd +MISC metadata.xml 344 SHA256 db8a996caea33ab900baf63e04353d4df9e1a67e0fce1f8e95037f3de780dab5 SHA512 4c84dc383d13d166f199d39a7a9cea86063392034a467b0aeec29a06c2b70949785662c0bd9b0dc60884cab74455d92f113613519708889f64e11a6d4bbc53fc WHIRLPOOL 3a8dea71a9fe73ef3090881e842f1f08a16496afdf1c41206770d438eb12c840093198ecc02e2f91297cee7fb9df45087f97cd36c825cb96df25fc6d1b314b94 diff --git a/dev-ruby/fast_xs/fast_xs-0.8.0-r2.ebuild b/dev-ruby/fast_xs/fast_xs-0.8.0-r2.ebuild new file mode 100644 index 000000000000..1cbeee979921 --- /dev/null +++ b/dev-ruby/fast_xs/fast_xs-0.8.0-r2.ebuild @@ -0,0 +1,49 @@ +# 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_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc" + +inherit ruby-fakegem + +DESCRIPTION="fast_xs text escaping library ruby bindings" +HOMEPAGE="https://github.com/brianmario/fast_xs" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sparc x86 ~x86-fbsd ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_bdepend "test? ( + >=dev-ruby/hoe-2.3.2 + dev-ruby/rack +)" + +RUBY_PATCHES=( "${P}+ruby-1.9.patch" ) + +each_ruby_configure() { + ${RUBY} -Cext/fast_xs extconf.rb || die "extconf.rb failed" + ${RUBY} -Cext/fast_xs_extra extconf.rb || die "extconf.rb failed" +} + +each_ruby_compile() { + emake -Cext/fast_xs CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" V=1 + cp ext/fast_xs/fast_xs$(get_modname) lib/ || die + emake -Cext/fast_xs_extra CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" V=1 + cp ext/fast_xs_extra/fast_xs_extra$(get_modname) lib/ || die +} + +each_ruby_test() { + # the Rakefile tries to run all the tests in a single process, but + # this breaks the monkey-patchers, we're forced to run them one by + # one. + for tu in test/test_*.rb; do + ${RUBY} -Ilib $tu || die "test $tu failed" + done +} diff --git a/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch new file mode 100644 index 000000000000..cdd72f2db3fb --- /dev/null +++ b/dev-ruby/fast_xs/files/fast_xs-0.8.0+ruby-1.9.patch @@ -0,0 +1,23 @@ +Index: fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +=================================================================== +--- fast_xs-0.8.0.orig/test/test_erb_util_module_overrides.rb ++++ fast_xs-0.8.0/test/test_erb_util_module_overrides.rb +@@ -35,11 +35,13 @@ class TestErbUtilModuleOverrides < Test: + + def test_preserve_encoding + foo = "foo" +- foo.force_encoding Encoding::US_ASCII +- assert_equal Encoding::US_ASCII, url_encode(foo).encoding +- assert_equal Encoding::US_ASCII, html_escape(foo).encoding +- assert_equal Encoding::US_ASCII, u(foo).encoding +- assert_equal Encoding::US_ASCII, h(foo).encoding ++ ascii_encoding = (RUBY_VERSION =~ /1\.9/) ? Encoding::ASCII_8BIT : Encoding::US_ASCII ++ ++ foo.force_encoding ascii_encoding ++ assert_equal ascii_encoding, url_encode(foo).encoding ++ assert_equal ascii_encoding, html_escape(foo).encoding ++ assert_equal ascii_encoding, u(foo).encoding ++ assert_equal ascii_encoding, h(foo).encoding + + foo.force_encoding Encoding::BINARY + assert_equal Encoding::BINARY, url_encode(foo).encoding diff --git a/dev-ruby/fast_xs/metadata.xml b/dev-ruby/fast_xs/metadata.xml new file mode 100644 index 000000000000..1733736bd1e2 --- /dev/null +++ b/dev-ruby/fast_xs/metadata.xml @@ -0,0 +1,11 @@ +<?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">brianmario/fast_xs</remote-id> + </upstream> +</pkgmetadata> |