From f797b5b327c27f478fd4211cad6542ed833e8a20 Mon Sep 17 00:00:00 2001 From: minskim Date: Mon, 7 Mar 2005 14:48:09 +0000 Subject: Import wdic-3.0. Packaged by Yi Min-Cheol. wdic is a terminal-based English dictionary for Korean. It fetches data from the Empas dictionary (http://engdic.emaps.com/). --- misc/wdic/DESCR | 2 ++ misc/wdic/Makefile | 22 ++++++++++++++++++++++ misc/wdic/PLIST | 2 ++ misc/wdic/distinfo | 7 +++++++ misc/wdic/patches/patch-aa | 11 +++++++++++ misc/wdic/patches/patch-ab | 23 +++++++++++++++++++++++ 6 files changed, 67 insertions(+) create mode 100644 misc/wdic/DESCR create mode 100644 misc/wdic/Makefile create mode 100644 misc/wdic/PLIST create mode 100644 misc/wdic/distinfo create mode 100644 misc/wdic/patches/patch-aa create mode 100644 misc/wdic/patches/patch-ab (limited to 'misc') diff --git a/misc/wdic/DESCR b/misc/wdic/DESCR new file mode 100644 index 00000000000..f2ff682b519 --- /dev/null +++ b/misc/wdic/DESCR @@ -0,0 +1,2 @@ +wdic is a terminal-based English dictionary for Korean. It fetches +data from the Empas dictionary (http://engdic.emaps.com/). diff --git a/misc/wdic/Makefile b/misc/wdic/Makefile new file mode 100644 index 00000000000..0ac9c506b53 --- /dev/null +++ b/misc/wdic/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ +# + +DISTNAME= wdic_wob_v3.0 +PKGNAME= wdic-3.0 +CATEGORIES= misc +MASTER_SITES= http://kldp.net/frs/download.php/1732/ + +MAINTAINER= fox9@netb.co.kr +HOMEPAGE= http://kldp.net/projects/wdic/ +COMMENT= English dictionary for Korean + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +WRKSRC= ${WRKDIR} + +INSTALLATION_DIRS= bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/wdic ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/wdic/PLIST b/misc/wdic/PLIST new file mode 100644 index 00000000000..3b677d3688d --- /dev/null +++ b/misc/wdic/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ +bin/wdic diff --git a/misc/wdic/distinfo b/misc/wdic/distinfo new file mode 100644 index 00000000000..1434e8aed49 --- /dev/null +++ b/misc/wdic/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ + +SHA1 (wdic_wob_v3.0.tar.gz) = 63621be8f7fa12b24d6f318e7bb8fcbac82d38da +RMD160 (wdic_wob_v3.0.tar.gz) = aba08a48dda7cf08902fe7e4820731d0caf406db +Size (wdic_wob_v3.0.tar.gz) = 2885 bytes +SHA1 (patch-aa) = 08f66e30af85a117673e7076a8e1cebc2048f489 +SHA1 (patch-ab) = 6f6653536441cb6f43635f81fcd74b1b6a1597e5 diff --git a/misc/wdic/patches/patch-aa b/misc/wdic/patches/patch-aa new file mode 100644 index 00000000000..addca2f28e9 --- /dev/null +++ b/misc/wdic/patches/patch-aa @@ -0,0 +1,11 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ + +--- Makefile.orig 2005-03-07 19:36:49.000000000 +0900 ++++ Makefile +@@ -1,5 +1,5 @@ + all: +- gcc -o wdic -ggdb wdic_wob_v3.0.c ++ ${CC} -o wdic ${CFLAGS} wdic_wob_v3.0.c + + clean: + rm -f *.o wdic diff --git a/misc/wdic/patches/patch-ab b/misc/wdic/patches/patch-ab new file mode 100644 index 00000000000..4608cc0c386 --- /dev/null +++ b/misc/wdic/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $ + +--- wdic_wob_v3.0.c.orig Mon Jan 3 06:29:42 2005 ++++ wdic_wob_v3.0.c +@@ -13,6 +13,9 @@ + #include + #include + #include ++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__) ++#include ++#endif + + #define VERSION "v3.0" + #define URL "engdic.empas.com" +@@ -66,7 +69,7 @@ void parse_result(int sd) { + + if(main_start==1) { + if(strcmp("
", buf) == 0) { printf("\n"); } +- else if((strstr(buf, "left:8px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) { ++ else if((strstr(buf, "margin-top:15px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) { + // stop parsing main + main_start = 0; + } -- cgit v1.2.3