2013-09-20 20:47:54 +02:00
|
|
|
# Created by: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
2001-03-17 08:52:05 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= migemo
|
2003-06-15 15:55:56 +02:00
|
|
|
PORTVERSION= 0.40
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 9
|
2001-07-23 05:55:42 +02:00
|
|
|
PORTEPOCH= 1
|
2001-03-17 08:52:05 +01:00
|
|
|
CATEGORIES= japanese elisp
|
2010-12-24 16:38:27 +01:00
|
|
|
MASTER_SITES= http://0xcc.net/migemo/ \
|
|
|
|
${MASTER_SITE_LOCAL:S/$/:skkdic/}
|
|
|
|
MASTER_SITE_SUBDIR= nobutaka/:skkdic
|
2005-06-18 19:38:57 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SKKDIC_FILE}.bz2:skkdic
|
2010-12-24 16:38:27 +01:00
|
|
|
DIST_SUBDIR= migemo
|
2005-06-18 19:38:57 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2001-03-17 08:52:05 +01:00
|
|
|
|
2001-11-03 20:16:50 +01:00
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2003-02-22 15:25:38 +01:00
|
|
|
COMMENT?= Japanese incremental search tool
|
2001-03-17 08:52:05 +01:00
|
|
|
|
2010-12-24 16:38:27 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2008-05-06 08:43:24 +02:00
|
|
|
.if !defined(SLAVE_PORT)
|
2011-08-22 16:48:19 +02:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.am \
|
|
|
|
${FILESDIR}/extra-patch-configure.in
|
2001-09-20 06:46:10 +02:00
|
|
|
PLIST_SUB= MIGEMO="" ELISP="@comment "
|
2001-03-28 00:43:48 +02:00
|
|
|
.endif
|
2001-03-17 08:52:05 +01:00
|
|
|
|
2001-07-23 05:55:42 +02:00
|
|
|
USE_RUBY= yes
|
2011-08-22 16:48:19 +02:00
|
|
|
USE_AUTOTOOLS= automake14 autoconf213
|
2001-07-23 05:55:42 +02:00
|
|
|
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
|
2001-03-28 00:43:48 +02:00
|
|
|
|
2001-09-20 06:46:10 +02:00
|
|
|
CONFIGURE_ARGS+=--with-rubydir=${RUBY_SITELIBDIR}
|
2009-11-20 00:41:55 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2001-03-17 08:52:05 +01:00
|
|
|
|
2011-08-22 16:48:19 +02:00
|
|
|
SHEBANG_FILES= migemo migemo-client migemo-grep migemo-server
|
|
|
|
|
2011-08-14 05:15:23 +02:00
|
|
|
SKKDIC_FILE= SKK-JISYO.L-20110813
|
2005-06-18 19:38:57 +02:00
|
|
|
|
2013-09-20 20:47:54 +02:00
|
|
|
NO_STAGE= yes
|
2004-02-23 23:07:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-08-22 16:48:19 +02:00
|
|
|
.if ${RUBY_VER} == 1.9
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-Makefile.am.ruby19 \
|
|
|
|
${PATCHDIR}/extra-patch-configure.in.ruby19 \
|
|
|
|
${PATCHDIR}/extra-patch-genchars.sh \
|
|
|
|
${PATCHDIR}/extra-patch-migemo \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-cache.rb \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-client \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-convert.rb \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-grep \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-index.rb \
|
|
|
|
${PATCHDIR}/extra-patch-migemo-server \
|
|
|
|
${PATCHDIR}/extra-patch-migemo.rb.in \
|
|
|
|
${PATCHDIR}/extra-patch-tests_Makefile.am
|
|
|
|
.endif
|
|
|
|
|
2004-09-28 00:58:52 +02:00
|
|
|
.if ${ARCH} == "ia64"
|
2010-06-13 10:40:06 +02:00
|
|
|
BROKEN= Does not compile on ia64
|
2004-02-23 23:07:38 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-18 19:38:57 +02:00
|
|
|
post-extract:
|
2010-12-24 16:38:27 +01:00
|
|
|
.if ${SLAVE_PORT} == "no"
|
2005-06-18 19:38:57 +02:00
|
|
|
${BZIP2_CMD} -cd ${DISTDIR}/${DIST_SUBDIR}/${SKKDIC_FILE}.bz2 > ${WRKSRC}/SKK-JISYO.L
|
|
|
|
.endif
|
|
|
|
|
2011-08-22 16:48:19 +02:00
|
|
|
post-patch:
|
|
|
|
.if ${RUBY_VER} == 1.9 && ${SLAVE_PORT} == "no"
|
|
|
|
@cd ${WRKSRC} ; \
|
|
|
|
for f in ${SHEBANG_FILES} ; do \
|
|
|
|
${REINPLACE_CMD} -e 's:#!.*:#!${RUBY} -Ke:' $$f ; \
|
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
2005-06-18 19:38:57 +02:00
|
|
|
post-configure:
|
2010-12-24 16:38:27 +01:00
|
|
|
.if ${SLAVE_PORT} == "no"
|
2011-08-22 16:48:19 +02:00
|
|
|
.if ${RUBY_VER} == 1.9
|
|
|
|
(cd ${WRKSRC}; ${CAT} SKK-JISYO.L | ${RUBY} -Ke migemo-convert.rb > migemo-dict)
|
|
|
|
.else
|
2005-06-18 19:38:57 +02:00
|
|
|
(cd ${WRKSRC}; ${CAT} SKK-JISYO.L | ${RUBY} migemo-convert.rb > migemo-dict)
|
2011-08-22 16:48:19 +02:00
|
|
|
.endif
|
2010-12-24 16:38:27 +01:00
|
|
|
${CP} ${AUTOMAKE_DIR}/config.guess ${WRKSRC}
|
|
|
|
${CP} ${AUTOMAKE_DIR}/config.sub ${WRKSRC}
|
2005-06-18 19:38:57 +02:00
|
|
|
.endif
|
|
|
|
|
2001-03-17 08:52:05 +01:00
|
|
|
post-install:
|
2010-12-24 16:38:27 +01:00
|
|
|
.if ${SLAVE_PORT} == "yes"
|
2002-10-06 14:55:43 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
2001-03-17 08:52:05 +01:00
|
|
|
|
2004-02-23 23:07:38 +01:00
|
|
|
.include <bsd.port.post.mk>
|