diff options
author | taca <taca@pkgsrc.org> | 2004-11-28 04:51:38 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-11-28 04:51:38 +0000 |
commit | a9e71bc002e4386880f537758430239ea3edad64 (patch) | |
tree | 9ef490e6955fccc7a1584727fb9e0687b4bc890f /textproc/ruby-xmlparser | |
parent | d8551082d0da683c842031f8caf9540e90e2184f (diff) | |
download | pkgsrc-a9e71bc002e4386880f537758430239ea3edad64.tar.gz |
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 (limited to 'textproc/ruby-xmlparser')
-rw-r--r-- | textproc/ruby-xmlparser/DESCR | 2 | ||||
-rw-r--r-- | textproc/ruby-xmlparser/Makefile | 28 | ||||
-rw-r--r-- | textproc/ruby-xmlparser/PLIST | 110 | ||||
-rw-r--r-- | textproc/ruby-xmlparser/distinfo | 6 | ||||
-rw-r--r-- | textproc/ruby-xmlparser/patches/patch-aa | 13 | ||||
-rw-r--r-- | textproc/ruby-xmlparser/patches/patch-ab | 26 |
6 files changed, 185 insertions, 0 deletions
diff --git a/textproc/ruby-xmlparser/DESCR b/textproc/ruby-xmlparser/DESCR new file mode 100644 index 00000000000..7dc71832aef --- /dev/null +++ b/textproc/ruby-xmlparser/DESCR @@ -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 --git a/textproc/ruby-xmlparser/Makefile b/textproc/ruby-xmlparser/Makefile new file mode 100644 index 00000000000..c48f5e13c04 --- /dev/null +++ b/textproc/ruby-xmlparser/Makefile @@ -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 +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 --git a/textproc/ruby-xmlparser/PLIST b/textproc/ruby-xmlparser/PLIST new file mode 100644 index 00000000000..56748d1aea7 --- /dev/null +++ b/textproc/ruby-xmlparser/PLIST @@ -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 --git a/textproc/ruby-xmlparser/distinfo b/textproc/ruby-xmlparser/distinfo new file mode 100644 index 00000000000..c4d53416c99 --- /dev/null +++ b/textproc/ruby-xmlparser/distinfo @@ -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 --git a/textproc/ruby-xmlparser/patches/patch-aa b/textproc/ruby-xmlparser/patches/patch-aa new file mode 100644 index 00000000000..06ffb7aaa55 --- /dev/null +++ b/textproc/ruby-xmlparser/patches/patch-aa @@ -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 --git a/textproc/ruby-xmlparser/patches/patch-ab b/textproc/ruby-xmlparser/patches/patch-ab new file mode 100644 index 00000000000..3a212eafdc6 --- /dev/null +++ b/textproc/ruby-xmlparser/patches/patch-ab @@ -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); + } |