diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-04 15:21:43 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-04 15:21:43 +0000 |
commit | 8fff57d2a39609caef126ee9b0a595c2ff980be6 (patch) | |
tree | 63389cc21234ba13c1d36073893bb54b471ce7e1 /textproc | |
parent | 83c0d3e9ac4236718e3957397d60df1d71ed7e3e (diff) | |
download | pkgsrc-8fff57d2a39609caef126ee9b0a595c2ff980be6.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')
-rw-r--r-- | textproc/ruby-json/DESCR | 15 | ||||
-rw-r--r-- | textproc/ruby-json/Makefile | 12 | ||||
-rw-r--r-- | textproc/ruby-json/PLIST | 105 | ||||
-rw-r--r-- | textproc/ruby-json/distinfo | 6 | ||||
-rw-r--r-- | textproc/ruby-json/patches/patch-aa | 31 |
5 files changed, 169 insertions, 0 deletions
diff --git a/textproc/ruby-json/DESCR b/textproc/ruby-json/DESCR new file mode 100644 index 00000000000..a2382a02518 --- /dev/null +++ b/textproc/ruby-json/DESCR @@ -0,0 +1,15 @@ +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. diff --git a/textproc/ruby-json/Makefile b/textproc/ruby-json/Makefile new file mode 100644 index 00000000000..aa225da2f71 --- /dev/null +++ b/textproc/ruby-json/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/04/04 15:21:43 jlam Exp $ + +DISTNAME= json-1.1.2 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= textproc + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://json.rubyforge.org/ +COMMENT= Native extension implementation of JSON for Ruby + +.include "../../misc/rubygems/rubygem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ruby-json/PLIST b/textproc/ruby-json/PLIST new file mode 100644 index 00000000000..028c07c34ef --- /dev/null +++ b/textproc/ruby-json/PLIST @@ -0,0 +1,105 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/04 15:21:43 jlam Exp $ +${GEM_HOME}/cache/json-${PKGVERSION}.gem +${GEM_LIBDIR}/.require_paths +${GEM_LIBDIR}/CHANGES +${GEM_LIBDIR}/GPL +${GEM_LIBDIR}/README +${GEM_LIBDIR}/RUBY +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/TODO +${GEM_LIBDIR}/VERSION +${GEM_LIBDIR}/benchmarks/benchmark.txt +${GEM_LIBDIR}/benchmarks/benchmark_generator.rb +${GEM_LIBDIR}/benchmarks/benchmark_parser.rb +${GEM_LIBDIR}/benchmarks/benchmark_rails.rb +${GEM_LIBDIR}/bin/edit_json.rb +${GEM_LIBDIR}/bin/prettify_json.rb +${GEM_LIBDIR}/data/example.json +${GEM_LIBDIR}/data/index.html +${GEM_LIBDIR}/data/prototype.js +${GEM_LIBDIR}/ext/json/ext/generator/extconf.rb +${GEM_LIBDIR}/ext/json/ext/generator/generator.c +${GEM_LIBDIR}/ext/json/ext/generator/unicode.c +${GEM_LIBDIR}/ext/json/ext/generator/unicode.h +${GEM_LIBDIR}/ext/json/ext/parser/extconf.rb +${GEM_LIBDIR}/ext/json/ext/parser/parser.c +${GEM_LIBDIR}/ext/json/ext/parser/parser.rl +${GEM_LIBDIR}/ext/json/ext/parser/unicode.c +${GEM_LIBDIR}/ext/json/ext/parser/unicode.h +${GEM_LIBDIR}/install.rb +${GEM_LIBDIR}/lib/json.rb +${GEM_LIBDIR}/lib/json/Array.xpm +${GEM_LIBDIR}/lib/json/FalseClass.xpm +${GEM_LIBDIR}/lib/json/Hash.xpm +${GEM_LIBDIR}/lib/json/Key.xpm +${GEM_LIBDIR}/lib/json/NilClass.xpm +${GEM_LIBDIR}/lib/json/Numeric.xpm +${GEM_LIBDIR}/lib/json/String.xpm +${GEM_LIBDIR}/lib/json/TrueClass.xpm +${GEM_LIBDIR}/lib/json/add/core.rb +${GEM_LIBDIR}/lib/json/add/rails.rb +${GEM_LIBDIR}/lib/json/common.rb +${GEM_LIBDIR}/lib/json/editor.rb +${GEM_LIBDIR}/lib/json/ext.rb +${GEM_LIBDIR}/lib/json/json.xpm +${GEM_LIBDIR}/lib/json/pure.rb +${GEM_LIBDIR}/lib/json/pure/generator.rb +${GEM_LIBDIR}/lib/json/pure/parser.rb +${GEM_LIBDIR}/lib/json/version.rb +${GEM_LIBDIR}/tests/fixtures/fail1.json +${GEM_LIBDIR}/tests/fixtures/fail10.json +${GEM_LIBDIR}/tests/fixtures/fail11.json +${GEM_LIBDIR}/tests/fixtures/fail12.json +${GEM_LIBDIR}/tests/fixtures/fail13.json +${GEM_LIBDIR}/tests/fixtures/fail14.json +${GEM_LIBDIR}/tests/fixtures/fail18.json +${GEM_LIBDIR}/tests/fixtures/fail19.json +${GEM_LIBDIR}/tests/fixtures/fail2.json +${GEM_LIBDIR}/tests/fixtures/fail20.json +${GEM_LIBDIR}/tests/fixtures/fail21.json +${GEM_LIBDIR}/tests/fixtures/fail22.json +${GEM_LIBDIR}/tests/fixtures/fail23.json +${GEM_LIBDIR}/tests/fixtures/fail24.json +${GEM_LIBDIR}/tests/fixtures/fail25.json +${GEM_LIBDIR}/tests/fixtures/fail27.json +${GEM_LIBDIR}/tests/fixtures/fail28.json +${GEM_LIBDIR}/tests/fixtures/fail3.json +${GEM_LIBDIR}/tests/fixtures/fail4.json +${GEM_LIBDIR}/tests/fixtures/fail5.json +${GEM_LIBDIR}/tests/fixtures/fail6.json +${GEM_LIBDIR}/tests/fixtures/fail7.json +${GEM_LIBDIR}/tests/fixtures/fail8.json +${GEM_LIBDIR}/tests/fixtures/fail9.json +${GEM_LIBDIR}/tests/fixtures/pass1.json +${GEM_LIBDIR}/tests/fixtures/pass15.json +${GEM_LIBDIR}/tests/fixtures/pass16.json +${GEM_LIBDIR}/tests/fixtures/pass17.json +${GEM_LIBDIR}/tests/fixtures/pass2.json +${GEM_LIBDIR}/tests/fixtures/pass26.json +${GEM_LIBDIR}/tests/fixtures/pass3.json +${GEM_LIBDIR}/tests/runner.rb +${GEM_LIBDIR}/tests/test_json.rb +${GEM_LIBDIR}/tests/test_json_addition.rb +${GEM_LIBDIR}/tests/test_json_fixtures.rb +${GEM_LIBDIR}/tests/test_json_generate.rb +${GEM_LIBDIR}/tests/test_json_rails.rb +${GEM_LIBDIR}/tests/test_json_unicode.rb +${GEM_LIBDIR}/tools/fuzz.rb +${GEM_LIBDIR}/tools/server.rb +${GEM_HOME}/specifications/json-${PKGVERSION}.gemspec +@dirrm ${GEM_LIBDIR}/tools +@dirrm ${GEM_LIBDIR}/tests/fixtures +@dirrm ${GEM_LIBDIR}/tests +@dirrm ${GEM_LIBDIR}/lib/json/pure +@dirrm ${GEM_LIBDIR}/lib/json/add +@dirrm ${GEM_LIBDIR}/lib/json +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/ext/json/ext/parser +@dirrm ${GEM_LIBDIR}/ext/json/ext/generator +@dirrm ${GEM_LIBDIR}/ext/json/ext +@dirrm ${GEM_LIBDIR}/ext/json +@dirrm ${GEM_LIBDIR}/ext +@dirrm ${GEM_LIBDIR}/data +@dirrm ${GEM_LIBDIR}/bin +@dirrm ${GEM_LIBDIR}/benchmarks +@dirrm ${GEM_LIBDIR} diff --git a/textproc/ruby-json/distinfo b/textproc/ruby-json/distinfo new file mode 100644 index 00000000000..f0c86a96752 --- /dev/null +++ b/textproc/ruby-json/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/04/04 15:21:43 jlam Exp $ + +SHA1 (json-1.1.2.gem) = 6425eb472af5c7e22b29e95fc3479ff894142c8a +RMD160 (json-1.1.2.gem) = 2e9d337512ab8a102fa8b353955d43ac767273a7 +Size (json-1.1.2.gem) = 113152 bytes +SHA1 (patch-aa) = 8787445abfb91162e0bd1d182dea9d65053bf04a 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 = "" |