aboutsummaryrefslogtreecommitdiff
path: root/textproc/rubygem-fast_xs
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2011-12-16 22:23:34 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2011-12-16 22:23:34 +0000
commit8d20cbf7185676325212b36ee3d80dcc1f18f88d (patch)
tree41237bbdb80eb5cb27f37866000848d7a2919b2e /textproc/rubygem-fast_xs
parent66f31bdae79ee667d8e3e58f5cace3a86369482e (diff)
downloadports-8d20cbf7185676325212b36ee3d80dcc1f18f88d.tar.gz
ports-8d20cbf7185676325212b36ee3d80dcc1f18f88d.zip
fast_xs provides C extensions for escaping text.
The original String#fast_xs method is based on the xchar code by Sam Ruby: o intertwingly.net/stories/2005/09/28/xchar.rb o intertwingly.net/blog/2005/09/28/XML-Cleansing _why also packages an older version with Hpricot (patches submitted). The version here should be compatible with the latest version of Hpricot code. Ruby on Rails will automatically use String#fast_xs from either Hpricot or this gem version with the bundled Builder package. String#fast_xs is an almost exact translation of Sam Ruby's original implementation (String#to_xs), but it does escape a " (which is an optional, but all parsers are able ot handle it. XML::Builder as packaged in Rails 2.0 will be automatically use String#fast_xs instead of String#to_xs available. WWW: http://fast-xs.rubyforge.org/ PR: ports/163362 Submitted by: Scott Sanders <scott@jssjr.com> Sponsored by: RideCharge Inc. / Taxi Magic
Notes
Notes: svn path=/head/; revision=287508
Diffstat (limited to 'textproc/rubygem-fast_xs')
-rw-r--r--textproc/rubygem-fast_xs/Makefile22
-rw-r--r--textproc/rubygem-fast_xs/distinfo2
-rw-r--r--textproc/rubygem-fast_xs/pkg-descr20
3 files changed, 44 insertions, 0 deletions
diff --git a/textproc/rubygem-fast_xs/Makefile b/textproc/rubygem-fast_xs/Makefile
new file mode 100644
index 000000000000..894d5d72dfe9
--- /dev/null
+++ b/textproc/rubygem-fast_xs/Makefile
@@ -0,0 +1,22 @@
+# Ports collection makefile for: rubygem-fast_xs
+# Date created: 13 Dec 2011
+# Whom: Scott Sanders <scott@jssjr.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fast_xs
+PORTVERSION= 0.7.3
+CATEGORIES= textproc rubygems
+MASTER_SITES= RG
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= A systems integration framework. Expander
+
+RUN_DEPENDS= rubygem-hoe>=2.8.0:${PORTSDIR}/devel/rubygem-hoe
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/rubygem-fast_xs/distinfo b/textproc/rubygem-fast_xs/distinfo
new file mode 100644
index 000000000000..89e03694847e
--- /dev/null
+++ b/textproc/rubygem-fast_xs/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/fast_xs-0.7.3.gem) = 108e4e4099d1468970c4fe57f2deca31ad1ef923877352ee1c7394d31ab0538b
+SIZE (rubygem/fast_xs-0.7.3.gem) = 20480
diff --git a/textproc/rubygem-fast_xs/pkg-descr b/textproc/rubygem-fast_xs/pkg-descr
new file mode 100644
index 000000000000..2a9e7539aea8
--- /dev/null
+++ b/textproc/rubygem-fast_xs/pkg-descr
@@ -0,0 +1,20 @@
+fast_xs provides C extensions for escaping text.
+
+The original String#fast_xs method is based on the xchar code by Sam Ruby:
+
+o intertwingly.net/stories/2005/09/28/xchar.rb
+o intertwingly.net/blog/2005/09/28/XML-Cleansing
+
+_why also packages an older version with Hpricot (patches submitted). The
+version here should be compatible with the latest version of Hpricot code.
+
+Ruby on Rails will automatically use String#fast_xs from either Hpricot or this
+gem version with the bundled Builder package.
+
+String#fast_xs is an almost exact translation of Sam Ruby’s original
+implementation (String#to_xs), but it does escape “&quot;” (which is an
+optional, but all parsers are able ot handle it. XML::Builder as packaged in
+Rails 2.0 will be automatically use String#fast_xs instead of String#to_xs
+available.
+
+WWW: http://fast-xs.rubyforge.org/