aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-xmlparser/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-10 18:50:00 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-10 18:50:00 +0000
commitdba8d1b92190e9753d6480a023bf6134a3b30bbc (patch)
tree79c7fca957fdff594dac921c9bde06cae30d2ea0 /textproc/ruby-xmlparser/files
parent2d8fae5264b16792c130d1aca37b23db745d7049 (diff)
Add ruby-xmlparser, a Ruby module to access James Clark's
XML Parser ToolKit. ("expat")
Diffstat (limited to 'textproc/ruby-xmlparser/files')
-rw-r--r--textproc/ruby-xmlparser/files/patch-aa27
-rw-r--r--textproc/ruby-xmlparser/files/patch-ab35
2 files changed, 62 insertions, 0 deletions
diff --git a/textproc/ruby-xmlparser/files/patch-aa b/textproc/ruby-xmlparser/files/patch-aa
new file mode 100644
index 000000000000..97f6bbf83593
--- /dev/null
+++ b/textproc/ruby-xmlparser/files/patch-aa
@@ -0,0 +1,27 @@
+--- extconf.rb.orig Wed Aug 18 08:38:36 1999
++++ extconf.rb Wed Aug 9 20:24:40 2000
+@@ -4,19 +4,19 @@
+
+ ## 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_ARCHLIB%%'
+ xml_enc_path = perl_archlib + "/XML/Parser/Encodings"
+
+ ##$CFLAGS="-I#{cwd}/expat/xmlparse -I#{cwd}/expat/xmltok" +
+ ## ' -DXML_ENC_PATH=getenv\(\"XML_ENC_PATH\"\)' +
+ ## " -DNEW_EXPAT"
+-$CFLAGS="-I#{cwd}/expat/xmlparse -I#{cwd}/expat/xmltok" +
++$CFLAGS="-I#{CONFIG['prefix']}/include/xml" +
+ " -DXML_ENC_PATH=\\\"#{xml_enc_path}\\\""
+-$LDFLAGS="-L#{cwd}/expat"
++$LDFLAGS="-L#{CONFIG['prefix']}/lib"
+
+ if have_header("xmlparse.h")
+- if have_library("xmltok", "XML_ParserCreate")
+-# if have_library("expat", "XML_ParserCreate")
++# if have_library("xmltok", "XML_ParserCreate")
++ if have_library("expat", "XML_ParserCreate")
+ if have_func("XML_SetNotStandaloneHandler")
+ $CFLAGS += " -DNEW_EXPAT"
+ end
diff --git a/textproc/ruby-xmlparser/files/patch-ab b/textproc/ruby-xmlparser/files/patch-ab
new file mode 100644
index 000000000000..5a509f9a8fec
--- /dev/null
+++ b/textproc/ruby-xmlparser/files/patch-ab
@@ -0,0 +1,35 @@
+--- lib/wget.rb.orig Tue Mar 23 17:30:30 1999
++++ lib/wget.rb Fri Aug 11 03:23:28 2000
+@@ -19,17 +19,18 @@
+ if url =~ /^\/|^\./ || (url !~ /^http:|^ftp:/ && FileTest.exist?(url))
+ File::open(url, *rest)
+ else
+- ENV['http_proxy'] = PARAM['http_proxy'] if PARAM['http_proxy']
+- ENV['ftp_proxy'] = PARAM['ftp_proxy'] if PARAM['ftp_proxy']
++ ENV['HTTP_PROXY'] = ENV['http_proxy'] = PARAM['http_proxy'] if PARAM['http_proxy']
++ ENV['FTP_PROXY'] = ENV['ftp_proxy'] = PARAM['ftp_proxy'] if PARAM['ftp_proxy']
+ IO::popen(PARAM['wget'] + ' ' + PARAM['opts'] + ' ' + url)
+ end
+ end
+ module_function :open
+ end
+
+-[ '/usr/local/bin/wget', '/usr/bin/wget',
+- '/usr/local/bin/lynx', '/usr/bin/lynx',
+- '/usr/local/bin/lwp-request', '/usr/bin/lwp-request' ].each do |p|
++[ '%%PREFIX%%/bin/wget',
++ '%%PREFIX%%/bin/lynx',
++ '%%PREFIX%%/bin/lwp-request',
++ '/usr/bin/fetch' ].each do |p|
+ if FileTest.executable?(p)
+ WGET::PARAM['wget'] = p
+ case p
+@@ -39,6 +40,8 @@
+ WGET::PARAM['opts'] = '-source'
+ when /lwp-request$/
+ WGET::PARAM['opts'] = '-m GET'
++ when /fetch$/
++ WGET::PARAM['opts'] = '-o -'
+ end
+ break
+ end