diff --git a/textproc/p5-WordNet-QueryData/Makefile b/textproc/p5-WordNet-QueryData/Makefile index 758e363e1e4f..2968f5cc391e 100644 --- a/textproc/p5-WordNet-QueryData/Makefile +++ b/textproc/p5-WordNet-QueryData/Makefile @@ -7,7 +7,7 @@ PORTNAME= WordNet-QueryData PORTVERSION= 1.28 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= WordNet @@ -22,7 +22,13 @@ WNHOME?= ${LOCALBASE}/share/WordNet-1.7.1 PERL_CONFIGURE= yes CONFIGURE_ENV= WNHOME=${WNHOME} +USE_REINPLACE= yes MAN3= WordNet::QueryData.3 +post-patch: + @${REINPLACE_CMD} -e \ + '/wnHomeUnix/s|/usr/local/WordNet-1.7.1|${WNHOME}|; \ + /wnPrefixUnix/s|/dict||' ${WRKSRC}/QueryData.pm + .include