freebsd-ports/textproc/ruby-xmlparser/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# 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
CATEGORIES= textproc ruby
MASTER_SITES= http://www.yoshidam.net/
2000-09-07 16:39:47 +02:00
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
2010-06-08 02:23:15 +02:00
COMMENT= Ruby module to access James Clark XML Parser ToolKit ("expat")
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
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv \
${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
# to utilize encoding maps included in p5-XML-Parser
USE_PERL5= yes
2000-09-07 16:39:47 +02:00
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
PERL_ARCHLIB= ${SITE_PERL}/${PERL_ARCH}
WRKSRC= ${WRKDIR}/${PORTNAME}
CONFIGURE_ARGS= --with-perl-enc-map=${PERL_ARCHLIB}/XML/Parser/Encodings
INSTALL_TARGET= site-install
post-extract:
2004-04-18 20:08:43 +02:00
${FIND} ${WRKSRC} -name CVS -type d -exec ${RM} -r {} ';' -prune
post-patch:
${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
post-install:
.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/
.endif
.include <bsd.port.mk>