summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorkei <kei>2001-04-23 12:18:55 +0000
committerkei <kei>2001-04-23 12:18:55 +0000
commitd8d542da45abee760d6707aa4c02983bfc09fbab (patch)
tree5d2669da2abf98c99fa217678fb52f28a83bdab1 /www
parente74cecf37cdf988306134d365b404fb4867e0373 (diff)
downloadpkgsrc-d8d542da45abee760d6707aa4c02983bfc09fbab.tar.gz
Initial import of w3m-m17n-0.19 package.
It supports several languages e.g. most of European language, Japanese, Chinese (simplified, traditional), Korean, Vietnamese, Thai, and Unicode (UCS-4). You need one of x11/kterm package or latest version of xterm which comes with XFree86 to display multiple languages correctly. Also you may want fonts/intlfonts package installed. Please take a look at README.m17n for mor information. --- Quoted from DESCR which quotes README.m17n: Muntilingualizaion of w3m 2001/03/24 H. Sakamoto Introduction I have tried the muntilingualization of w3m (w3m-m17n). The patch for w3m-0.2.1 is available on the following site. http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/w3m-m17n-0.18.tar.gz README.m17n It is a development version. And enough test is not preformed because I can understand Japanese only. Please use, test, and report bugs. Homepage: http://www2u.biglobe.ne.jp/~hsaka/w3m/
Diffstat (limited to 'www')
-rw-r--r--www/w3m-m17n/Makefile144
-rw-r--r--www/w3m-m17n/distinfo9
-rw-r--r--www/w3m-m17n/patches/patch-aa39
-rw-r--r--www/w3m-m17n/patches/patch-ab22
-rw-r--r--www/w3m-m17n/patches/patch-af38
-rw-r--r--www/w3m-m17n/pkg/DESCR16
-rw-r--r--www/w3m-m17n/pkg/PLIST55
7 files changed, 323 insertions, 0 deletions
diff --git a/www/w3m-m17n/Makefile b/www/w3m-m17n/Makefile
new file mode 100644
index 00000000000..3830c7e8249
--- /dev/null
+++ b/www/w3m-m17n/Makefile
@@ -0,0 +1,144 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+#
+
+DISTNAME= w3m-0.2.1
+PKGNAME= w3m-m17n-0.19
+CATEGORIES= www
+MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/
+
+PATCH_SITES= http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
+PATCHFILES= w3m-0.2.1-m17n-0.19.patch.gz
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= kei@netbsd.org
+HOMEPAGE= http://www2u.biglobe.ne.jp/~hsaka/w3m/
+COMMENT= multilingualized version of a pager/text-based browser w3m
+
+DEPENDS= boehm-gc>=5.3:../../devel/boehm-gc
+
+HELPDIR= share/doc/w3m-m17n
+HELPERDIR= lib/w3m-m17n
+
+# configure will check IPv6 readiness automatically
+BUILD_DEFS+= USE_INET6
+
+.include "../../mk/bsd.prefs.mk"
+.if defined(EXTRACT_USING_PAX)
+EXTRACT_ELEMENTS= -c ${DISTNAME}/gc/\*
+.else
+EXTRACT_ELEMENTS= --exclude ${DISTNAME}/gc/\*
+.endif
+
+# Always enable multiligualization.
+W3M_USE_M17N= YES
+# Set this to YES if you want unicode support.
+W3M_USE_UNICODE?= YES
+# set this to YES to use Japanese messages.
+W3M_USE_JAPANESE_MESSAGES?= NO
+# Set this to YES to use lynx like key binding.
+W3M_USE_LYNX_KEY?= NO
+# set this to YES if you want HTTPS support.
+W3M_USE_SSL?= YES
+# set this to YES if you want HTTP cookie support.
+W3M_USE_COOKIE?= YES
+# set this to YES if you want mouse support.
+W3M_USE_MOUSE?= YES
+# set this to YES if you want color support.
+W3M_USE_COLOR?= YES
+
+CONFIGURE_ENV+= use_m17n=y
+.if ${W3M_USE_UNICODE} == YES
+CONFIGURE_ENV+= use_unicode=y
+.else
+CONFIGURE_ENV+= use_unicode=n
+.endif
+CONFIGURE_ENV+= charset=ISO-2022-JP-2
+.if ${W3M_USE_JAPANESE_MESSAGES} == YES
+CONFIGURE_ENV+= lang=ja
+HELP_LANG= _ja
+.else
+CONFIGURE_ENV+= lang=en
+HELP_LANG= _en
+.endif
+.if ${W3M_USE_COLOR} == YES
+CONFIGURE_ENV+= use_color=y
+.else
+CONFIGURE_ENV+= use_color=n
+.endif
+.if ${W3M_USE_MOUSE} == YES
+CONFIGURE_ENV+= use_mouse=y
+.else
+CONFIGURE_ENV+= use_mouse=n
+.endif
+.if ${W3M_USE_COOKIE} == YES
+CONFIGURE_ENV+= use_cookie=y
+.else
+CONFIGURE_ENV+= use_cookie=n
+.endif
+.if ${W3M_USE_SSL} == YES
+USE_SSL= YES
+CONFIGURE_ENV+= use_ssl=y use_ssl_verify=n
+.else
+CONFIGURE_ENV+= use_ssl=n use_ssl_verify=n
+.endif
+.if ${W3M_USE_LYNX_KEY} == YES
+CONFIGURE_ENV+= lynx_key=y
+HELP_W3M= -lynx
+.else
+CONFIGURE_ENV+= lynx_key=n
+HELP_W3M= -w3m
+.endif
+CONFIGURE_ENV+= def_bindir=${LOCALBASE}/bin
+CONFIGURE_ENV+= def_libdir=${LOCALBASE}/${HELPERDIR}
+CONFIGURE_ENV+= def_helpdir=${LOCALBASE}/${HELPDIR}
+CONFIGURE_ENV+= use_menu=y use_matrix=n ansi_color=y
+CONFIGURE_ENV+= ded=vi dmail=Mail dbrowser=
+CONFIGURE_ENV+= dcc="${CC}" dtermlib="-ltermcap"
+CONFIGURE_ENV+= dldflags="-Wl,-rpath,${LOCALBASE}/lib -L${LOCALBASE}/lib"
+CONFIGURE_ENV+= dmodel=6
+CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
+
+post-extract:
+ @(cd ${WRKSRC}/doc; ${RM} -fr CVS)
+ @(cd ${WRKSRC}/doc-jp; ${RM} -fr CVS)
+
+post-patch:
+ ${FIND} ${WRKSRC} -type f -name '*.orig'|xargs ${RM}
+
+# do not look at previous configuration
+do-configure:
+ @yes '' | (cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" \
+ INSTALL="${INSTALL_SCRIPT}" \
+ CFLAGS="${CFLAGS}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
+
+pre-build:
+ @(cd ${WRKSRC}; \
+ ${MAKE} XXMakefile; \
+ ${MV} XXMakefile XXMakefile.gen; \
+ ${SED} -e '/^GCLIB/s|gc/gc.a|-lgc|' -e '/^GCTARGET/s|gc/gc.a||' \
+ XXMakefile.gen > XXMakefile)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/w3m-m17n ${LOCALBASE}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${LOCALBASE}/man/man1/w3m-m17n.1
+ ${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 \
+ ${LOCALBASE}/man/ja_JP.EUC/man1/w3m-m17n.1
+ ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_en.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_ja.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_en.html ${LOCALBASE}/${HELPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_ja.html ${LOCALBASE}/${HELPDIR}
+ # Use ${PAX} to discard uid/gid
+ (cd ${WRKSRC}; ${PAX} -w doc doc-jp) | \
+ (cd ${LOCALBASE}/${HELPDIR}; ${PAX} -r)
+ ${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPERDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/w3mbookmark ${LOCALBASE}/${HELPERDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/w3mhelperpanel ${LOCALBASE}/${HELPERDIR}
+
+post-install:
+ (cd ${LOCALBASE}/${HELPDIR}; \
+ ${RM} -f w3mhelp.html; \
+ ${LN} -s w3mhelp${HELP_W3M}${HELP_LANG}.html w3mhelp.html)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/w3m-m17n/distinfo b/www/w3m-m17n/distinfo
new file mode 100644
index 00000000000..f1259a575ec
--- /dev/null
+++ b/www/w3m-m17n/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+
+SHA1 (w3m-0.2.1.tar.gz) = 3ae98283f02f4faf05af76ee0b022f01c1301d29
+Size (w3m-0.2.1.tar.gz) = 844101 bytes
+SHA1 (w3m-0.2.1-m17n-0.19.patch.gz) = fad1119054d27bff8683176ff0c02ba906535448
+Size (w3m-0.2.1-m17n-0.19.patch.gz) = 1245263 bytes
+SHA1 (patch-aa) = 9c8e45448aedb1959d155eef355fe5d37599e11c
+SHA1 (patch-ab) = 08a28e40907f8c3040b1e9253caf14b8b4f0dc7e
+SHA1 (patch-af) = f43380334a92c609afef4058b03f1ef72ae77e2e
diff --git a/www/w3m-m17n/patches/patch-aa b/www/w3m-m17n/patches/patch-aa
new file mode 100644
index 00000000000..3e1974a76fe
--- /dev/null
+++ b/www/w3m-m17n/patches/patch-aa
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+
+--- configure.orig Sat Apr 21 13:43:38 2001
++++ configure Sat Apr 21 13:44:34 2001
+@@ -194,7 +194,7 @@
+
+ find_ssl() {
+ sslinclude=""
+- for i1 in /usr /usr/local
++ for i1 in /usr /usr/local /usr/pkg
+ do
+ for i2 in /openssl /ssl /
+ do
+@@ -907,7 +907,7 @@
+ gclib=''
+ gcinclude=''
+ gctarget=''
+-for libdir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib
++for libdir in /lib /usr/lib ${LOCALBASE}/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib ${HOME}/lib
+ do
+ if [ -f $libdir/libgc.a -o -f $libdir/libgc.so ] ; then
+ echo "$libdir/libgc found"
+@@ -915,7 +915,7 @@
+ break
+ fi
+ done
+-for inc in /usr/include /usr/include/gc /usr/local/include /usr/local/include/gc ${HOME}/include
++for inc in /usr/include /usr/include/gc ${LOCALBASE}/include /usr/local/include /usr/local/include/gc ${HOME}/include
+ do
+ if [ -f $inc/gc.h ]; then
+ echo "$inc/gc.h found"
+@@ -1600,6 +1600,7 @@
+ if [ `expr "$perl" : 'not found'` != 0 ]; then
+ perl=/usr/local/bin/perl
+ fi
++perl=/usr/pkg/bin/perl
+ if [ $sysname = CYGWIN ]; then
+ cygwin=1
+ else
diff --git a/www/w3m-m17n/patches/patch-ab b/www/w3m-m17n/patches/patch-ab
new file mode 100644
index 00000000000..2153a1a9897
--- /dev/null
+++ b/www/w3m-m17n/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+
+--- main.c.orig Fri Mar 23 11:14:58 2001
++++ main.c Fri Mar 30 21:02:12 2001
+@@ -1645,7 +1645,17 @@
+ shell = "/bin/sh";
+ system(shell);
+ #else /* SIGSTOP */
++#ifdef SIGTSTP
++ signal(SIGTSTP, SIG_DFL); /* just in case */
++ /*
++ * Note: If susp() was called from SIGTSTP handler,
++ * unblocking SIGTSTP would be required here.
++ * Currently not.
++ */
++ kill(0, SIGTSTP); /* stop whole job, not a single process */
++#else
+ kill((pid_t)0, SIGSTOP);
++#endif
+ #endif /* SIGSTOP */
+ fmInit();
+ displayBuffer(Currentbuf, B_FORCE_REDRAW);
diff --git a/www/w3m-m17n/patches/patch-af b/www/w3m-m17n/patches/patch-af
new file mode 100644
index 00000000000..c7d0a05db2a
--- /dev/null
+++ b/www/w3m-m17n/patches/patch-af
@@ -0,0 +1,38 @@
+$NetBSD: patch-af,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+
+--- libwc/Makefile.orig Sat Apr 21 16:23:53 2001
++++ libwc/Makefile Sat Apr 21 16:32:43 2001
+@@ -1,10 +1,10 @@
+
+ LIBRARY = libwc.a
+-GCLIB = ../gc/gc.a
+-CC = cc -O -g -Wall -DUSE_UNICODE
+-CFLAGS = -I. -I.. -I../gc/include -I../gc
+-AR = ar
+-RANLIB = ranlib
++GCLIB = ${PREFIX}/lib/libgc.a
++CC = ${CC} -O -g -Wall -DUSE_UNICODE
++CFLAGS = -I. -I.. -I${PREFIX}/include
++AR = ${AR}
++RANLIB = ${RANLIB}
+
+ SRCS = big5.c \
+ ces.c \
+@@ -90,7 +90,7 @@
+ ces.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h sjis.h hz.h \
+ big5.h johab.h gbk.h gb18030.h uhc.h viet.h utf8.h
+ char_conv.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
+-charset.o: ../gc/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
++charset.o: ${PREFIX}/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
+ priv.h
+ combining.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h \
+ map/iso88596_combining.map map/iso885911_combining.map \
+@@ -117,7 +117,7 @@
+ search.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
+ sjis.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h sjis.h jis.h \
+ wtf.h ucs.h map/jisx02132_sjis.map
+-status.o: ../gc/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
++status.o: ${PREFIX}/include/gc.h wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h \
+ priv.h ucs.h
+ test.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h
+ ucs.o: wc.h ../Str.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h search.h \
diff --git a/www/w3m-m17n/pkg/DESCR b/www/w3m-m17n/pkg/DESCR
new file mode 100644
index 00000000000..0f6ba4e1d47
--- /dev/null
+++ b/www/w3m-m17n/pkg/DESCR
@@ -0,0 +1,16 @@
+Quoted from README.m17n:
+
+Muntilingualizaion of w3m
+ 2001/03/24
+ H. Sakamoto
+
+Introduction
+
+ I have tried the muntilingualization of w3m (w3m-m17n).
+ The patch for w3m-0.2.1 is available on the following site.
+
+ http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/w3m-m17n-0.18.tar.gz
+ README.m17n
+
+ It is a development version. And enough test is not preformed because
+ I can understand Japanese only. Please use, test, and report bugs.
diff --git a/www/w3m-m17n/pkg/PLIST b/www/w3m-m17n/pkg/PLIST
new file mode 100644
index 00000000000..a739c691ef7
--- /dev/null
+++ b/www/w3m-m17n/pkg/PLIST
@@ -0,0 +1,55 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/23 12:18:55 kei Exp $
+bin/w3m-m17n
+man/man1/w3m-m17n.1
+man/ja_JP.EUC/man1/w3m-m17n.1
+share/doc/w3m-m17n/w3mhelp-w3m_en.html
+share/doc/w3m-m17n/w3mhelp-w3m_ja.html
+share/doc/w3m-m17n/w3mhelp-lynx_en.html
+share/doc/w3m-m17n/w3mhelp-lynx_ja.html
+share/doc/w3m-m17n/w3mhelp.html
+@comment share/doc/w3m-m17n/doc
+share/doc/w3m-m17n/doc/FAQ.html
+share/doc/w3m-m17n/doc/HISTORY
+share/doc/w3m-m17n/doc/MANUAL.html
+share/doc/w3m-m17n/doc/README
+share/doc/w3m-m17n/doc/README.cygwin
+share/doc/w3m-m17n/doc/README.dict
+share/doc/w3m-m17n/doc/README.func
+share/doc/w3m-m17n/doc/README.m17n
+share/doc/w3m-m17n/doc/STORY.html
+share/doc/w3m-m17n/doc/history
+share/doc/w3m-m17n/doc/keymap.default
+share/doc/w3m-m17n/doc/keymap.lynx
+share/doc/w3m-m17n/doc/menu.default
+share/doc/w3m-m17n/doc/menu.submenu
+share/doc/w3m-m17n/doc/w3m.1
+@comment share/doc/w3m-m17n/doc-jp
+share/doc/w3m-m17n/doc-jp/FAQ.html
+share/doc/w3m-m17n/doc-jp/HISTORY
+share/doc/w3m-m17n/doc-jp/HISTORY.kokb
+share/doc/w3m-m17n/doc-jp/MANUAL.html
+share/doc/w3m-m17n/doc-jp/README
+share/doc/w3m-m17n/doc-jp/README.SSL
+share/doc/w3m-m17n/doc-jp/README.cookie
+share/doc/w3m-m17n/doc-jp/README.cygwin
+share/doc/w3m-m17n/doc-jp/README.dict
+share/doc/w3m-m17n/doc-jp/README.func
+share/doc/w3m-m17n/doc-jp/README.hp
+share/doc/w3m-m17n/doc-jp/README.keymap
+share/doc/w3m-m17n/doc-jp/README.kokb
+share/doc/w3m-m17n/doc-jp/README.m17n
+share/doc/w3m-m17n/doc-jp/README.mailcap
+share/doc/w3m-m17n/doc-jp/README.menu
+share/doc/w3m-m17n/doc-jp/STORY.html
+share/doc/w3m-m17n/doc-jp/TODO.m17n
+share/doc/w3m-m17n/doc-jp/keymap.default
+share/doc/w3m-m17n/doc-jp/keymap.lynx
+share/doc/w3m-m17n/doc-jp/menu.default
+share/doc/w3m-m17n/doc-jp/menu.submenu
+share/doc/w3m-m17n/doc-jp/w3m.1
+@dirrm share/doc/w3m-m17n/doc
+@dirrm share/doc/w3m-m17n/doc-jp
+@dirrm share/doc/w3m-m17n
+lib/w3m-m17n/w3mbookmark
+lib/w3m-m17n/w3mhelperpanel
+@dirrm lib/w3m-m17n