2000-08-10 18:50:00 +00:00
|
|
|
# New ports collection makefile for: Ruby-xmlparser
|
|
|
|
# Date created: 9 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmlparser
|
2002-10-05 10:24:10 +00:00
|
|
|
PORTVERSION= 0.6.5
|
2000-08-16 12:21:24 +00:00
|
|
|
CATEGORIES= textproc ruby
|
2001-02-07 19:14:19 +00:00
|
|
|
MASTER_SITES= http://www.yoshidam.net/
|
2000-09-07 14:39:47 +00:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-10 18:50:00 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 05:42:05 +00:00
|
|
|
COMMENT= Ruby module to access James Clark's XML Parser ToolKit ("expat")
|
2000-08-10 18:50:00 +00:00
|
|
|
|
2000-09-07 14:39:47 +00:00
|
|
|
BUILD_DEPENDS= ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
2002-09-17 20:34:41 +00:00
|
|
|
LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2
|
2001-07-22 09:52:35 +00:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv \
|
|
|
|
${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
2000-08-10 18:50:00 +00:00
|
|
|
# to utilize encoding maps included in p5-XML-Parser
|
|
|
|
|
2000-09-07 14:39:47 +00:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2000-08-10 18:50:00 +00:00
|
|
|
|
2003-10-24 12:05:09 +00:00
|
|
|
PERL_ARCHLIB= ${SITE_PERL}/${PERL_ARCH}
|
2000-08-10 18:50:00 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2002-04-27 13:18:07 +00:00
|
|
|
CONFIGURE_ARGS= --with-perl-enc-map=${PERL_ARCHLIB}/XML/Parser/Encodings
|
2000-08-10 18:50:00 +00:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2002-04-27 13:18:07 +00:00
|
|
|
post-extract:
|
|
|
|
${RM} -r ${WRKSRC}/samples/expat-1.2
|
2000-08-10 18:50:00 +00:00
|
|
|
|
|
|
|
post-patch:
|
2000-10-15 20:44:40 +00:00
|
|
|
${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
|
2000-08-10 18:50:00 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-08-12 20:09:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_MODDOCDIR}/ja/
|
2000-08-10 18:50:00 +00:00
|
|
|
.endif
|
|
|
|
|
2000-09-26 08:02:17 +00:00
|
|
|
.include <bsd.port.mk>
|