o Update to 20031208.

o Take maintainership.
o Add jigyosyo data.
o Copy distfiles on my $MASTER_SITE_LOCAL.
o Install original (but euc-jp converted) CSV files.
This commit is contained in:
Jun Kuriyama 2003-12-16 01:30:19 +00:00
parent 6e74806bab
commit 0b73702bb4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95926
4 changed files with 26 additions and 10 deletions

View file

@ -6,21 +6,20 @@
#
PORTNAME= zipcodes
PORTVERSION= 20031108
PORTVERSION= 20031208
CATEGORIES= japanese misc
MASTER_SITES= http://post.ah-tech.co.jp/zipcode/dl/kogaki/lzh/
DISTNAME= ken_all
EXTRACT_SUFX= .lzh
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= kuriyama
DISTFILES= ken_all-${PORTVERSION}.lzh jigyosyo-${PORTVERSION}.lzh
MAINTAINER= ports@FreeBSD.org
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= p
EXTRACT_AFTER_ARGS= >ken_all.csv
EXTRACT_BEFORE_ARGS= x
NO_WRKSUBDIR= yes
USE_PERL5_BUILD=yes
@ -30,3 +29,14 @@ post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKDIR}
.include <bsd.port.mk>
# for maintainance.
fetch1:
fetch http://post.ah-tech.co.jp/zipcode/dl/kogaki/lzh/ken_all.lzh
fetch http://post.ah-tech.co.jp/zipcode/dl/jigyosyo/lzh/jigyosyo.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`

View file

@ -1 +1,2 @@
MD5 (ken_all.lzh) = 5996660da470d781c1481eecca14bdb3
MD5 (ken_all-20031208.lzh) = 49ac6fe008dae0d33a3872ec74fa2938
MD5 (jigyosyo-20031208.lzh) = 7e1522a3f58b0ac52ca2436b5395c283

View file

@ -17,14 +17,17 @@ CSV= ken_all.csv
EUCCSV= ${CSV:%.csv=%.euc-csv}
PERL?= /usr/bin/perl
NKF?= ${LOCALBASE}/bin/nkf
DESTDIR=${PREFIX}/share/misc/jp-zipcodes
all: zipcodes.5digits zipcodes.7digits
install: zipcodes.5digits zipcodes.7digits
install: zipcodes.5digits zipcodes.7digits jigyosyo.euc-csv
mkdir -p ${PREFIX}/share/misc/jp-zipcodes
for i in zipcodes.5digits zipcodes.7digits; do \
${INSTALL_DATA} $$i ${PREFIX}/share/misc/jp-zipcodes; \
${INSTALL_DATA} $$i ${DESTDIR}; \
done
${INSTALL_DATA} ken_all.euc-csv ${DESTDIR}/ken_all-euc.csv
${INSTALL_DATA} jigyosyo.euc-csv ${DESTDIR}/jigyosyo-euc.csv
zipcodes.5digits: ${EUCCSV}
cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/genold.pl > zipcodes.5digits

View file

@ -1,3 +1,5 @@
share/misc/jp-zipcodes/jigyosyo-euc.csv
share/misc/jp-zipcodes/ken_all-euc.csv
share/misc/jp-zipcodes/zipcodes.5digits
share/misc/jp-zipcodes/zipcodes.7digits
@dirrm share/misc/jp-zipcodes