diff options
Diffstat (limited to 'textproc/ruby-xmlparser/Makefile')
| -rw-r--r-- | textproc/ruby-xmlparser/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/textproc/ruby-xmlparser/Makefile b/textproc/ruby-xmlparser/Makefile index 46bb6c11d13b..a52679d16ace 100644 --- a/textproc/ruby-xmlparser/Makefile +++ b/textproc/ruby-xmlparser/Makefile @@ -6,8 +6,7 @@ # PORTNAME= xmlparser -PORTVERSION= 0.5.19 -PORTREVISION= 1 +PORTVERSION= 0.6.1 CATEGORIES= textproc ruby MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://www.bekkoame.ne.jp/~yoshidam/ @@ -31,12 +30,20 @@ USE_RUBY_RD= yes PERL_ARCHLIB= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} WRKSRC= ${WRKDIR}/${PORTNAME} +CONFIGURE_ARGS= --with-perl-enc-map \ + --with-xmlparse-include="${LOCALBASE}/include/xml" \ + --with-xmltok-include="${LOCALBASE}/include/xml" INSTALL_TARGET= site-install EXAMPLES_EN= dtd/ext1.dtd dtd/ext2.dtd dtd/extdtd.rb dtd/extdtd.xml \ + expat-1.2/ext.ent expat-1.2/exttest.rb \ + expat-1.2/exttesti.rb expat-1.2/hoge.dtd \ + expat-1.2/idtest.rb expat-1.2/idtest.xml \ + expat-1.2/xmlextparser.rb \ namespaces/namespace1.rb namespaces/namespace1.xml \ namespaces/namespace2.rb namespaces/namespace2.xml \ - digesttest.rb idattrtest.rb my-html.rb saxtest.rb \ + digesttest.rb doctype.rb doctype.xml doctypei.rb \ + idattrtest.rb my-html.rb saxtest.rb \ visitortest.rb writer.rb xmlcomments.rb xmlstats.rb EXAMPLES_JA= buildertest.rb buildertest2.rb digesttest2.rb document.dtd \ gtktree.rb index_euc.xml index_jis.xml index_noenc.xml \ @@ -47,12 +54,12 @@ EXAMPLES_JA= buildertest.rb buildertest2.rb digesttest2.rb document.dtd \ RD_DOCS= xmltree.rb xmltreebuilder.rb xmltreevisitor.rb post-patch: - ${PERL} -i -pe 's,%%PERL_ARCHLIB%%,${PERL_ARCHLIB},g' ${WRKSRC}/extconf.rb - ${PERL} -i -pe 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/lib/wget.rb + ${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/dtd + ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/expat-1.2 ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/namespaces ${MKDIR} ${RUBY_EXAMPLESDIR}/xmlparser/ja .for f in ${EXAMPLES_EN} |
