blob: 47d1c4ccd8303819454721369b4987080354fba3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
PORTNAME= WordNet-Similarity
PORTVERSION= 2.05
PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Modules/CLI to determine semantic relatedness using the WordNet
BUILD_DEPENDS= p5-WordNet-QueryData>=0:${PORTSDIR}/textproc/p5-WordNet-QueryData \
p5-Text-Similarity>=0:${PORTSDIR}/textproc/p5-Text-Similarity \
p5-Digest-SHA1>=2.10:${PORTSDIR}/security/p5-Digest-SHA1
RUN_DEPENDS:= ${BUILD_DEPENDS}
WNHOME?= ${LOCALBASE}/share/WordNet
USES= perl5
USE_PERL5= configure
CONFIGURE_ARGS= WNHOME=${WNHOME}
BROKEN_sparc64= Does not build on sparc64
post-patch:
@${FIND} ${WRKSRC}/build -type f| ${XARGS} ${REINPLACE_CMD} -e \
"/wndictpath/s|'dict'|''|"
@${FIND} ${WRKSRC}/utils -type f| ${XARGS} ${REINPLACE_CMD} -e \
's|/usr/local/bin/perl|${PERL}|; \
/wnUnixPath/s|/usr/local/WordNet-3.0|${WNHOME}|; \
/wnUnixPath/s|/cntlist|&.rev|; \
/wnUnixPath/s|/dict||'
.include <bsd.port.mk>
|