aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-wordnet/Makefile
blob: f8c8a2ac6f5ae53a945e693a8ffe38caddb7e832 (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
# New ports collection makefile for:    Ruby-WordNet
# Date created:     29 September 2003
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   wordnet
PORTVERSION=    0.02
CATEGORIES= textproc ruby
MASTER_SITES=   http://www.devEiate.org/code/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   Ruby-WordNet-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org
COMMENT=    A Ruby interface to the WordNet(R) Lexical Database

BUILD_DEPENDS=  ${WORDNET_DIR}/adj.exc:${PORTSDIR}/textproc/wordnet \
        ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
RUN_DEPENDS=    ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb

WORDNET_DIR=    ${LOCALBASE}/share/WordNet-1.7.1

USE_BZIP2=  yes
USE_RUBY=   yes
USE_RUBY_RDOC=  yes

DOCS=       ChangeLog README TODO doc

.include <bsd.port.pre.mk>

.if ${RUBY_VER} < 1.8
IGNORE=     only works with ruby 1.8 or later
.endif

do-build:
    cd ${BUILD_WRKSRC}; yes | ${RUBY} convertdb.rb ${WORDNET_DIR}
.if !defined(NOPORTDOCS)
# This requires the latest rdoc snapshot from CVS on SourceForge.
#   cd ${BUILD_WRKSRC}; ${RUBY} docs/makedocs.rb
    cd ${BUILD_WRKSRC}; ${RUBY_RDOC}
.endif

do-install:
    cd ${INSTALL_WRKSRC}; ${RUBY} install.rb
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
    ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif

.include <bsd.port.post.mk>