- Take over maintainership; okay dugsong@
- Update to w3m-0.2.1. - Replace post-bsd.port.mk fumbling with FULLPKGNAME and PFRAGs. - Install Japanese docs for respective flavor. - Pull COMMENT* into Makefile. - Remove useless/obsolete verbiage from DESCR. - Miscellaneous cleanups.
This commit is contained in:
parent
9bd1a1dddb
commit
7e96f65e45
@ -1,23 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2000/10/22 14:03:54 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2001/03/24 12:56:14 naddy Exp $
|
||||
|
||||
DISTNAME= w3m-0.1.10
|
||||
COMMENT= "text-based web browser/pager"
|
||||
COMMENT-kanji= "text-based web browser/pager, japanese flavor"
|
||||
|
||||
DISTNAME= w3m-0.2.1
|
||||
CATEGORIES= www
|
||||
NEED_VERSION= 1.310
|
||||
MASTER_SITES= ftp://ftp.firedrake.org/w3m/ \
|
||||
ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
|
||||
http://www.instinct.org/w3m/
|
||||
|
||||
NEED_VERSION= 1.363
|
||||
HOMEPAGE= http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/
|
||||
|
||||
MAINTAINER= Dug Song <dugsong@monkey.org>
|
||||
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \
|
||||
http://mi.med.tohoku.ac.jp/~satodai/w3m/src/ \
|
||||
http://www.instinct.org/w3m/
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ARGS= -nonstop -prefix="${PREFIX}" -cflags="${CFLAGS} -Wall" \
|
||||
CONFIGURE_ARGS= -nonstop -prefix="${PREFIX}" -cflags="${CFLAGS}" \
|
||||
-model=monster
|
||||
CONFIGURE_ENV= use_nntp=y dmail=mail ded=vi dbrowser=lynx dcc="${CC}" \
|
||||
dtermlib="${TERMLIB}" def_helpdir="${PREFIX}/share/w3m" \
|
||||
@ -26,29 +29,30 @@ CONFIGURE_ENV= use_nntp=y dmail=mail ded=vi dbrowser=lynx dcc="${CC}" \
|
||||
FLAVORS= kanji
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L:Mkanji}
|
||||
CATEGORIES+= japanese
|
||||
CONFIGURE_ARGS+= -lang=ja
|
||||
# XXX w3m resets kterm to jis before displaying a page anyway.
|
||||
CONFIGURE_ARGS+= -code=n
|
||||
.else
|
||||
CONFIGURE_ARGS+= -lang=en
|
||||
.endif
|
||||
|
||||
DOCS= FAQ.html HISTORY MANUAL.html \
|
||||
README README.cygwin README.dict README.func STORY.html \
|
||||
README README.dict README.func STORY.html \
|
||||
keymap.default keymap.lynx menu.default menu.submenu
|
||||
|
||||
.if ${FLAVOR:L:Mkanji}
|
||||
|
||||
FULLPKGNAME= ja-${PKGNAME}
|
||||
CATEGORIES+= japanese
|
||||
CONFIGURE_ARGS+= -lang=ja
|
||||
# XXX w3m resets kterm to jis before displaying a page anyway.
|
||||
CONFIGURE_ARGS+= -code=n
|
||||
DOCS+= README.SSL README.cookie README.keymap README.mailcap README.menu
|
||||
DOCDIR= ${WRKSRC}/doc-jp
|
||||
|
||||
.else
|
||||
|
||||
CONFIGURE_ARGS+= -lang=en
|
||||
DOCDIR= ${WRKSRC}/doc
|
||||
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${PREFIX}/man/man1
|
||||
cd ${WRKSRC}/doc; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/w3m
|
||||
cd ${DOCDIR} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/w3m
|
||||
|
||||
.include <bsd.port.mk>
|
||||
# XXX Tweak PKGNAME
|
||||
.if ${FLAVOR:L:Mkanji}
|
||||
PKGNAME:= ja-${PKGNAME:S/-kanji//}
|
||||
PKG_ARGS+= -C 'w3m-*'
|
||||
.else
|
||||
PKG_ARGS+= -C 'ja-w3m-*'
|
||||
.endif
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (w3m-0.1.10.tar.gz) = 2e0ed5e8db8ac8d7eb1e6996b74ace1d
|
||||
RMD160 (w3m-0.1.10.tar.gz) = 97f91ac762d0ce2c7bce8b2502c1cc71484ddbf8
|
||||
SHA1 (w3m-0.1.10.tar.gz) = 7b4df57e9ff6e9b7955ed7f91cf3abc8fa1c64c9
|
||||
MD5 (w3m-0.2.1.tar.gz) = 906c2506f570b563807bcd1d23fecea5
|
||||
RMD160 (w3m-0.2.1.tar.gz) = 0571973bb1e3fc9073aa4c97dff7fac6b6a47f56
|
||||
SHA1 (w3m-0.2.1.tar.gz) = 3ae98283f02f4faf05af76ee0b022f01c1301d29
|
||||
|
@ -1,13 +0,0 @@
|
||||
--- display.c.orig Thu Jul 6 15:43:29 2000
|
||||
+++ display.c Thu Jul 6 15:43:53 2000
|
||||
@@ -717,8 +717,10 @@
|
||||
}
|
||||
else {
|
||||
buf->pos = l->len -1;
|
||||
+#ifdef JP_CHARSET
|
||||
if (CharType(p[buf->pos]) == PC_KANJI2)
|
||||
buf->pos--;
|
||||
+#endif /* JP_CHARSET */
|
||||
}
|
||||
cpos = COLPOS(l, buf->pos);
|
||||
buf->visualpos = cpos - buf->currentColumn;
|
@ -1,3 +1,4 @@
|
||||
$OpenBSD: patch-gc_gcconfig.h,v 1.2 2001/03/24 12:56:16 naddy Exp $
|
||||
--- gc/gcconfig.h.orig Thu Jul 6 15:46:53 2000
|
||||
+++ gc/gcconfig.h Thu Jul 6 15:49:15 2000
|
||||
@@ -22,6 +22,25 @@
|
||||
|
@ -1 +0,0 @@
|
||||
text-based web browser/pager
|
@ -1 +0,0 @@
|
||||
text-based web browser/pager, japanese flavor
|
@ -1,43 +1,9 @@
|
||||
w3m is a lightweight text-mode pager that doubles as a WWW browser.
|
||||
w3m is a pager/text-based WWW browser. It is similar to Lynx, but
|
||||
it has several features Lynx doesn't have:
|
||||
|
||||
It's main features (over lynx) are:
|
||||
|
||||
* HTML tables
|
||||
* HTML frames
|
||||
* HTML from stdin
|
||||
* horizontal scrolling
|
||||
|
||||
While it may not be as strictly accurate as lynx, w3m seems to render
|
||||
HTML pages more intelligently and more compactly.
|
||||
|
||||
The following notes come from the README:
|
||||
------------------------------------------------------------
|
||||
|
||||
w3m is a pager with WWW capability. It IS a pager, but it can be
|
||||
used as a text-mode WWW browser.
|
||||
|
||||
The features of w3m are as follows:
|
||||
|
||||
* When reading HTML document, you can follow links and view images
|
||||
(using external image viewer).
|
||||
* It has 'internet message mode', which determines the type of document
|
||||
from header. If the Content-Type: field of the document is text/html,
|
||||
that document is displayed as HTML document.
|
||||
* You can change URL description like 'http://hogege.net' in plain text
|
||||
into link to that URL.
|
||||
|
||||
Current problems are:
|
||||
|
||||
* Resize behaviour is incomplete.
|
||||
* It can't show images inline. (It seems to be impossible as far as using
|
||||
xterm)
|
||||
* It doesn't decode MIME-body of the document.
|
||||
* Online manuals are poor.
|
||||
|
||||
Feel free to send your opinion to the author.
|
||||
|
||||
Akinori Ito
|
||||
Faculty of Engineering, Yamagata University
|
||||
aito@ei5sun.yz.yamagata-u.ac.jp
|
||||
* w3m can render tables
|
||||
* w3m can render frames (by converting frames into tables)
|
||||
* w3m can display documents from standard input
|
||||
* w3m is small
|
||||
|
||||
WWW: ${HOMEPAGE}
|
||||
|
7
www/w3m/pkg/PFRAG.kanji
Normal file
7
www/w3m/pkg/PFRAG.kanji
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PFRAG.kanji,v 1.1 2001/03/24 12:56:17 naddy Exp $
|
||||
@pkgcfl w3m-*
|
||||
share/doc/w3m/README.SSL
|
||||
share/doc/w3m/README.cookie
|
||||
share/doc/w3m/README.keymap
|
||||
share/doc/w3m/README.mailcap
|
||||
share/doc/w3m/README.menu
|
2
www/w3m/pkg/PFRAG.no-kanji
Normal file
2
www/w3m/pkg/PFRAG.no-kanji
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.no-kanji,v 1.1 2001/03/24 12:56:17 naddy Exp $
|
||||
@pkgcfl ja-w3m-*
|
@ -1,4 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2000/07/10 00:14:11 d Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2001/03/24 12:56:17 naddy Exp $
|
||||
%%kanji%%
|
||||
!%%kanji%%
|
||||
bin/w3m
|
||||
libexec/w3m/dirlist.cgi
|
||||
libexec/w3m/w3mbookmark
|
||||
@ -8,7 +10,6 @@ share/doc/w3m/FAQ.html
|
||||
share/doc/w3m/HISTORY
|
||||
share/doc/w3m/MANUAL.html
|
||||
share/doc/w3m/README
|
||||
share/doc/w3m/README.cygwin
|
||||
share/doc/w3m/README.dict
|
||||
share/doc/w3m/README.func
|
||||
share/doc/w3m/STORY.html
|
||||
|
@ -1,9 +1,7 @@
|
||||
this code is a total nightmare.
|
||||
This code is a total nightmare.
|
||||
|
||||
a pain to read, and lots of strcpy/strcat/sprintf's which actually
|
||||
A pain to read, and lots of strcpy/strcat/sprintf's which actually
|
||||
turn out to be okay, after adding a die-when-out-of-memory callback
|
||||
for the boehm garbage collector.
|
||||
|
||||
there are undoubtedly other issues with this code. caveat user.
|
||||
|
||||
-d.
|
||||
There are undoubtedly other issues with this code. Caveat user.
|
||||
|
Loading…
x
Reference in New Issue
Block a user