[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w3m-m17n



20020129 版です。20020128 版とほとんど同じです。
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	w3m
#	w3m/distinfo
#	w3m/DESCR
#	w3m/PLIST
#	w3m/patches
#	w3m/patches/patch-ab
#	w3m/Makefile
#
echo c - w3m
mkdir -p w3m > /dev/null 2>&1
echo x - w3m/distinfo
sed 's/^X//' >w3m/distinfo << 'END-of-w3m/distinfo'
X$NetBSD$
X
XSHA1 (w3m-0.2.4-m17n-20020129.tar.gz) = 6e8bb73549eb5b7073bf47cce8afe28b039b190e
XSize (w3m-0.2.4-m17n-20020129.tar.gz) = 2209812 bytes
XSHA1 (patch-ab) = c0c21616d1d3557453648107eca26eaa91af4741
END-of-w3m/distinfo
echo x - w3m/DESCR
sed 's/^X//' >w3m/DESCR << 'END-of-w3m/DESCR'
XW3m is a termial-based WWW browser which supports HTML tables and frames.
XIt's small, so faster than other WWW browsers.  It also supports following
XURL by clicking mouse button on the anchor in xterm and its variants from
X990526 version.
X
XIt uses Boehm-GC to implement the table/frame parser.
X
XQuoted from README.m17n:
X
XMuntilingualizaion of w3m 
X                                                              2001/03/24
X                                                              H. Sakamoto
X
XIntroduction
X
X  I have tried the muntilingualization of w3m (w3m-m17n).
X  The patch for w3m-0.2.1 is available on the following site.
X
X    http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/w3m-m17n-0.18.tar.gz
X                                                README.m17n
X
X  It is a development version. And enough test is not preformed because
X  I can understand Japanese only. Please use, test, and report bugs.
END-of-w3m/DESCR
echo x - w3m/PLIST
sed 's/^X//' >w3m/PLIST << 'END-of-w3m/PLIST'
X@comment $NetBSD: PLIST,v 1.1 2001/11/01 02:19:02 zuntum Exp $
Xbin/w3m
Xman/man1/w3m.1
Xman/ja_JP.EUC/man1/w3m.1
Xshare/doc/w3m/w3mhelp-w3m_en.html
Xshare/doc/w3m/w3mhelp-w3m_ja.html
Xshare/doc/w3m/w3mhelp-lynx_en.html
Xshare/doc/w3m/w3mhelp-lynx_ja.html
Xshare/doc/w3m/w3mhelp.html
X@comment share/doc/w3m/doc
Xshare/doc/w3m/doc/FAQ.html
Xshare/doc/w3m/doc/HISTORY
Xshare/doc/w3m/doc/MANUAL.html
Xshare/doc/w3m/doc/README
Xshare/doc/w3m/doc/README.cygwin
Xshare/doc/w3m/doc/README.dict
Xshare/doc/w3m/doc/README.func
Xshare/doc/w3m/doc/README.m17n
Xshare/doc/w3m/doc/STORY.html
Xshare/doc/w3m/doc/keymap.default
Xshare/doc/w3m/doc/keymap.lynx
Xshare/doc/w3m/doc/menu.default
Xshare/doc/w3m/doc/menu.submenu
Xshare/doc/w3m/doc/w3m.1
X@comment share/doc/w3m/doc-jp
Xshare/doc/w3m/doc-jp/FAQ.html
Xshare/doc/w3m/doc-jp/HISTORY
Xshare/doc/w3m/doc-jp/MANUAL.html
Xshare/doc/w3m/doc-jp/README
Xshare/doc/w3m/doc-jp/README.SSL
Xshare/doc/w3m/doc-jp/README.cookie
Xshare/doc/w3m/doc-jp/README.cygwin
Xshare/doc/w3m/doc-jp/README.dict
Xshare/doc/w3m/doc-jp/README.func
Xshare/doc/w3m/doc-jp/README.keymap
Xshare/doc/w3m/doc-jp/README.m17n
Xshare/doc/w3m/doc-jp/README.mailcap
Xshare/doc/w3m/doc-jp/README.menu
Xshare/doc/w3m/doc-jp/STORY.html
Xshare/doc/w3m/doc-jp/keymap.default
Xshare/doc/w3m/doc-jp/keymap.lynx
Xshare/doc/w3m/doc-jp/menu.default
Xshare/doc/w3m/doc-jp/menu.submenu
Xshare/doc/w3m/doc-jp/w3m.1
X@dirrm share/doc/w3m/doc
X@dirrm share/doc/w3m/doc-jp
X@dirrm share/doc/w3m
Xlib/w3m/w3mbookmark
Xlib/w3m/w3mhelperpanel
X@dirrm lib/w3m
END-of-w3m/PLIST
echo c - w3m/patches
mkdir -p w3m/patches > /dev/null 2>&1
echo x - w3m/patches/patch-ab
sed 's/^X//' >w3m/patches/patch-ab << 'END-of-w3m/patches/patch-ab'
X$NetBSD$
X
X--- main.c.orig	Mon Jan 28 02:52:03 2002
X+++ main.c
X@@ -2221,7 +2221,17 @@
X 	shell = "/bin/sh";
X     system(shell);
X #else				/* SIGSTOP */
X+#ifdef SIGTSTP
X+    signal(SIGTSTP, SIG_DFL);  /* just in case */
X+    /*
X+     * Note: If susp() was called from SIGTSTP handler,
X+     * unblocking SIGTSTP would be required here.
X+     * Currently not.
X+     */ 
X+    kill(0, SIGTSTP);  /* stop whole job, not a single process */
X+#else
X     kill((pid_t) 0, SIGSTOP);
X+#endif
X #endif				/* SIGSTOP */
X     fmInit();
X     displayBuffer(Currentbuf, B_FORCE_REDRAW);
END-of-w3m/patches/patch-ab
echo x - w3m/Makefile
sed 's/^X//' >w3m/Makefile << 'END-of-w3m/Makefile'
X# $NetBSD: Makefile,v 1.29 2001/11/29 01:12:52 hubertf Exp $
X#
X
XDISTNAME=	w3m-0.2.4-m17n-20020129
XPKGNAME=	w3m-0.2.4
XCATEGORIES=	www
XMASTER_SITES=	http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
X
XMAINTAINER=	kei@netbsd.org
XHOMEPAGE=	http://www2u.biglobe.ne.jp/~hsaka/w3m/
XCOMMENT=	multilingualized version of a pager/text-based browser w3m
X
XCONFLICTS+=	w3m-m17n-[0-9]*
X
XUSE_BUILDLINK_ONLY=	yes
X
XHELPDIR=        share/doc/w3m
XHELPERDIR=      lib/w3m
X
X# configure will check IPv6 readiness automatically
XBUILD_DEFS+=	USE_INET6
X
X.include "../../mk/bsd.prefs.mk"
X.if defined(EXTRACT_USING_PAX)
XEXTRACT_ELEMENTS=	-c ${DISTNAME}/gc/\*
X.else
XEXTRACT_ELEMENTS=	--exclude ${DISTNAME}/gc/\*
X.endif
X
X# Always enable multiligualization.
XW3M_USE_M17N=			YES
X# Set this to YES if you want unicode support.
XW3M_USE_UNICODE?=		YES
X# set this to YES to use Japanese messages.
XW3M_USE_JAPANESE_MESSAGES?=	NO
X# Set this to YES to use lynx like key binding.
XW3M_USE_LYNX_KEY?=		NO
X# set this to YES if you want HTTPS support.
XW3M_USE_SSL?=			YES
X# set this to YES if you want HTTP cookie support.
XW3M_USE_COOKIE?=        	YES
X# set this to YES if you want mouse support.
XW3M_USE_MOUSE?=			YES
X# set this to YES if you want color support.
XW3M_USE_COLOR?=			YES
X
XCONFIGURE_ENV+=	use_m17n=y
X.if ${W3M_USE_UNICODE} == YES
XCONFIGURE_ENV+=	use_unicode=y
X.else
XCONFIGURE_ENV+=	use_unicode=n
X.endif
XCONFIGURE_ENV+=	charset=ISO-2022-JP-2
X.if ${W3M_USE_JAPANESE_MESSAGES} == YES
XCONFIGURE_ARGS+=	--lang=ja
XHELP_LANG=			_ja
X.else
XCONFIGURE_ARGS+=	--lang=en
XHELP_LANG=			_en
X.endif
X.if ${W3M_USE_COLOR} == YES
XCONFIGURE_ENV+=	use_color=y
X.else
XCONFIGURE_ENV+=	use_color=n
X.endif
X.if ${W3M_USE_MOUSE} == YES
XCONFIGURE_ENV+=	use_mouse=y
X.else
XCONFIGURE_ENV+=	use_mouse=n
X.endif
X.if ${W3M_USE_COOKIE} == YES
XCONFIGURE_ENV+=	use_cookie=y
X.else
XCONFIGURE_ENV+=	use_cookie=n
X.endif
X.if ${W3M_USE_SSL} == YES
XUSE_SSL=			YES
XCONFIGURE_ENV+=	use_ssl=y use_ssl_verify=n
XCONFIGURE_ARGS+=	--ssl-includedir=${BUILDLINK_DIR}/include/openssl
XCONFIGURE_ARGS+=	--ssl-libdir=${BUILDLINK_DIR}/lib
X.include "../../security/openssl/buildlink.mk"
X.else
XCONFIGURE_ENV+=	use_ssl=n use_ssl_verify=n
X.endif
X.if ${W3M_USE_LYNX_KEY} == YES
XCONFIGURE_ENV+=	lynx_key=y
XHELP_W3M=			-lynx
X.else
XCONFIGURE_ENV+=	lynx_key=n
XHELP_W3M=			-w3m
X.endif
XCONFIGURE_ENV+= use_menu=y use_matrix=n ansi_color=y
XCONFIGURE_ENV+= ded=vi dmail=Mail dbrowser=
XCONFIGURE_ENV+= dcc="${CC}" dtermlib="-ltermcap"
XCONFIGURE_ENV+= dldflags="-Wl,-rpath,${LOCALBASE}/lib -L${LOCALBASE}/lib"
XCONFIGURE_ENV+= dmodel=6
XCONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
XCONFIGURE_ARGS+= --yes
XCONFIGURE_ARGS+= --suffix=
XCONFIGURE_ARGS+= --prefix=${PREFIX}
XCONFIGURE_ARGS+= --bindir=${PREFIX}/bin
XCONFIGURE_ARGS+= --libdir=${PREFIX}/${HELPERDIR}
XCONFIGURE_ARGS+= --helpdir=${PREFIX}/${HELPDIR}
XCONFIGURE_ARGS+= --gc-includedir=${BUILDLINK_DIR}/include
XCONFIGURE_ARGS+= --gc-libdir=${BUILDLINK_DIR}/lib
X
Xpost-extract:
X	@(cd ${WRKSRC}/doc; ${RM} -fr CVS)
X	@(cd ${WRKSRC}/doc-jp; ${RM} -fr CVS)
X
Xpost-patch:
X	${FIND} ${WRKSRC} -type f -name '*.orig' | ${XARGS} ${RM}
X
X# do not look at previous configuration
Xdo-configure:
X	@(cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" \
X	    INSTALL="${INSTALL_SCRIPT}"                             \
X	    CFLAGS="${CFLAGS}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
X	    ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
X
Xpre-build:
X	@(cd ${WRKSRC}; \
X	 ${MAKE} XXMakefile; \
X	 ${MV} XXMakefile XXMakefile.gen; \
X	 ${SED} -e '/^GCLIB/s|gc/gc.a|-lgc|' -e '/^GCTARGET/s|gc/gc.a||' \
X		XXMakefile.gen > XXMakefile)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/w3m ${LOCALBASE}/bin
X	${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${LOCALBASE}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${LOCALBASE}/man/ja_JP.EUC/man1
X	${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}
X	${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_en.html ${LOCALBASE}/${HELPDIR}
X	${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_ja.html ${LOCALBASE}/${HELPDIR}
X	${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_en.html ${LOCALBASE}/${HELPDIR}
X	${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_ja.html ${LOCALBASE}/${HELPDIR}
X	# Use ${PAX} to discard uid/gid
X	(cd ${WRKSRC}; ${PAX} -w doc doc-jp) | \
X	    (cd ${LOCALBASE}/${HELPDIR}; ${PAX} -r)
X	${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPERDIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/w3mbookmark ${LOCALBASE}/${HELPERDIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/w3mhelperpanel ${LOCALBASE}/${HELPERDIR}
X
Xpost-install:
X	(cd ${LOCALBASE}/${HELPDIR}; \
X	    ${RM} -f w3mhelp.html; \
X	    ${LN} -s w3mhelp${HELP_W3M}${HELP_LANG}.html w3mhelp.html)
X
X.include "../../devel/boehm-gc/buildlink.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-w3m/Makefile
exit