diff options
author | sf <sf@FreeBSD.org> | 2001-01-22 02:56:52 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-01-22 02:56:52 +0800 |
commit | ef0034580dbcc918f41feb0fdb79e9f2cc2eaa20 (patch) | |
tree | 0ad84d4df094325bf82d581cc1e6876dcd212ef8 | |
parent | 194c91b312e62f23714eed5eb053e084b9084b63 (diff) | |
download | freebsd-ports-gnome-ef0034580dbcc918f41feb0fdb79e9f2cc2eaa20.tar.gz freebsd-ports-gnome-ef0034580dbcc918f41feb0fdb79e9f2cc2eaa20.tar.zst freebsd-ports-gnome-ef0034580dbcc918f41feb0fdb79e9f2cc2eaa20.zip |
remove stale patch and add Makefile to replace it.
-rw-r--r-- | japanese/zipcodes/files/Makefile | 35 | ||||
-rw-r--r-- | japanese/zipcodes/files/patch-aa | 37 |
2 files changed, 35 insertions, 37 deletions
diff --git a/japanese/zipcodes/files/Makefile b/japanese/zipcodes/files/Makefile new file mode 100644 index 000000000000..24d09cfa5e99 --- /dev/null +++ b/japanese/zipcodes/files/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ +.SUFFIXES: .csv .euc-csv + +CSV= ken_all.csv +#CSV= 01hokkai.csv 02aomori.csv 03iwate.csv 04miyagi.csv \ +# 05akita.csv 06yamaga.csv 07fukush.csv 08ibarak.csv \ +# 09tochig.csv 10gumma.csv 11saitam.csv 12chiba.csv \ +# 13tokyo.csv 14kanaga.csv 15niigat.csv 16toyama.csv \ +# 17ishika.csv 18fukui.csv 19yamana.csv 20nagano.csv \ +# 21gifu.csv 22shizuo.csv 23aichi.csv 24mie.csv \ +# 25shiga.csv 26kyouto.csv 27osaka.csv 28hyogo.csv \ +# 29nara.csv 30wakaya.csv 31tottor.csv 32shiman.csv \ +# 33okayam.csv 34hirosh.csv 35yamagu.csv 36tokush.csv \ +# 37kagawa.csv 38ehime.csv 39kochi.csv 40fukuok.csv \ +# 41saga.csv 42nagasa.csv 43kumamo.csv 44oita.csv \ +# 45miyaza.csv 46kagosh.csv 47okinaw.csv +EUCCSV= ${CSV:%.csv=%.euc-csv} +PERL?= /usr/bin/perl +NKF?= ${LOCALBASE}/bin/nkf + +all: zipcodes.5digits zipcodes.7digits + +install: zipcodes.5digits zipcodes.7digits + mkdir -p ${PREFIX}/share/misc/jp-zipcodes + for i in zipcodes.5digits zipcodes.7digits; do \ + ${INSTALL_DATA} $$i ${PREFIX}/share/misc/jp-zipcodes; \ + done + +zipcodes.5digits: ${EUCCSV} + cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/genold.pl > zipcodes.5digits +zipcodes.7digits: ${EUCCSV} + cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/gennew.pl > zipcodes.7digits + +.csv.euc-csv: + ${NKF} -X -e < $*.csv > $*.euc-csv diff --git a/japanese/zipcodes/files/patch-aa b/japanese/zipcodes/files/patch-aa deleted file mode 100644 index a99a0813c5eb..000000000000 --- a/japanese/zipcodes/files/patch-aa +++ /dev/null @@ -1,37 +0,0 @@ ---- Makefile.orig Mon Mar 23 00:22:39 1998 -+++ Makefile Mon Mar 23 00:23:12 1998 -@@ -0,0 +1,34 @@ -+.SUFFIXES: .csv .euc-csv -+ -+CSV= ken_all.csv -+#CSV= 01hokkai.csv 02aomori.csv 03iwate.csv 04miyagi.csv \ -+# 05akita.csv 06yamaga.csv 07fukush.csv 08ibarak.csv \ -+# 09tochig.csv 10gumma.csv 11saitam.csv 12chiba.csv \ -+# 13tokyo.csv 14kanaga.csv 15niigat.csv 16toyama.csv \ -+# 17ishika.csv 18fukui.csv 19yamana.csv 20nagano.csv \ -+# 21gifu.csv 22shizuo.csv 23aichi.csv 24mie.csv \ -+# 25shiga.csv 26kyouto.csv 27osaka.csv 28hyogo.csv \ -+# 29nara.csv 30wakaya.csv 31tottor.csv 32shiman.csv \ -+# 33okayam.csv 34hirosh.csv 35yamagu.csv 36tokush.csv \ -+# 37kagawa.csv 38ehime.csv 39kochi.csv 40fukuok.csv \ -+# 41saga.csv 42nagasa.csv 43kumamo.csv 44oita.csv \ -+# 45miyaza.csv 46kagosh.csv 47okinaw.csv -+EUCCSV= ${CSV:%.csv=%.euc-csv} -+PERL?= /usr/bin/perl -+NKF?= /usr/local/bin/nkf -+ -+all: zipcodes.5digits zipcodes.7digits -+ -+install: zipcodes.5digits zipcodes.7digits -+ mkdir -p ${PREFIX}/share/misc/jp-zipcodes -+ for i in zipcodes.5digits zipcodes.7digits; do \ -+ ${INSTALL_DATA} $$i ${PREFIX}/share/misc/jp-zipcodes; \ -+ done -+ -+zipcodes.5digits: ${EUCCSV} -+ cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/genold.pl > zipcodes.5digits -+zipcodes.7digits: ${EUCCSV} -+ cat ${EUCCSV} | ${PERL} ${SCRIPTDIR}/gennew.pl > zipcodes.7digits -+ -+.csv.euc-csv: -+ ${NKF} -X -e < $*.csv > $*.euc-csv |