aboutsummaryrefslogtreecommitdiff
path: root/japanese/zipcodes
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-12-16 01:30:19 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-12-16 01:30:19 +0000
commit0b73702bb4ff7367682f99fdc83f37a8e10fb76a (patch)
tree4415362c9022b10423090e41d61ad51beed14a83 /japanese/zipcodes
parent6e74806babc5ab784fb1c1641ff8bd178d897cf3 (diff)
downloadports-0b73702bb4ff7367682f99fdc83f37a8e10fb76a.tar.gz
ports-0b73702bb4ff7367682f99fdc83f37a8e10fb76a.zip
Notes
Diffstat (limited to 'japanese/zipcodes')
-rw-r--r--japanese/zipcodes/Makefile24
-rw-r--r--japanese/zipcodes/distinfo3
-rw-r--r--japanese/zipcodes/files/Makefile7
-rw-r--r--japanese/zipcodes/pkg-plist2
4 files changed, 26 insertions, 10 deletions
diff --git a/japanese/zipcodes/Makefile b/japanese/zipcodes/Makefile
index 4586c6047587..0c4a10705e93 100644
--- a/japanese/zipcodes/Makefile
+++ b/japanese/zipcodes/Makefile
@@ -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`
diff --git a/japanese/zipcodes/distinfo b/japanese/zipcodes/distinfo
index dea062c6d044..39adb5c16f43 100644
--- a/japanese/zipcodes/distinfo
+++ b/japanese/zipcodes/distinfo
@@ -1 +1,2 @@
-MD5 (ken_all.lzh) = 5996660da470d781c1481eecca14bdb3
+MD5 (ken_all-20031208.lzh) = 49ac6fe008dae0d33a3872ec74fa2938
+MD5 (jigyosyo-20031208.lzh) = 7e1522a3f58b0ac52ca2436b5395c283
diff --git a/japanese/zipcodes/files/Makefile b/japanese/zipcodes/files/Makefile
index 24d09cfa5e99..ab799c6a4a66 100644
--- a/japanese/zipcodes/files/Makefile
+++ b/japanese/zipcodes/files/Makefile
@@ -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
diff --git a/japanese/zipcodes/pkg-plist b/japanese/zipcodes/pkg-plist
index 9930dce8ef5f..2c4f234095b2 100644
--- a/japanese/zipcodes/pkg-plist
+++ b/japanese/zipcodes/pkg-plist
@@ -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