diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2002-12-27 02:43:47 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2002-12-27 02:43:47 +0000 |
commit | cf45cfd7066bfd50168196b67e962a1dd9916b81 (patch) | |
tree | c994798663d831ef94c40630651b0779aff8513f /textproc/dict-dictionaries | |
parent | 678b6387524e30425f48d555641f9c8b006db2c6 (diff) | |
download | pkgsrc-cf45cfd7066bfd50168196b67e962a1dd9916b81.tar.gz |
Initial import of dict-dictionaries-1.8.0. This is the data part separated
from dict-server.
Diffstat (limited to 'textproc/dict-dictionaries')
-rw-r--r-- | textproc/dict-dictionaries/DESCR | 13 | ||||
-rw-r--r-- | textproc/dict-dictionaries/Makefile | 83 | ||||
-rw-r--r-- | textproc/dict-dictionaries/PLIST | 20 | ||||
-rw-r--r-- | textproc/dict-dictionaries/distinfo | 14 | ||||
-rw-r--r-- | textproc/dict-dictionaries/patches/patch-aa | 13 | ||||
-rw-r--r-- | textproc/dict-dictionaries/patches/patch-ab | 13 |
6 files changed, 156 insertions, 0 deletions
diff --git a/textproc/dict-dictionaries/DESCR b/textproc/dict-dictionaries/DESCR new file mode 100644 index 00000000000..ad209008609 --- /dev/null +++ b/textproc/dict-dictionaries/DESCR @@ -0,0 +1,13 @@ +The Dictionary Server Protocol (DICT) is a TCP transaction based +query/response protocol that allows a client to access dictionary +definitions from a set of natural language dictionary databases. + +dictd(8) is a server which supports the DICT protocol. + +dictzip(1) is a compression program which creates compressed files in the +gzip format (see RFC 1952). However, unlike gzip(1), dictzip(1) compresses +the file in pieces and stores an index to the pieces in the gzip header. +This allows random access to the file at the granularity of the compressed +pieces (currently about 64kB) while maintaining good compression ratios +(within 5% of the expected ratio for dictionary data). dictd(8) uses files +stored in this format. diff --git a/textproc/dict-dictionaries/Makefile b/textproc/dict-dictionaries/Makefile new file mode 100644 index 00000000000..029310104ed --- /dev/null +++ b/textproc/dict-dictionaries/Makefile @@ -0,0 +1,83 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/12/27 02:43:47 uebayasi Exp $ + +DISTNAME= # +PKGNAME= dict-data-1.8.0 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.dict.org/pub/dict/ +#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/dict} +DISTFILES= dict-gazetteer-1.3.tar.gz \ + dict-misc-1.5.tar.gz \ + dict-web1913-1.4.tar.gz \ + web1913-0.46-a.tar.gz \ + dict-wn-1.5.tar.gz + +MAINTAINER= mike@ethmoid.org +HOMEPAGE= http://www.dict.org/ +COMMENT= Dictionary data for DICTD + +DEPENDS= dict-server>=1.8.0nb1:../../textproc/dict-server + +USE_GMAKE= # defined + +# Strip '.gz', strip '.tar'. +DICTIONARIES= ${DISTFILES:R:R} + +LEXICONS= easton.dict.dz \ + easton.index \ + elements.dict.dz \ + elements.index \ + foldoc.dict.dz \ + foldoc.index \ + hitchcock.dict.dz \ + hitchcock.index \ + jargon.dict.dz \ + jargon.index \ + world95.dict.dz \ + world95.index +GAZETTEER= gazetteer.dict.dz \ + gazetteer.index +WEB1913= web1913.dict.dz \ + web1913.index +WN= wn.dict.dz \ + wn.index + +do-configure: + @for d in ${DICTIONARIES}; do \ + (cd ${WRKDIR}/$${d}; [ -f configure ] && ${SH} configure); \ + done + +# Build dictinaries +do-build: + @cd ${WRKDIR}/dict-web1913-1.4; ${MAKE_PROGRAM} # For libmaa + @${LN} -fs ${WRKDIR}/web1913-0.46-a ${WRKDIR}/dict-web1913-1.4/web1913 + @for d in ${DICTIONARIES}; do \ + (cd ${WRKDIR}/$$d; \ + ${MAKE_PROGRAM} db); \ + done + ${FIND} ${WRKDIR} -name '*.dict' | \ + while read f; do \ + if [ ! -f $${f}.dz ]; then \ + ${LOCALBASE}/bin/dictzip $$f; \ + fi; \ + done + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/dictd + for f in ${LEXICONS}; do \ + ${INSTALL_DATA} ${WRKDIR}/dict-misc-1.5/$$f \ + ${PREFIX}/share/dictd; \ + done + for f in ${GAZETTEER}; do \ + ${INSTALL_DATA} ${WRKDIR}/dict-gazetteer-1.3/$$f \ + ${PREFIX}/share/dictd; \ + done + for f in ${WEB1913}; do \ + ${INSTALL_DATA} ${WRKDIR}/dict-web1913-1.4/$$f \ + ${PREFIX}/share/dictd; \ + done + for f in ${WN}; do \ + ${INSTALL_DATA} ${WRKDIR}/dict-wn-1.5/$$f \ + ${PREFIX}/share/dictd; \ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/dict-dictionaries/PLIST b/textproc/dict-dictionaries/PLIST new file mode 100644 index 00000000000..1c6cd786968 --- /dev/null +++ b/textproc/dict-dictionaries/PLIST @@ -0,0 +1,20 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/27 02:43:47 uebayasi Exp $ +share/dictd/web1913.dict.dz +share/dictd/web1913.index +share/dictd/wn.dict.dz +share/dictd/wn.index +share/dictd/gazetteer.dict.dz +share/dictd/gazetteer.index +share/dictd/jargon.dict.dz +share/dictd/jargon.index +share/dictd/foldoc.dict.dz +share/dictd/foldoc.index +share/dictd/elements.dict.dz +share/dictd/elements.index +share/dictd/easton.dict.dz +share/dictd/easton.index +share/dictd/hitchcock.dict.dz +share/dictd/hitchcock.index +share/dictd/world95.dict.dz +share/dictd/world95.index +@dirrm share/dictd diff --git a/textproc/dict-dictionaries/distinfo b/textproc/dict-dictionaries/distinfo new file mode 100644 index 00000000000..f04f9c50801 --- /dev/null +++ b/textproc/dict-dictionaries/distinfo @@ -0,0 +1,14 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/12/27 02:43:47 uebayasi Exp $ + +SHA1 (dict-gazetteer-1.3.tar.gz) = d46d3e0aeb956bb2b49e1ec1cda271017eed94c4 +Size (dict-gazetteer-1.3.tar.gz) = 2857457 bytes +SHA1 (dict-misc-1.5.tar.gz) = faa183a736da3809719bb513c2df4c6b9814e51f +Size (dict-misc-1.5.tar.gz) = 4204499 bytes +SHA1 (dict-web1913-1.4.tar.gz) = 727751063813fbdc67f8f2a42933d8c9bf35689b +Size (dict-web1913-1.4.tar.gz) = 293649 bytes +SHA1 (web1913-0.46-a.tar.gz) = 56d6b00b79ab31c4104862b44be8c9287babecb1 +Size (web1913-0.46-a.tar.gz) = 13795530 bytes +SHA1 (dict-wn-1.5.tar.gz) = 56cfd7200e4149504376b280e36aa37abcbe054e +Size (dict-wn-1.5.tar.gz) = 6363650 bytes +SHA1 (patch-aa) = fdc8ee511a2e5ebbacccae199e5e37b9c0a40666 +SHA1 (patch-ab) = 232c319e24e874703c441115c13af32c697f81c6 diff --git a/textproc/dict-dictionaries/patches/patch-aa b/textproc/dict-dictionaries/patches/patch-aa new file mode 100644 index 00000000000..767d13fc6d3 --- /dev/null +++ b/textproc/dict-dictionaries/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/12/27 02:43:47 uebayasi Exp $ + +--- dict-gazetteer-1.3/format.c.orig Mon Jul 21 00:21:24 1997 ++++ dict-gazetteer-1.3/format.c +@@ -22,7 +22,7 @@ + This is usually clearer when + searching. */ + +-#ifdef __sparc__ ++#if defined(__sparc__) && !defined(__NetBSD__) + extern int atoi(char *); + extern int printf( char *, ... ); + extern int fprintf( FILE *, char *, ... ); diff --git a/textproc/dict-dictionaries/patches/patch-ab b/textproc/dict-dictionaries/patches/patch-ab new file mode 100644 index 00000000000..8c34be2fd24 --- /dev/null +++ b/textproc/dict-dictionaries/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2002/12/27 02:43:47 uebayasi Exp $ + +--- dict-web1913-1.4/dump.h.orig Mon Feb 23 04:31:40 1998 ++++ dict-web1913-1.4/dump.h +@@ -139,7 +139,7 @@ + declarations for standard library calls. We provide them here for + situations that we know about. */ + +-#if defined(__sparc__) ++#if defined(__sparc__) && !defined(__NetBSD__) + /* Both SunOS and Solaris */ + extern int getrusage( int who, struct rusage * ); + extern void bcopy( const void *, void *, int ); |