aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-WordNet-Similarity/Makefile
blob: 4bbdca3f9c5c0451e1df2a0e22c79eb498b48ce6 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    p5-WordNet-Similarity
# Date created:             07 July 2003
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   WordNet-Similarity
PORTVERSION=    1.03
CATEGORIES= textproc perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= WordNet
PKGNAMEPREFIX=  p5-

MAINTAINER= clsung@FreeBSD.org
COMMENT=    Modules/CLI to determine semantic relatedness using the WordNet

BUILD_DEPENDS=  ${SITE_PERL}/WordNet/QueryData.pm:${PORTSDIR}/textproc/p5-WordNet-QueryData \
        ${SITE_PERL}/Text/OverlapFinder.pm:${PORTSDIR}/textproc/p5-Text-Similarity
RUN_DEPENDS=    ${BUILD_DEPENDS}

WNHOME?=    ${LOCALBASE}/share/WordNet

PERL_CONFIGURE= yes
CONFIGURE_ENV=  WNHOME=${WNHOME}
CONFIGURE_ARGS= </dev/null

MAN1=       rawtextFreq.pl.1 \
        BNCFreq.pl.1 \
        similarity.pl.1 \
        wordVectors.pl.1 \
        compounds.pl.1 \
        brownFreq.pl.1 \
        treebankFreq.pl.1 \
        wnDepths.pl.1 \
        semCorRawFreq.pl.1 \
        semCorFreq.pl.1
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::vector_pairs.3 \
        WordNet::Similarity::lin.3 WordNet::Similarity::lch.3 \
        WordNet::Similarity::wup.3 WordNet::Similarity::path.3 \
        WordNet::Similarity::DepthFinder.3 \
        WordNet::Similarity::GlossFinder.3 \
        WordNet::Similarity::ICFinder.3 \
        WordNet::Similarity::PathFinder.3 \
        vectorFile.3 stem.3 get_wn_info.3

post-patch:
    @${REINPLACE_CMD} -e  \
        '/wnUnixPath/s|/usr/local/WordNet-2.1|${WNHOME}|; \
         /wnUnixPath/s|."/dict"||' ${WRKSRC}/Makefile.PL
    @${FIND} ${WRKSRC}/utils -type f| ${XARGS} ${REINPLACE_CMD} -e \
        's|/usr/local/bin/perl|${PERL}|; \
         /wnUnixPath/s|/dict||'

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500601
IGNORE=     requires perl 5.6.x or later. Install lang/perl5 then try again
.endif

.if ${ARCH} == "sparc64"
BROKEN=     Does not build on sparc64
.endif

.include <bsd.port.post.mk>