pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/ruby-xmlparser Initial import of ruby-xmlpars...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0ff830e27b7f
branches:  trunk
changeset: 484537:0ff830e27b7f
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Nov 28 04:51:38 2004 +0000

description:
Initial import of ruby-xmlparser 0.6.8 pacakge.

Ruby-xmlparse is a module to access to James Clark's XML Parser Toolkit
"expat" (http://www.jclark.com/xml/expat.html) from Ruby.

It is used by net/ruby-xmlrpc4r pakcage.

diffstat:

 textproc/ruby-xmlparser/DESCR            |    2 +
 textproc/ruby-xmlparser/Makefile         |   28 +++++++
 textproc/ruby-xmlparser/PLIST            |  110 +++++++++++++++++++++++++++++++
 textproc/ruby-xmlparser/distinfo         |    6 +
 textproc/ruby-xmlparser/patches/patch-aa |   13 +++
 textproc/ruby-xmlparser/patches/patch-ab |   26 +++++++
 6 files changed, 185 insertions(+), 0 deletions(-)

diffs (209 lines):

diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/DESCR     Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,2 @@
+Ruby-xmlparse is a module to access to James Clark's XML Parser Toolkit
+"expat" (http://www.jclark.com/xml/expat.html) from Ruby.
diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/Makefile  Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
+#
+
+DISTNAME=      xmlparser-0.6.8
+PKGNAME=       ${RUBY_PKGPREFIX}-xmlparser-0.6.8
+CATEGORIES=    textproc ruby
+MASTER_SITES=  http://www.yoshidam.net/
+
+MAINTAINER=    taca%NetBSD.org@localhost
+HOMEPAGE=      http://www.yoshidam.net/Ruby.html#xmlparser
+COMMENT=       expat interface module for Ruby
+
+USE_BUILDLINK3=                yes
+USE_RUBY_EXTCONF=      yes
+CONFIGURE_ARGS+=       --with-perl-enc-map
+WRKSRC=                        ${WRKDIR}/xmlparser
+REPLACE_RUBY_DIRS=     ${WRKSRC}/samples
+
+pre-patch:
+       ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/samples; ${RM} -r */CVS
+
+post-install:
+       ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/xmlparser
+       ${CP} -r ${WRKSRC}/samples/* ${RUBY_EXAMPLESDIR}/xmlparser
+
+.include "../../lang/ruby/modules.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/PLIST     Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,110 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
+${RUBY_SITEARCHLIBDIR}/xmlparser.so
+${RUBY_SITELIBDIR}/sax.rb
+${RUBY_SITELIBDIR}/saxdriver.rb
+${RUBY_SITELIBDIR}/wget.rb
+${RUBY_SITELIBDIR}/xml/dom/builder-ja.rb
+${RUBY_SITELIBDIR}/xml/dom/builder.rb
+${RUBY_SITELIBDIR}/xml/dom/core.rb
+${RUBY_SITELIBDIR}/xml/dom/digest.rb
+${RUBY_SITELIBDIR}/xml/dom/visitor.rb
+@dirrm ${RUBY_SITELIBDIR}/xml/dom
+${RUBY_SITELIBDIR}/xml/dom2/attr.rb
+${RUBY_SITELIBDIR}/xml/dom2/cdatasection.rb
+${RUBY_SITELIBDIR}/xml/dom2/characterdata.rb
+${RUBY_SITELIBDIR}/xml/dom2/comment.rb
+${RUBY_SITELIBDIR}/xml/dom2/core.rb
+${RUBY_SITELIBDIR}/xml/dom2/document.rb
+${RUBY_SITELIBDIR}/xml/dom2/documentfragment.rb
+${RUBY_SITELIBDIR}/xml/dom2/documenttype.rb
+${RUBY_SITELIBDIR}/xml/dom2/dombuilder.rb
+${RUBY_SITELIBDIR}/xml/dom2/dombuilderfilter.rb
+${RUBY_SITELIBDIR}/xml/dom2/domentityresolver.rb
+${RUBY_SITELIBDIR}/xml/dom2/domentityresolverimpl.rb
+${RUBY_SITELIBDIR}/xml/dom2/domexception.rb
+${RUBY_SITELIBDIR}/xml/dom2/domimplementation.rb
+${RUBY_SITELIBDIR}/xml/dom2/dominputsource.rb
+${RUBY_SITELIBDIR}/xml/dom2/element.rb
+${RUBY_SITELIBDIR}/xml/dom2/entity.rb
+${RUBY_SITELIBDIR}/xml/dom2/entityreference.rb
+${RUBY_SITELIBDIR}/xml/dom2/namednodemap.rb
+${RUBY_SITELIBDIR}/xml/dom2/node.rb
+${RUBY_SITELIBDIR}/xml/dom2/nodelist.rb
+${RUBY_SITELIBDIR}/xml/dom2/notation.rb
+${RUBY_SITELIBDIR}/xml/dom2/processinginstruction.rb
+${RUBY_SITELIBDIR}/xml/dom2/text.rb
+${RUBY_SITELIBDIR}/xml/dom2/xpath.rb
+@dirrm ${RUBY_SITELIBDIR}/xml/dom2
+${RUBY_SITELIBDIR}/xml/encoding-ja.rb
+${RUBY_SITELIBDIR}/xml/parser.rb
+${RUBY_SITELIBDIR}/xml/parserns.rb
+${RUBY_SITELIBDIR}/xml/sax.rb
+${RUBY_SITELIBDIR}/xml/saxdriver.rb
+${RUBY_SITELIBDIR}/xml/xpath.rb
+@dirrm ${RUBY_SITELIBDIR}/xml
+${RUBY_SITELIBDIR}/xmldigest.rb
+${RUBY_SITELIBDIR}/xmlencoding-ja.rb
+${RUBY_SITELIBDIR}/xmltree.rb
+${RUBY_SITELIBDIR}/xmltreebuilder-ja.rb
+${RUBY_SITELIBDIR}/xmltreebuilder.rb
+${RUBY_SITELIBDIR}/xmltreevisitor.rb
+${RUBY_EXAMPLESDIR}/xmlparser/buildertest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/buildertest2.rb
+${RUBY_EXAMPLESDIR}/xmlparser/digesttest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/digesttest2.rb
+${RUBY_EXAMPLESDIR}/xmlparser/doctype.rb
+${RUBY_EXAMPLESDIR}/xmlparser/doctype.xml
+${RUBY_EXAMPLESDIR}/xmlparser/doctypei.rb
+${RUBY_EXAMPLESDIR}/xmlparser/document.dtd
+${RUBY_EXAMPLESDIR}/xmlparser/dom2/dom2test1.rb
+${RUBY_EXAMPLESDIR}/xmlparser/dom2/dom2test2.rb
+${RUBY_EXAMPLESDIR}/xmlparser/dom2/gtkxpath.rb
+${RUBY_EXAMPLESDIR}/xmlparser/dom2/test1.xml
+${RUBY_EXAMPLESDIR}/xmlparser/dom2/test2.xml
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser/dom2
+${RUBY_EXAMPLESDIR}/xmlparser/dtd/ext1.dtd
+${RUBY_EXAMPLESDIR}/xmlparser/dtd/ext2.dtd
+${RUBY_EXAMPLESDIR}/xmlparser/dtd/extdtd.rb
+${RUBY_EXAMPLESDIR}/xmlparser/dtd/extdtd.xml
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser/dtd
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/ext.ent
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/exttest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/exttesti.rb
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/hoge.dtd
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/idattr.xml
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/idtest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/idtest.xml
+${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2/xmlextparser.rb
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2
+${RUBY_EXAMPLESDIR}/xmlparser/gtktree.rb
+${RUBY_EXAMPLESDIR}/xmlparser/idattrtest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/index_euc.xml
+${RUBY_EXAMPLESDIR}/xmlparser/index_jis.xml
+${RUBY_EXAMPLESDIR}/xmlparser/index_noenc.xml
+${RUBY_EXAMPLESDIR}/xmlparser/index_sjis.xml
+${RUBY_EXAMPLESDIR}/xmlparser/index_u16.xml
+${RUBY_EXAMPLESDIR}/xmlparser/index_u8.xml
+${RUBY_EXAMPLESDIR}/xmlparser/my-html.rb
+${RUBY_EXAMPLESDIR}/xmlparser/namespaces/namespace1.rb
+${RUBY_EXAMPLESDIR}/xmlparser/namespaces/namespace1.xml
+${RUBY_EXAMPLESDIR}/xmlparser/namespaces/namespace2.rb
+${RUBY_EXAMPLESDIR}/xmlparser/namespaces/namespace2.xml
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser/namespaces
+${RUBY_EXAMPLESDIR}/xmlparser/nstest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/saxtest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/test/featurelist.rb
+${RUBY_EXAMPLESDIR}/xmlparser/test/skippedentity.rb
+${RUBY_EXAMPLESDIR}/xmlparser/test/useforeigndtd.rb
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser/test
+${RUBY_EXAMPLESDIR}/xmlparser/treetest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/visitor.rb
+${RUBY_EXAMPLESDIR}/xmlparser/visitortest.rb
+${RUBY_EXAMPLESDIR}/xmlparser/writer.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xmlcheck.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xmlcomments.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xmlevent.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xmliter.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xmlstats.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xpointer.rb
+${RUBY_EXAMPLESDIR}/xmlparser/xpointertest.rb
+@dirrm ${RUBY_EXAMPLESDIR}/xmlparser
diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/distinfo  Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
+
+SHA1 (ruby/xmlparser-0.6.8.tar.gz) = 9a53a7c576347ac8bccbc56fb55afef3fb32268d
+Size (ruby/xmlparser-0.6.8.tar.gz) = 140589 bytes
+SHA1 (patch-aa) = caf2667257f38503b6ac5094b570d19f0d16eb69
+SHA1 (patch-ab) = 6f0f9ba927bc0ad1c2ece2c3a10875056b91cbfd
diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/patches/patch-aa  Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
+
+--- extconf.rb.orig    2004-02-18 22:48:06.000000000 +0900
++++ extconf.rb
+@@ -12,7 +12,7 @@ perl= ENV['PERL'] || 'perl'
+ ## Encoding maps may be stored in $perl_archlib/XML/Parser/Encodins/
+ #perl_archlib = '/usr/lib/perl5/site_perl/5.005/i586-linux'
+ #perl_archlib = '/usr/local/lib'
+-perl_archlib = `#{perl} -e 'use Config; print $Config{"archlib"}'`
++perl_archlib = `#{perl} -e 'use Config; print $Config{"sitelib"}'`
+ xml_enc_path = with_config("perl-enc-map")
+ if xml_enc_path == true
+   xml_enc_path = perl_archlib + "/XML/Parser/Encodings"
diff -r a9c3d45f3eef -r 0ff830e27b7f textproc/ruby-xmlparser/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ruby-xmlparser/patches/patch-ab  Sun Nov 28 04:51:38 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/11/28 04:51:38 taca Exp $
+
+--- xmlparser.c.orig   Tue Apr  6 14:16:09 2004
++++ xmlparser.c
+@@ -526,8 +526,9 @@ iterElementDeclHandler(void *recv,
+                      XML_Content *model)
+ {
+   XMLParser* parser;
++  VALUE content;
+   GET_PARSER(recv, parser);
+-  VALUE content = makeContentArray(parser, model);
++  content = makeContentArray(parser, model);
+   rb_yield(rb_ary_new3(4, symELEMENT_DECL,
+                      TO_(rb_str_new2(name)),
+                      content, recv));
+@@ -929,8 +930,9 @@ myElementDeclHandler(void *recv,
+                    XML_Content *model)
+ {
+   XMLParser* parser;
++  VALUE content;
+   GET_PARSER(recv, parser);
+-  VALUE content = makeContentArray(parser, model);
++  content = makeContentArray(parser, model);
+   rb_funcall((VALUE)recv, id_elementDeclHandler, 2,
+            TO_(rb_str_new2(name)), content);
+ }



Home | Main Index | Thread Index | Old Index