2013-09-16 19:43:47 +00:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-18 19:01:30 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rskkserv
|
2005-10-14 22:42:16 +00:00
|
|
|
PORTVERSION= 2.95.4
|
|
|
|
PORTREVISION= 0
|
2000-08-18 19:01:30 +00:00
|
|
|
CATEGORIES= japanese ruby
|
2004-11-04 02:52:24 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
2005-10-14 22:42:16 +00:00
|
|
|
MASTER_SITE_SUBDIR= rskkserv/15241
|
2000-08-18 19:01:30 +00:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2009-06-16 15:53:25 +00:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2013-09-16 19:43:47 +00:00
|
|
|
COMMENT= Alternative implementation of skkserv written in Ruby
|
2000-08-18 19:01:30 +00:00
|
|
|
|
2000-09-07 07:44:38 +00:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/tcpwrap.so:${PORTSDIR}/security/ruby-tcpwrap \
|
2001-01-26 06:16:56 +00:00
|
|
|
${SKKJISYO_BASE}/${SKKJISYO}:${SKK_MASTERDIR}
|
2000-08-18 19:01:30 +00:00
|
|
|
|
2005-10-14 22:42:16 +00:00
|
|
|
.if defined(WITH_RUBY_CDB)
|
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/cdb.so:${PORTSDIR}/databases/ruby-cdb
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RUBY_EB)
|
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/eb.so:${PORTSDIR}/japanese/ruby-eb
|
|
|
|
.endif
|
|
|
|
|
2000-09-07 07:44:38 +00:00
|
|
|
USE_RUBY= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf213
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= rskkserv
|
2013-09-16 19:43:47 +00:00
|
|
|
USES= gmake
|
2001-01-26 06:16:56 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-ruby="${RUBY}" \
|
|
|
|
--with-dicfile="${SKKJISYO_BASE}/${SKKJISYO}" \
|
|
|
|
--with-cachedir="${SKKJISYO_BASE}" \
|
|
|
|
--with-logdir="/var/log" \
|
2004-12-23 19:52:09 +00:00
|
|
|
--with-piddir="/var/run"
|
2001-09-11 17:07:59 +00:00
|
|
|
MAKE_ARGS= SKKSERV=rskkserv
|
2001-01-26 06:16:56 +00:00
|
|
|
|
2000-08-18 19:01:30 +00:00
|
|
|
SKKJISYO_SIZE?= L
|
2001-01-26 06:16:56 +00:00
|
|
|
SKKJISYO_BASE= ${LOCALBASE}/share/skk
|
|
|
|
SKKJISYO= SKK-JISYO.${SKKJISYO_SIZE}
|
2000-08-18 19:01:30 +00:00
|
|
|
SKK_MASTERDIR= ${PORTSDIR}/japanese/skk-jisyo
|
|
|
|
|
2004-11-04 02:52:24 +00:00
|
|
|
MAN1= rskkserv.1
|
|
|
|
MANLANG= "" ja
|
|
|
|
|
2001-01-18 21:29:50 +00:00
|
|
|
DOCS_EN= ChangeLog
|
2004-11-04 02:52:24 +00:00
|
|
|
DOCS_JA= TODO
|
2000-08-18 19:01:30 +00:00
|
|
|
|
2013-09-20 18:47:54 +00:00
|
|
|
NO_STAGE= yes
|
2002-02-10 17:49:19 +00:00
|
|
|
post-extract:
|
|
|
|
${LN} -s ${WRKSRC}/skkserv.rb.in ${WRKSRC}/rskkserv.in
|
|
|
|
|
2001-01-26 06:16:56 +00:00
|
|
|
post-patch:
|
2001-09-11 17:07:59 +00:00
|
|
|
${RUBY} -i -ne 'if $$. == 1 then puts "#!@RUBY@" else puts $$_ end' ${WRKSRC}/skkserv.rb.in
|
2001-01-26 06:16:56 +00:00
|
|
|
${RUBY} -i -p \
|
|
|
|
-e 'gsub %r:/usr/share/skk:, %q:${SKKJISYO_BASE}:' \
|
|
|
|
-e 'gsub %r:/opt/epwing/(\w+):, %q:${LOCALBASE}/share/dict/\\1-fpw:' \
|
|
|
|
-e 'gsub %r:SKK-JISYO\\.L:, %q:${SKKJISYO}:' \
|
|
|
|
-e 'sub %r%(CACHEDIR\s*=\s*")[^"]*(")%, \
|
|
|
|
%q%\\1${SKKJISYO_BASE}\\2%' \
|
2004-11-04 02:52:24 +00:00
|
|
|
${WRKSRC}/doc/rskkserv.conf.sample
|
|
|
|
${RUBY} -i -p \
|
|
|
|
-e 'sub %r%/usr/bin/ruby%, %q%${RUBY}% ' \
|
|
|
|
${WRKSRC}/doc/conf-o2n.rb
|
2001-01-18 21:29:50 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2001-01-18 21:29:50 +00:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-01-18 21:29:50 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2001-01-18 21:29:50 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2008-08-24 10:18:53 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/rskkserv.1 ${MANPREFIX}/man/man1/rskkserv.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/rskkserv.1.ja_JP.eucJP ${MANPREFIX}/man/ja/man1/rskkserv.1
|
2004-11-04 02:52:24 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/conf-o2n.rb ${EXAMPLESDIR}
|
2004-11-11 07:14:44 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rskkserv.conf ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/rskkserv.conf.sample ${EXAMPLESDIR}
|
2000-08-18 19:01:30 +00:00
|
|
|
|
2000-09-26 08:02:17 +00:00
|
|
|
.include <bsd.port.mk>
|