summaryrefslogtreecommitdiff
path: root/misc/wdic
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-03-07 14:48:09 +0000
committerminskim <minskim@pkgsrc.org>2005-03-07 14:48:09 +0000
commitfb518315f42ce88bc47540da187dcd5d4e7bf928 (patch)
tree22f99cbb7ec982673ac984cf5bb33d6499333b3e /misc/wdic
parente2ea684c7e8c24ebaf3d9b276489f0db255e9c47 (diff)
downloadpkgsrc-fb518315f42ce88bc47540da187dcd5d4e7bf928.tar.gz
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/).
Diffstat (limited to 'misc/wdic')
-rw-r--r--misc/wdic/DESCR2
-rw-r--r--misc/wdic/Makefile22
-rw-r--r--misc/wdic/PLIST2
-rw-r--r--misc/wdic/distinfo7
-rw-r--r--misc/wdic/patches/patch-aa11
-rw-r--r--misc/wdic/patches/patch-ab23
6 files changed, 67 insertions, 0 deletions
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 <string.h>
+ #include <netdb.h>
+ #include <sys/socket.h>
++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#include <netinet/in.h>
++#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("<br>", 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;
+ }