mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
8d9b67bc44
A big Thank You to the original contributors of these ports: * ABURAYER Rewsirow <pcs51674@asciinet.or.jp> * Aaron Dalton <aaron@FreeBSD.org> * Akinori MUSHA aka knu <knu@idaemons.org> * Akito FUJITA <fujita@zoo.ncl.omron.co.jp> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Daichi GOTO <daichi@FreeBSD.org> * Daisuke Kawahara <kawahara@pine.kuee.kyoto-u.ac.jp> * David O'Brien (obrien@cs.ucdavis.edu) * Eiji-usagi-MATSUmoto <usagi@ruby.club.or.jp> * FUJISHIMA Satsuki <sf@FreeBSD.org> * Fumihiko Kimura <jfkimura@yahoo.co.jp> * HONDA Yasuhiro <honda@kashio.info.mie-u.ac.jp> * Hajimu UMEMOTO <ume@FreeBSD.org> * Hidekazu Kuroki <hidekazu@cs.titech.ac.jp> * Hiroto Kagotani <hiroto.kagotani@gmail.com> * Hyper NIKKI System Project <hnsmaster@h14m.org> * IWASHITA Yoji <shuna@pop16.odn.ne.jp> * Jacques Vidrine <nectar@FreeBSD.org> * Jie Gao <gaoj@cpsc.ucalgary.ca> * Jonathan Hanna * Jun Mukai <mukai@jmuk.org> * KANOU Hiroki <kanou@mil.allnet.ne.jp> * KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp> * KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp> * Ka Ho Ng <khng300@gmail.com> * Kawaguti Ginga <ginga-freebsd@ginganet.org> * Kawaguti Ginga <ginga@athena.club.ne.jp> * Kazutoki TAKAMUNE <takamune@avrl.mei.co.jp> * Kentaro Inagaki <JBD01226@niftyserve.ne.jp> * Kimura Fuyuki <fuyuki@mj.0038.net> * Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp> * Koichiro IWAO <meta+ports@vmeta.jp> * Koichiro IWAO <meta@FreeBSD.org> * MANTANI Nobutaka <nobutaka@FreeBSD.org> * MANTANI Nobutaka <nobutaka@nobutaka.com> * MIHIRA Yoshiro <sanpei@FreeBSD.org> * MITA Yoshio <mita@FreeBSD.org> * Makoto Matsushita <matusita@jp.FreeBSD.ORG> * Makoto Matsushita <matusita@jp.freebsd.org> * Masafumi NAKANE <max@FreeBSD.org> * Masahiro Teramoto <markun@onohara.to> * Masanori Kiriake <seiken@nbs.co.jp> * Masashi CHIBA * Mita Yoshio <mita@jp.FreeBSD.org> * Motoyuki Kasahara <m-kasahr@sra.co.jp> * Murata Shuuichirou <mrt@mickey.ai.kyutech.ac.jp> * NIIMI Satoshi <sa2c@sa2c.net> * Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> * Norikatsu Shigemura <nork@FreeBSD.org> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * SADA Kenji <sada@FreeBSD.org> * SAITO Itsuro <saito@miv.t.u-tokyo.ac.jp> * SASAKI Shunsuke <ele@pop17.odn.ne.jp> * Sakai Hiroaki <sakai@miya.ee.kagu.sut.ac.jp> * Satoshi TAOKA <taoka@FreeBSD.org> * Satoshi Taoka <taoka@FreeBSD.org> * Seiichirou Hiraoka * Seiya Yanagita <s_yanagita@ybb.ne.jp> * Seth Kingsley <sethk@osd.bsdi.com> * Shigeyuki FUKUSHIMA <shige@FreeBSD.org> * Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp> * Shigeyuki Fukushima <shige@FreeBSD.org> * Shin-ya MURAKAMI <murashin@gfd-dennou.org> * TAKAHASHI Kaoru * TAKAHASHI Kaoru <kaoru@kaisei.org> * TAKANO, Yuji * TAKATSU Tomonari <tota@FreeBSD.org> * TAKATSU Tomonari <tota@rtfm.jp> * TANAKA Hiroyuki <kattyo@abk.nu> * TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> * TOGAWA Satoshi <toga@puyo.org> * Takashi Mega <mega@minz.org> * Takayuki Nakao <t@nakao.org> * Takefu * The 244th namelessness at 2ch.net * Timothy Beyer <beyert@cs.ucr.edu> * Toshihiko SHIMOKAWA <toshi@tea.forus.or.jp> & ELISA Font Project * Yoichi Asai <yatt@msc.biglobe.ne.jp> * Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp> * Yoshihiko Sarumaru <mistral@imasy.or.jp> * Yoshiro MIHIRA <sanpei@jp.FreeBSD.org> * Yoshiro MIHIRA <sanpei@sanpei.org> * Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp> * Yukihiro Nakai <nakai@FreeBSD.org> * Zhihao Yuan <lichray@gmail.com> * asami * gurkan@phys.ethz.ch * hrs * ichiro@ichiro.org * issei * kuriyama * max * mutoh@openedu.org * n-shigemura@ensure.jp * nivit@email.it * nkazushi@highway.or.jp * nork@FreeBSD.org * sada * shige * sumikawa With hat: portmgr
82 lines
2.2 KiB
Makefile
82 lines
2.2 KiB
Makefile
PORTNAME= skk-jisyo
|
|
PORTVERSION= 201409
|
|
PORTREVISION= 0
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= LOCAL/matusita/${PORTNAME}
|
|
.if defined(WITH_SKKJISYO_CDB)
|
|
PKGNAMESUFFIX= -cdb
|
|
.endif
|
|
DIST_SUBDIR= skk-jisyo
|
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
|
COMMENT?= Jisyo (dictionary) files for the SKK Japanese-input software
|
|
|
|
.if defined(WITH_SKKJISYO_CDB)
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/cdb:databases/tinycdb
|
|
.endif
|
|
|
|
SKKDIR?= share/skk
|
|
SKK_JISYO_TYPE?=L M S
|
|
|
|
USES= tar:bzip2
|
|
NO_WRKSUBDIR= yes
|
|
EXTRACT_CMD= ${CP}
|
|
EXTRACT_BEFORE_ARGS= -p
|
|
EXTRACT_AFTER_ARGS= ${WRKSRC}
|
|
PLIST_SUB+= SKKDIR=${SKKDIR}
|
|
.for type in ${SKK_JISYO_TYPE}
|
|
DISTFILES+= SKK-JISYO.${type}.${PORTVERSION}.bz2
|
|
PLIST_FILES+= ${SKKDIR}/SKK-JISYO.${type}${CDBSUFFIX}
|
|
.endfor
|
|
|
|
.if defined(WITH_SKKJISYO_CDB)
|
|
CDBSUFFIX= .cdb
|
|
.else
|
|
CDBSUFFIX= #empty
|
|
NO_BUILD= yes
|
|
.endif
|
|
|
|
post-extract:
|
|
@(cd ${WRKSRC}; ${BZIP2_CMD} -d *.bz2)
|
|
|
|
.if defined(WITH_SKKJISYO_DELCOMMENTS)
|
|
# Strip comments in transtation candidates list.
|
|
# Candidate list starts with '/', and each candidate is concatenated by
|
|
# '/' (e.g., "/c1/c2/".) Each candidate may have a comment just after
|
|
# the candidate, leading a marker character ';' (e.g. /c3;comment/).
|
|
post-patch:
|
|
.for type in ${SKK_JISYO_TYPE}
|
|
${REINPLACE_CMD} -e '/^[^;]/s,;[^/]*/,/,g' -e '/^>/d' \
|
|
${WRKSRC}/SKK-JISYO.${type}.${PORTVERSION}
|
|
.endfor
|
|
.endif
|
|
|
|
.if defined(WITH_SKKJISYO_CDB)
|
|
# Convert plaintext jisyo data to CDB database by cdbmake.
|
|
# Each line consists of "+${klen},${dlen}:${key}->${data}", where klen/dlen
|
|
# are length of key/data. A blank line at the end of data is required.
|
|
# See also: <URL:http://cr.yp.to/cdb/cdbmake.html>.
|
|
do-build:
|
|
.for type in ${SKK_JISYO_TYPE}
|
|
${AWK} '/^[^;]/ { \
|
|
s = substr($$0, index($$0, " ") + 1); \
|
|
print "+" length($$1) "," length(s) ":" $$1 "->" s; \
|
|
} \
|
|
END { \
|
|
print ""; \
|
|
}' \
|
|
< ${WRKSRC}/SKK-JISYO.${type}.${PORTVERSION} | \
|
|
${LOCALBASE}/bin/cdb -c -t - \
|
|
${WRKSRC}/SKK-JISYO.${type}.${PORTVERSION}${CDBSUFFIX}
|
|
.endfor
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR}
|
|
.for type in ${SKK_JISYO_TYPE}
|
|
${INSTALL_DATA} ${WRKSRC}/SKK-JISYO.${type}.${PORTVERSION}${CDBSUFFIX} \
|
|
${STAGEDIR}${PREFIX}/${SKKDIR}/SKK-JISYO.${type}${CDBSUFFIX}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|