1998-05-30 03:36:05 +02:00
|
|
|
# New ports collection makefile for: edict
|
|
|
|
# Date created: 18 August 1997
|
|
|
|
# Whom: Jonathan Hanna
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1998-05-30 03:36:05 +02:00
|
|
|
#
|
|
|
|
|
2004-08-27 18:05:53 +02:00
|
|
|
PORTNAME= edict-utf-8
|
2000-04-11 16:15:53 +02:00
|
|
|
PORTVERSION= 19990714
|
1998-05-30 03:36:05 +02:00
|
|
|
CATEGORIES= japanese
|
2004-08-30 13:59:59 +02:00
|
|
|
MASTER_SITES= ftp://ftp.cc.monash.edu.au/pub/nihongo/ \
|
|
|
|
http://japanology.arts.kuleuven.ac.be/mirrors/monash/ \
|
|
|
|
ftp://ftp.nrc.ca/pub/packages/nihongo/ \
|
|
|
|
http://www.bcit-broadcast.com/monash/ \
|
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.cc.monash.edu.au/pub/nihongo/ \
|
|
|
|
ftp://ftp.sedl.org/pub/mirrors/nihongo/ \
|
|
|
|
ftp://ftp.net.usf.edu/pub/monash/ \
|
2000-08-08 07:11:30 +02:00
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/nihongo/ftp.cc.monash.edu.au/ \
|
2004-08-30 13:59:59 +02:00
|
|
|
ftp://ftp.funet.fi/pub/culture/japan/mirrors/monash/pub/nihongo/ \
|
|
|
|
ftp://ftp.uni-duisburg.de/Mirrors/ftp.monash.edu.au/pub/nihongo/
|
2004-08-27 18:05:53 +02:00
|
|
|
DISTFILES= ${DICTFILES}
|
|
|
|
EXTRACT_ONLY= # intentionally left blank
|
1998-05-30 03:36:05 +02:00
|
|
|
|
2004-10-30 00:24:47 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-08-27 18:05:53 +02:00
|
|
|
COMMENT= Japanese-English edict UTF-8 dictionaries
|
1998-05-30 03:36:05 +02:00
|
|
|
|
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2004-08-27 18:05:53 +02:00
|
|
|
USE_ICONV= yes
|
|
|
|
ICONV?= iconv
|
|
|
|
CONVERT_CMD= ${ICONV} -c -f EUC-JP -t UTF-8
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
1998-05-30 03:36:05 +02:00
|
|
|
DIST_SUBDIR= edict
|
|
|
|
|
1999-07-17 19:13:47 +02:00
|
|
|
DICTFILES= edict.gz edicth enamdict.gz compdic.gz \
|
|
|
|
jddict.v02.gz j_places.gz ediclsd3.zip \
|
|
|
|
kanjidic.gz kanjd212.gz lawgledt.zip \
|
|
|
|
lingdic.zip geodic.gz pandpdic.zip \
|
|
|
|
aviation.zip findic.zip mktdic.zip \
|
|
|
|
compverb.gz 4jwords.gz concrete.zip
|
1998-05-30 03:36:05 +02:00
|
|
|
|
2004-08-27 18:05:53 +02:00
|
|
|
NODOCFILES= edict_doc.txt edict_doc.html edicth.doc \
|
2000-09-05 03:49:30 +02:00
|
|
|
enamdict_doc.txt enamdict_doc.html jddict.doc \
|
1999-07-17 19:13:47 +02:00
|
|
|
j_places.inf kanjidic.doc kanjd212.doc ediclsd3.rme \
|
2001-05-22 19:16:21 +02:00
|
|
|
lawgldoc.new lingdic.txt geodic.doc aviation.txt \
|
1999-07-17 19:13:47 +02:00
|
|
|
findic.doc mktdic.doc compverb.doc 4jwords.doc \
|
2004-08-27 18:05:53 +02:00
|
|
|
concrete.doc ${DICTFILES:S/zip/jdx/}
|
1998-05-30 03:36:05 +02:00
|
|
|
|
2004-08-27 18:05:53 +02:00
|
|
|
PLIST_FILES= ${DICTFILES:S|^|%%DATADIR%%/|:S|.gz||:S|.zip||}
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
1998-05-30 03:36:05 +02:00
|
|
|
|
|
|
|
# Where to install the data files
|
2004-08-27 18:05:53 +02:00
|
|
|
DATADIR= ${PREFIX}/share/dict/edict-utf-8
|
1998-05-30 03:36:05 +02:00
|
|
|
|
1998-12-12 05:18:47 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
1998-05-30 03:36:05 +02:00
|
|
|
|
2004-02-23 05:21:30 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1998-05-30 03:36:05 +02:00
|
|
|
do-install:
|
|
|
|
@if [ ! -d ${DATADIR} ] ; \
|
|
|
|
then \
|
|
|
|
${MKDIR} ${DATADIR} ; \
|
|
|
|
fi
|
|
|
|
@for file in ${DICTFILES}; do \
|
|
|
|
case $$file in \
|
|
|
|
*.gz) \
|
1999-08-23 01:33:47 +02:00
|
|
|
instfile=`${BASENAME} $$file .gz` ; \
|
2004-08-27 18:05:53 +02:00
|
|
|
if ${GZIP_CMD} -cd ${_DISTDIR}/$$file | ${CONVERT_CMD} \
|
|
|
|
> ${DATADIR}/$$instfile ; \
|
1998-05-30 03:36:05 +02:00
|
|
|
then \
|
1999-08-23 06:23:59 +02:00
|
|
|
${TRUE} ; \
|
1998-05-30 03:36:05 +02:00
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
;; \
|
|
|
|
*.zip) \
|
1999-08-23 01:33:47 +02:00
|
|
|
instfile=`${BASENAME} $$file .zip` ; \
|
2004-08-27 18:05:53 +02:00
|
|
|
if ${UNZIP_CMD} -c ${_DISTDIR}/$$file -x ${NODOCFILES} 2>/dev/null \
|
|
|
|
| ${CONVERT_CMD} > ${DATADIR}/$$instfile ; \
|
1998-05-30 03:36:05 +02:00
|
|
|
then \
|
1999-08-23 06:23:59 +02:00
|
|
|
${TRUE} ; \
|
1998-05-30 03:36:05 +02:00
|
|
|
else \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
;; \
|
|
|
|
*) \
|
1999-08-23 01:33:47 +02:00
|
|
|
instfile=`${BASENAME} $$file` ; \
|
2004-08-27 18:05:53 +02:00
|
|
|
${CONVERT_CMD} ${_DISTDIR}/$$file >${DATADIR}/$$instfile \
|
1998-05-30 03:36:05 +02:00
|
|
|
;; \
|
|
|
|
esac ; \
|
|
|
|
( \
|
|
|
|
cd ${DATADIR} ; \
|
2004-08-27 18:05:53 +02:00
|
|
|
${CHOWN} ${SHAREOWN}:${SHAREGRP} $$instfile ; \
|
|
|
|
${CHMOD} ${SHAREMODE} $$instfile ; \
|
1998-05-30 03:36:05 +02:00
|
|
|
) ; \
|
|
|
|
done
|
|
|
|
|
2004-02-23 05:21:30 +01:00
|
|
|
.include <bsd.port.post.mk>
|