summaryrefslogtreecommitdiff
path: root/www/w3m
diff options
context:
space:
mode:
authorSADA Kenji <sada@FreeBSD.org>1999-10-08 15:32:48 +0000
committerSADA Kenji <sada@FreeBSD.org>1999-10-08 15:32:48 +0000
commitef97284103df2dd7bb8a311c2de60b0dc9e1a583 (patch)
treed0308866291857e57a83e7283ca7c751e448820c /www/w3m
parentBump libPropList shlib number. (diff)
W3M is a text based http user agent.
It is alike Lynx but could represent table elements. Submitted by: MANTANI Nobutaka <nobutaka@nobutaka.com>
Notes
Notes: svn path=/head/; revision=22249
Diffstat (limited to 'www/w3m')
-rw-r--r--www/w3m/Makefile40
-rw-r--r--www/w3m/distinfo1
-rw-r--r--www/w3m/files/patch-aa47
-rw-r--r--www/w3m/pkg-comment1
-rw-r--r--www/w3m/pkg-descr14
-rw-r--r--www/w3m/pkg-plist7
6 files changed, 110 insertions, 0 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
new file mode 100644
index 000000000000..94dead5b00ee
--- /dev/null
+++ b/www/w3m/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: w3m
+# Version required: 990928
+# Date Created: 7 Oct 1999
+# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= w3m-990928
+CATEGORIES?= www
+MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
+ ftp://ftp.firedrake.org/w3m/
+
+MAINTAINER= nobutaka@nobutaka.com
+
+WRKSRC= ${WRKDIR}/w3m
+TARGET= ${WRKSRC}/config.h
+
+.if !defined(JAPANESE_MSG)
+pre-extract:
+ @${ECHO} "Try ports/japanese/w3m if you prefer Japanese messages."
+.endif
+
+post-configure:
+ @${CP} ${TARGET} ${TARGET}.in
+.if defined(JAPANESE_MSG)
+ @${SED} \
+ -e "s,%%PREFIX%%,${PREFIX},g" \
+ -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ -e "s,#undef JAPANESE_MSG,#define JAPANESE_MSG,g" \
+ -e "s,w3mhelp_en.html,w3mhelp_ja.html,g" \
+ < ${TARGET}.in > ${TARGET}
+.else
+ @${SED} \
+ -e "s,%%PREFIX%%,${PREFIX},g" \
+ -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
+ < ${TARGET}.in > ${TARGET}
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/w3m/distinfo b/www/w3m/distinfo
new file mode 100644
index 000000000000..55afe66a1da3
--- /dev/null
+++ b/www/w3m/distinfo
@@ -0,0 +1 @@
+MD5 (w3m-990928.tar.gz) = c1a2c8af0be16bb8b2b159461a6d7979
diff --git a/www/w3m/files/patch-aa b/www/w3m/files/patch-aa
new file mode 100644
index 000000000000..178a09c29c5e
--- /dev/null
+++ b/www/w3m/files/patch-aa
@@ -0,0 +1,47 @@
+--- config.h.orig Tue Sep 28 10:58:56 1999
++++ config.h Fri Oct 8 02:26:28 1999
+@@ -28,13 +28,13 @@
+ /**********************************************************/
+ #ifdef makefile_parameter
+
+-BIN_DIR = /usr/local/bin
+-HELP_DIR = /usr/local/lib
+-HELP_FILE = w3mhelp_ja.html
+-SYS_LIBRARIES = -lbsd -lnsl -ltermcap
++BIN_DIR = %%PREFIX%%/bin
++HELP_DIR = %%PREFIX%%/share/doc/w3m
++HELP_FILE = w3mhelp_en.html
++SYS_LIBRARIES = -ltermcap
+ LOCAL_LIBRARIES =
+ CC = gcc
+-MYCFLAGS = -g -I./gc
++MYCFLAGS = -I./gc
+ KEYBIND_SRC = keybind.c
+ KEYBIND_OBJ = keybind.o
+ EXT=
+@@ -48,15 +48,19 @@
+ #define JA 0
+ #define EN 1
+ #define LANG JA
+-#define KANJI_SYMBOLS
+ #define COLOR
+-#define MOUSE
++#undef MOUSE
+ #define MENU
++#undef JAPANESE_MSG
++
++#ifdef JAPANESE_MSG
++#define KANJI_SYMBOLS
++#endif
+
+-#define DEF_EDITOR "/bin/vi"
+-#define DEF_MAILER "/bin/mail"
+-#define DEF_EXT_BROWSER "/usr/bin/lynx"
+-#define HELP_FILE "/usr/local/lib/w3mhelp.html"
++#define DEF_EDITOR "/usr/bin/vi"
++#define DEF_MAILER "/usr/bin/mail"
++#define DEF_EXT_BROWSER "%%LOCALBASE%%/bin/netscape"
++#define HELP_FILE "%%LOCALBASE%%/share/doc/w3m/w3mhelp.html"
+ #define BOOKMARK "~/.w3m/bookmark.html"
+ #define KEYMAP_FILE "~/.w3m/keymap"
+ #define MENU_FILE "~/.w3m/menu"
diff --git a/www/w3m/pkg-comment b/www/w3m/pkg-comment
new file mode 100644
index 000000000000..a29d877cd102
--- /dev/null
+++ b/www/w3m/pkg-comment
@@ -0,0 +1 @@
+a pager/text-based WWW browser
diff --git a/www/w3m/pkg-descr b/www/w3m/pkg-descr
new file mode 100644
index 000000000000..bc69455ddd6b
--- /dev/null
+++ b/www/w3m/pkg-descr
@@ -0,0 +1,14 @@
+w3m is a pager/text-based WWW browser.
+
+It is a similar application to Lynx, but it has several features Lynx
+doesn't have.
+
+* Rendering tables.
+* Rendering frames. (It converts frames into a table).
+* Display documents given from standard input.
+* Small binary size.
+
+WWW: http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/index.html
+
+--
+MANTANI Nobutaka <nobutaka@nobutaka.com>
diff --git a/www/w3m/pkg-plist b/www/w3m/pkg-plist
new file mode 100644
index 000000000000..cf8953f05ec9
--- /dev/null
+++ b/www/w3m/pkg-plist
@@ -0,0 +1,7 @@
+bin/w3m
+share/doc/w3m/w3mhelp-lynx_en.html
+share/doc/w3m/w3mhelp-lynx_ja.html
+share/doc/w3m/w3mhelp.html
+share/doc/w3m/w3mhelp_en.html
+share/doc/w3m/w3mhelp_ja.html
+@dirrm share/doc/w3m