mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmlparser
|
|
PORTVERSION= 0.7.3
|
|
CATEGORIES= textproc ruby
|
|
MASTER_SITES= http://www.yoshidam.net/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= Ruby module to access James Clark XML Parser ToolKit ("expat")
|
|
|
|
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/uconv.so:${PORTSDIR}/japanese/ruby-uconv \
|
|
p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
|
|
# to utilize encoding maps included in p5-XML-Parser
|
|
|
|
USES= perl5
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
CONFIGURE_ARGS= --with-perl-enc-map=${SITE_PERL}/${PERL_ARCH}/XML/Parser/Encodings
|
|
INSTALL_TARGET= site-install
|
|
|
|
NO_STAGE= yes
|
|
post-extract:
|
|
${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)
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja/
|
|
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${RUBY_MODDOCDIR}/ja/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|