eee58d187e
Before, we had: site_perl : lib/perl5/site_perl/5.18 site_perl/perl_arch : lib/perl5/site_perl/5.18/mach perl_man3 : lib/perl5/5.18/man/man3 Now we have: site_perl : lib/perl5/site_perl site_arch : lib/perl5/site_perl/mach/5.18 perl_man3 : lib/perl5/site_perl/man/man3 Modules without any .so will be installed at the same place regardless of the Perl version, minimizing the upgrade when the major Perl version is changed. It uses a version dependent directory for modules with compiled bits. As PERL_ARCH is no longer needed in plists, it has been removed from PLIST_SUB. The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now always removed, as is perllocal.pod. The old site_perl and site_perl/arch directories have been kept in the default Perl @INC for all Perl ports, and will be phased out as these old Perl versions expire. PR: 194969 Differential Revision: https://reviews.freebsd.org/D1019 Exp-run by: antoine Reviewed by: perl@ Approved by: portmgr
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmlparser
|
|
PORTVERSION= 0.7.3
|
|
PORTREVISION= 1
|
|
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= libexpat.so:${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_ARCH}/XML/Parser/Encodings
|
|
INSTALL_TARGET= site-install
|
|
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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:
|
|
${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RUBY_MODDOCDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/README.ja ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
|
|
|
|
.include <bsd.port.mk>
|