1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/textproc/ruby-xmlparser/Makefile

49 lines
1.4 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
2002-10-05 10:24:10 +00:00
PORTVERSION= 0.6.5
CATEGORIES= textproc ruby
MASTER_SITES= http://www.yoshidam.net/
2000-09-07 14:39:47 +00:00
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
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-09-07 14:39:47 +00:00
BUILD_DEPENDS= ${PERL_ARCHLIB}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS= expat.4:${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
2000-09-07 14:39:47 +00: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:
${RM} -r ${WRKSRC}/samples/expat-1.2
post-patch:
${RUBY} -i -pe 'gsub /%%PREFIX%%/, "${PREFIX}"' ${WRKSRC}/lib/wget.rb
post-install:
.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/
.endif
.include <bsd.port.mk>