2000-08-10 20:50:00 +02:00
|
|
|
# New ports collection makefile for: Ruby-xmlparser
|
|
|
|
# Date created: 9 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmlparser
|
2010-10-29 08:14:30 +02:00
|
|
|
PORTVERSION= 0.7.1
|
2000-08-16 14:21:24 +02:00
|
|
|
CATEGORIES= textproc ruby
|
2001-02-07 20:14:19 +01:00
|
|
|
MASTER_SITES= http://www.yoshidam.net/
|
2000-09-07 16:39:47 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-10 20:50:00 +02:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2009-06-16 17:53:25 +02:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2010-06-08 02:23:15 +02:00
|
|
|
COMMENT= Ruby module to access James Clark XML Parser ToolKit ("expat")
|
2000-08-10 20:50:00 +02:00
|
|
|
|
2000-09-07 16:39:47 +02:00
|
|
|
BUILD_DEPENDS= ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
|
2006-01-31 00:20:05 +01:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
2001-07-22 11:52:35 +02: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 20:50:00 +02:00
|
|
|
# to utilize encoding maps included in p5-XML-Parser
|
|
|
|
|
2007-09-30 06:55:31 +02:00
|
|
|
USE_PERL5= yes
|
2000-09-07 16:39:47 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2000-08-10 20:50:00 +02:00
|
|
|
|
2003-10-24 14:05:09 +02:00
|
|
|
PERL_ARCHLIB= ${SITE_PERL}/${PERL_ARCH}
|
2000-08-10 20:50:00 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2002-04-27 15:18:07 +02:00
|
|
|
CONFIGURE_ARGS= --with-perl-enc-map=${PERL_ARCHLIB}/XML/Parser/Encodings
|
2000-08-10 20:50:00 +02:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2002-04-27 15:18:07 +02:00
|
|
|
post-extract:
|
2004-04-18 20:08:43 +02:00
|
|
|
${FIND} ${WRKSRC} -name CVS -type d -exec ${RM} -r {} ';' -prune
|
2000-08-10 20:50:00 +02:00
|
|
|
|
|
|
|
post-patch:
|
2000-10-15 22:44:40 +02:00
|
|
|
${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
|
2000-08-10 20:50:00 +02:00
|
|
|
|
|
|
|
post-install:
|
2000-08-12 22:09:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2010-06-08 02:23:15 +02:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja/
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_MODDOCDIR}/ja/
|
2000-08-10 20:50:00 +02:00
|
|
|
.endif
|
|
|
|
|
2000-09-26 10:02:17 +02:00
|
|
|
.include <bsd.port.mk>
|