diff options
Diffstat (limited to 'japanese/skk-jisyo/Makefile')
-rw-r--r-- | japanese/skk-jisyo/Makefile | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/japanese/skk-jisyo/Makefile b/japanese/skk-jisyo/Makefile index 2920c155578e..011d8a45c2bb 100644 --- a/japanese/skk-jisyo/Makefile +++ b/japanese/skk-jisyo/Makefile @@ -6,35 +6,30 @@ # PORTNAME= skk-jisyo -PORTVERSION= 9.6 -PKGNAMESUFFIX= ${SKKJISYO_SIZE} +PORTVERSION= 200205 CATEGORIES= japanese -MASTER_SITES= ${MASTER_SITE_PORTS_JP} -DISTNAME= skk${PORTVERSION} +MASTER_SITES?= http://www.tkd.ne.jp/~toru/skk/ +DISTFILES?= SKK-JISYO.L.${PORTVERSION}.gz \ + SKK-JISYO.M.${PORTVERSION}.gz \ + SKK-JISYO.S.${PORTVERSION}.gz -MAINTAINER= matusita@FreeBSD.org +MAINTAINER= yoichi@FreeBSD.org -.if !defined(SKKJISYO_SIZE) -SKKJISYO_SIZE= L -.else -.if ${SKKJISYO_SIZE} != L && ${SKKJISYO_SIZE} != M && ${SKKJISYO_SIZE} != S -SKKJISYO_SIZE_INVALID= yes -.endif -.endif -SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE} - -WRKSRC= ${WRKDIR}/skk-${PORTVERSION} -GNU_CONFIGURE= yes +NO_WRKSUBDIR= yes NO_BUILD= yes -INSTALL_TARGET= install-jisyo -MAKE_ARGS= JISYO=${SKKJISYO} -PLIST_SUB= JISYONAME=${SKKJISYO} +EXTRACT_CMD= ${CP} +EXTRACT_BEFORE_ARGS= -p +EXTRACT_AFTER_ARGS= ${WRKDIR} + +SKKDIR= ${PREFIX}/share/skk +SKK_JISYO_TYPE?= L M S -pre-fetch: -.if defined(SKKJISYO_SIZE_INVALID) - @${ECHO_MSG} "Error: invalid SKKJISYO_SIZE: ${SKKJISYO_SIZE}" - @${ECHO_MSG} "SKKJISYO_SIZE should be L, M, or S." - @${FALSE} -.endif +post-extract: + @(cd ${WRKDIR}; ${GUNZIP_CMD} *.gz) +do-install: + ${MKDIR} ${SKKDIR} +.for i in ${SKK_JISYO_TYPE} + ${INSTALL_DATA} ${WRKSRC}/SKK-JISYO.${i}.${PORTVERSION} ${SKKDIR}/SKK-JISYO.${i} +.endfor .include <bsd.port.mk> |