aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/migemo/Makefile
blob: 884d9c819235bc5a2314633ab5c642b8cfaa630f (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
# New ports collection makefile for:    Migemo
# Date created:     19 February 2001
# Whom:         MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#

PORTNAME=   migemo
PORTVERSION=    0.40
PORTREVISION=   4
PORTEPOCH=  1
CATEGORIES= japanese elisp
MASTER_SITES=   http://namazu.org/~satoru/migemo/ \
        http://people.freebsd.org/~nobutaka/distfiles/:skkdic
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${SKKDIC_FILE}.bz2:skkdic
DIST_SUBDIR=    migemo
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= nobutaka@FreeBSD.org
COMMENT?=   Japanese incremental search tool

.if !defined(SLAVE_PORT)
USE_AUTOTOOLS=  automake:15 autoconf:213
EXTRA_PATCHES=  ${FILESDIR}/extra-patch-Makefile.am ${FILESDIR}/extra-patch-configure.in
PLIST_SUB=  MIGEMO="" ELISP="@comment "
.endif

USE_RUBY=   yes
BUILD_DEPENDS+= ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
        ${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch
RUN_DEPENDS+=   ${RUBY_SITELIBDIR}/romkan.rb:${PORTSDIR}/japanese/ruby-romkan \
        ${RUBY_SITELIBDIR}/bsearch.rb:${PORTSDIR}/devel/ruby-bsearch

CONFIGURE_ARGS+=--with-rubydir=${RUBY_SITELIBDIR}

SKKDIC_FILE=    SKK-JISYO.L-20060709

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64"
BROKEN=     "Does not compile on ia64"
.endif

post-extract:
.if !defined(SLAVE_PORT)
    ${BZIP2_CMD} -cd ${DISTDIR}/${DIST_SUBDIR}/${SKKDIC_FILE}.bz2 > ${WRKSRC}/SKK-JISYO.L
.endif

post-configure:
.if !defined(SLAVE_PORT)
    (cd ${WRKSRC}; ${CAT} SKK-JISYO.L | ${RUBY} migemo-convert.rb > migemo-dict)
.endif

post-install:
.if defined(SLAVE_PORT)
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>