11193cb532
PR: 66922 Submitted by: maintainer
55 lines
1.7 KiB
Makefile
55 lines
1.7 KiB
Makefile
# New ports collection makefile for: p5-WordNet-Similarity
|
|
# Date created: 07 July 2003
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= WordNet-Similarity
|
|
PORTVERSION= 0.08
|
|
PORTREVISION= 0
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= WordNet
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= clsung@dragon2.net
|
|
COMMENT= Modules/CLI to determine semantic relatedness using the WordNet
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/WordNet/QueryData.pm:${PORTSDIR}/textproc/p5-WordNet-QueryData \
|
|
${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
WNHOME?= ${LOCALBASE}/share/WordNet-2.0
|
|
|
|
PERL_CONFIGURE= yes
|
|
CONFIGURE_ENV= WNHOME=${WNHOME}
|
|
USE_REINPLACE= yes
|
|
|
|
MAN3= WordNet::Similarity.3 WordNet::Similarity::jcn.3 \
|
|
WordNet::Similarity::hso.3 WordNet::Similarity::vector.3 \
|
|
WordNet::Similarity::random.3 WordNet::Similarity::res.3 \
|
|
WordNet::Similarity::lesk.3 \
|
|
WordNet::Similarity::lin.3 WordNet::Similarity::lch.3 \
|
|
WordNet::Similarity::wup.3 WordNet::Similarity::path.3 \
|
|
WordNet::Similarity::DepthFinder.3 \
|
|
WordNet::Similarity::ICFinder.3 \
|
|
WordNet::Similarity::LCSFinder.3 \
|
|
WordNet::Similarity::PathFinder.3
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/wnUnixPath/s|/usr/local/WordNet-2.0|${WNHOME}|; \
|
|
/wnUnixPath/s|."/dict"||' ${WRKSRC}/Makefile.PL
|
|
@${REINPLACE_CMD} -e \
|
|
"s|'dict|'|" ${WRKSRC}/utils/wnDepths.pl
|
|
@${FIND} ${WRKSRC}/utils -type f| ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/usr/local/bin/perl|${PERL}|'
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500601
|
|
IGNORE= This port requires perl 5.6.x or later. Install lang/perl5 then try again
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|