1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/japanese/zipcodes/Makefile
Jun Kuriyama ef7abef012 - Update to 20121031.
Feature safe: yes
2012-11-06 15:07:03 +00:00

42 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= zipcodes
PORTVERSION= 20121031
CATEGORIES= japanese
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= kuriyama
DISTFILES= ken_all-${PORTVERSION_K}.lzh jigyosyo-${PORTVERSION_J}.lzh
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Japanese zipcode tables. includes both 3/5 and 7 digits form
EXTRACT_DEPENDS=lha:${PORTSDIR}/archivers/lha
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
EXTRACT_CMD= lha
EXTRACT_BEFORE_ARGS= x
EXTRACT_AFTER_ARGS=
NO_WRKSUBDIR= yes
USE_PERL5_BUILD=yes
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" SCRIPTDIR=${SCRIPTDIR} PERL=${PERL}
PORTVERSION_K?= ${PORTVERSION}
PORTVERSION_J?= ${PORTVERSION}
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
# for maintenance.
fetch1:
fetch http://www.post.japanpost.jp/zipcode/dl/kogaki/lzh/ken_all.lzh
fetch http://www.post.japanpost.jp/zipcode/dl/jigyosyo/lzh/jigyosyo.lzh
${CHMOD} og+r *.lzh
fetch2:
m=`stat -f %m ken_all.lzh`; \
${MV} ken_all.lzh `date -r $${m} +ken_all-%Y%m%d.lzh`
m=`stat -f %m jigyosyo.lzh`; \
${MV} jigyosyo.lzh `date -r $${m} +jigyosyo-%Y%m%d.lzh`
.include <bsd.port.mk>