summaryrefslogtreecommitdiff
path: root/textproc/ruby-json/patches
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-04 15:21:43 +0000
committerjlam <jlam>2008-04-04 15:21:43 +0000
commitc192065a5f25ff1cd9a0c2b2b431ec24288e6767 (patch)
tree63389cc21234ba13c1d36073893bb54b471ce7e1 /textproc/ruby-json/patches
parent4f641ed6d495a9ce09c1708aff17055d29ee9139 (diff)
downloadpkgsrc-c192065a5f25ff1cd9a0c2b2b431ec24288e6767.tar.gz
Initial import of ruby18-json-1.1.2 as textproc/ruby-json.
This is a implementation of the JSON specification according to RFC 4627. You can think of it as a low fat alternative to XML, if you want to store data to disk or transmit it over a network rather than use a verbose markup language. The JSON generator escapes all non-ASCII an control characters with \uXXXX escape sequences and supports UTF-16 surrogate pairs in order to be able to generate the whole range of Unicode code points. This means that generated JSON text is encoded as UTF-8 (because ASCII is a subset of UTF-8) and at the same time avoids decoding problems for receiving endpoints that don't expect UTF-8 encoded texts. This package is fast C extension variant which is in parts implemented in C and comes with its own Unicode conversion functions and a parser generated by the Ragel State Machine Compiler.
Diffstat (limited to 'textproc/ruby-json/patches')
-rw-r--r--textproc/ruby-json/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/textproc/ruby-json/patches/patch-aa b/textproc/ruby-json/patches/patch-aa
new file mode 100644
index 00000000000..ad7502c2288
--- /dev/null
+++ b/textproc/ruby-json/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/04/04 15:21:43 jlam Exp $
+
+--- Rakefile.orig 1969-12-31 19:00:00.000000000 -0500
++++ Rakefile
+@@ -12,7 +12,7 @@ include Config
+ ON_WINDOWS = RUBY_PLATFORM =~ /mswin32/i
+ PKG_NAME = 'json'
+ PKG_VERSION = File.read('VERSION').chomp
+-PKG_FILES = FileList["**/*"].exclude(/CVS|pkg|coverage|Makefile/).exclude(/\.(so|bundle|o|#{CONFIG['DLEXT']})$/)
++PKG_FILES = FileList["**/*"].exclude(/CVS|pkg|coverage|Makefile/).exclude(/\.(so|bundle|o|orig|#{CONFIG['DLEXT']})$/)
+ EXT_ROOT_DIR = 'ext/json/ext'
+ EXT_PARSER_DIR = "#{EXT_ROOT_DIR}/parser"
+ EXT_PARSER_DL = "#{EXT_ROOT_DIR}/parser.#{CONFIG['DLEXT']}"
+@@ -219,8 +219,6 @@ if defined? Gem
+ s.require_paths << 'lib'
+
+ s.bindir = "bin"
+- s.executables = ["edit_json.rb"]
+- s.default_executable = "edit_json.rb"
+
+ s.has_rdoc = true
+ s.rdoc_options <<
+@@ -243,7 +241,7 @@ if defined? Gem
+ mkdir_p 'pkg'
+ spec_win_ext = Gem::Specification.new do |s|
+ s.name = 'json'
+- s.platform = Gem::Platform::WIN32
++ s.platform = Gem::Platform::CURRENT
+ s.version = PKG_VERSION
+ s.summary = "A JSON implementation as a Ruby extension"
+ s.description = ""