freebsd-ports/japanese/gskk/Makefile
Baptiste Daroussin 5271da855f Rely on bsdtar to autodetermine the format of the distfiles when possible
For a while now bsdtar is able to autotermine compression and archive format.
Let's then use tar directly instead of piping to tar.

Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
2013-04-29 08:57:12 +00:00

56 lines
1.3 KiB
Makefile

# Created by: Hajimu UMEMOTO <ume@FreeBSD.org>
# $FreeBSD$
PORTNAME= gskk
PORTVERSION= 20041208
CATEGORIES= japanese
MASTER_SITES= http://www.ohnolab.org/~kimoto/
DISTNAME= ${PORTNAME}-${PORTVERSION}.t
EXTRACT_SUFX= .gz
MAINTAINER= ume@FreeBSD.org
COMMENT= SKK's dictionary for Canna
RUN_DEPENDS= ${LOCALBASE}/sbin/cannaserver:${PORTSDIR}/japanese/canna-server
BUILD_DEPENDS= mkbindic:${PORTSDIR}/japanese/canna-server
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${GZCAT}
EXTRACT_BEFORE_ARGS= #
EXTRACT_AFTER_ARGS= > ${PORTNAME}.t
PLIST_FILES= share/canna/dic/canna/dics.dir.${PORTNAME} \
share/canna/dic/canna/${PORTNAME}.cbd \
share/canna/dic/canna/${PORTNAME}.cld
.if !defined(NOPORTDOCS)
PORTDOCS= README.FreeBSD
.endif
SUB_FILES= README.FreeBSD pkg-message
SUB_LIST+= DICDIR=${DICDIR} PORTNAME=${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
DICS= ${PORTNAME}.cbd ${PORTNAME}.cld
DICSFILE= dics.dir.${PORTNAME}
DICDIR= ${PREFIX}/share/canna/dic/canna
INSTALL_DIC= ${INSTALL} ${COPY} -o bin -g bin -m 664
do-build:
cd ${WRKDIR} && mkbindic ${PORTNAME}.t
do-install:
cd ${WRKSRC} && ${INSTALL_DIC} ${DICS} ${DICDIR}
${INSTALL_DIC} ${FILESDIR}/${DICSFILE} ${DICDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/README.FreeBSD ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>