japanese/zipcodes: Update to 20221228
Take maintainership and fix minor style issues.
This commit is contained in:
parent
67867ca8eb
commit
5ee357d401
4 changed files with 25 additions and 32 deletions
|
@ -1,37 +1,36 @@
|
|||
PORTNAME= zipcodes
|
||||
PORTVERSION= 20200831
|
||||
PORTVERSION= 20221228
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= LOCAL/kuriyama
|
||||
MASTER_SITES= LOCAL/hrs
|
||||
DISTFILES= ken_all-${PORTVERSION_K}.zip jigyosyo-${PORTVERSION_J}.zip
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= Japanese zipcode tables. includes both 3/5 and 7 digits form
|
||||
WWW= https://www.post.japanpost.jp/zipcode/
|
||||
|
||||
BUILD_DEPENDS= nkf:japanese/nkf
|
||||
LICENSE= PD
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
BUILD_DEPENDS= nkf:japanese/nkf
|
||||
|
||||
USES= perl5 zip
|
||||
USE_PERL5= build
|
||||
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" SCRIPTDIR=${SCRIPTDIR} PERL=${PERL} STAGEDIR=${STAGEDIR}
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
MAKE_ENV= INSTALL_DATA="${INSTALL_DATA}" \
|
||||
SCRIPTDIR=${SCRIPTDIR} \
|
||||
PERL=${PERL} \
|
||||
STAGEDIR=${STAGEDIR}
|
||||
MAKEFILE= ${FILESDIR}/Makefile
|
||||
PLIST_FILES= 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
|
||||
PORTVERSION_K?= ${PORTVERSION}
|
||||
PORTVERSION_J?= ${PORTVERSION}
|
||||
|
||||
post-extract:
|
||||
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
||||
cd ${WRKSRC}; ${MV} KEN_ALL.CSV ken_all.csv; ${MV} JIGYOSYO.CSV jigyosyo.csv
|
||||
|
||||
# for maintenance.
|
||||
fetch1:
|
||||
fetch http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip
|
||||
fetch http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
|
||||
${CHMOD} og+r *.zip
|
||||
|
||||
fetch2:
|
||||
m=`stat -f %m ken_all.zip`; \
|
||||
${MV} ken_all.zip `date -r $${m} +ken_all-%Y%m%d.zip`
|
||||
m=`stat -f %m jigyosyo.zip`; \
|
||||
${MV} jigyosyo.zip `date -r $${m} +jigyosyo-%Y%m%d.zip`
|
||||
cd ${WRKSRC} && \
|
||||
${MV} KEN_ALL.CSV ken_all.csv && \
|
||||
${MV} JIGYOSYO.CSV jigyosyo.csv
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
TIMESTAMP = 1600309396
|
||||
SHA256 (ken_all-20200831.zip) = 8fc04ec597996d73947fe349bae83f15d25ed3ca668d66dbac88b20a477fafd7
|
||||
SIZE (ken_all-20200831.zip) = 1690594
|
||||
SHA256 (jigyosyo-20200831.zip) = 10982c635c484158a31add918eb760241bdfea87f2a2960810bde647be28afdf
|
||||
SIZE (jigyosyo-20200831.zip) = 768323
|
||||
TIMESTAMP = 1673182536
|
||||
SHA256 (ken_all-20221228.zip) = cfe8d51d3610ec20b40be7472a05afa2b92bd1e5e68c8b25871a4958d09a94ef
|
||||
SIZE (ken_all-20221228.zip) = 1691520
|
||||
SHA256 (jigyosyo-20221228.zip) = d5b07562130585778860d4e173c879c17d5246049e7d958f720e192b5dfd6a5d
|
||||
SIZE (jigyosyo-20221228.zip) = 773333
|
||||
|
|
|
@ -22,9 +22,7 @@ all: zipcodes.5digits zipcodes.7digits
|
|||
|
||||
install: zipcodes.5digits zipcodes.7digits jigyosyo.euc-csv
|
||||
mkdir -p ${_DESTDIR}
|
||||
for i in zipcodes.5digits zipcodes.7digits; do \
|
||||
${INSTALL_DATA} $$i ${_DESTDIR}; \
|
||||
done
|
||||
${INSTALL_DATA} zipcodes.5digits zipcodes.7digits ${_DESTDIR}
|
||||
${INSTALL_DATA} ken_all.euc-csv ${_DESTDIR}/ken_all-euc.csv
|
||||
${INSTALL_DATA} jigyosyo.euc-csv ${_DESTDIR}/jigyosyo-euc.csv
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
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
|
Loading…
Reference in a new issue