freebsd-ports/www/p5-RT-Extension-MandatoryOnTransition/Makefile
Mark Felder 4ce180b97b - Update to new Perl framework
- Fix my email address

Approved by:	swills (mentor)
2013-07-31 18:31:44 +00:00

38 lines
1.2 KiB
Makefile

# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= RT-Extension-MandatoryOnTransition
DISTVERSION= 0.04
CATEGORIES= www net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= feld@FreeBSD.org
COMMENT= Extension to require core and ticket custom fields on status changes
LICENSE= GPLv2
BUILD_DEPENDS= rt>4.0.8:${PORTSDIR}/www/rt${RT_VER}
RUN_DEPENDS= rt>4.0.8:${PORTSDIR}/www/rt${RT_VER}
USES= perl5
USE_PERL5= configure
MAN3= RT::Extension::MandatoryOnTransition.3
PLIST_SUB+= RT_VER=${RT_VER}
RT_VER= 40
post-patch:
${REINPLACE_CMD} -e 's,$$RT::LocalPath/man/man3,${PREFIX}/lib/perl5/${PERL_VER}/man/man3,g' ${WRKSRC}/inc/Module/Install/RTx.pm
${REINPLACE_CMD} -e 's,$$RT::LocalPath/man,${PREFIX}/lib/perl5/${PERL_VER}/man,g' ${WRKSRC}/inc/Module/Install/RTx.pm
# Note: You can install using an arbitrary $PREFIX but only if it
# matches the $PREFIX used to install www/rt{38,40}. Hence ignore
# $PREFIX in the environment and inherit settings from RT.pm
do-configure:
@cd ${CONFIGURE_WRKSRC} && \
unset PREFIX && \
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ./${CONFIGURE_SCRIPT} && \
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
.include <bsd.port.mk>