aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/lynx
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2010-08-22 21:49:46 +0800
committerlwhsu <lwhsu@FreeBSD.org>2010-08-22 21:49:46 +0800
commitd8a0abf336a38b4aaae127f1c768824142ce2053 (patch)
tree0e1334f063155311ddf312d289c511e7e3a37869 /japanese/lynx
parent7aad6df0d616294bd0f2f156bed5d815bf41e6ff (diff)
downloadfreebsd-ports-gnome-d8a0abf336a38b4aaae127f1c768824142ce2053.tar.gz
freebsd-ports-gnome-d8a0abf336a38b4aaae127f1c768824142ce2053.tar.zst
freebsd-ports-gnome-d8a0abf336a38b4aaae127f1c768824142ce2053.zip
- Update to 2.8.7.rel1
- Add a patch to correct the japanese character encoding of FORM input data. - Rename ENABLE_FOO tabs to WITH_FOO PR: ports/147221 Submitted by: WATANABE Kazuhiro <CQG00620 AT nifty.ne.jp>
Diffstat (limited to 'japanese/lynx')
-rw-r--r--japanese/lynx/Makefile29
-rw-r--r--japanese/lynx/distinfo6
-rw-r--r--japanese/lynx/files/patch-aa22
-rw-r--r--japanese/lynx/files/patch-src-GridText.c31
-rw-r--r--japanese/lynx/pkg-plist26
5 files changed, 88 insertions, 26 deletions
diff --git a/japanese/lynx/Makefile b/japanese/lynx/Makefile
index 55f3197fdb7a..2ed87b78537f 100644
--- a/japanese/lynx/Makefile
+++ b/japanese/lynx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= lynx
-PORTVERSION= ${VERSION}.${MINOR_VERSION:S/.//}
+DISTVERSION= ${VERSION}.${MINOR_VERSION:S/.//}
CATEGORIES= japanese www ipv6
MASTER_SITES= http://lynx.isc.org/current/ \
http://ftp2.uk.freebsd.org/sites/lynx.isc.org/current/
@@ -15,28 +15,39 @@ DISTNAME= ${PORTNAME}${VERSION}${MINOR_VERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A terminal-based World-Wide Web Client with multi-byte modification
-VERSION= 2.8.6
-MINOR_VERSION= rel.5
+VERSION= 2.8.7
+MINOR_VERSION= rel.1
-CONFLICTS= lynx-2.* ja-lynx-2.8.7.*
+CONFLICTS= lynx-2.* ja-lynx-2.8.8.*
WRKSRC= ${WRKDIR}/${PORTNAME}${VERSION:S/./-/g}
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-screen=ncurses --with-zlib --libdir="${L_LIB}" \
--enable-nsl-fork --enable-ipv6 \
- --enable-cjk --enable-justify-elts --enable-internal-links \
+ --enable-cjk --enable-internal-links \
--with-bzlib
-.if defined(ENABLE_COLOR_STYLE)
-PLIST_SUB+= ENABLE_COLOR_STYLE=""
+.if !defined(WITHOUT_JAPANESE_UTF8)
+USE_ICONV= yes
+CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE} \
+ --enable-japanese-utf8
+.else
+CONFIGURE_ARGS+=--disable-japanese-utf8
+.endif
+
+.if defined(WITH_COLOR_STYLE)
+CONFIGURE_ARGS+=--enable-color-style
+PLIST_SUB+= WITH_COLOR_STYLE=""
.else
CONFIGURE_ARGS+=--disable-color-style
-PLIST_SUB+= ENABLE_COLOR_STYLE="@comment "
+PLIST_SUB+= WITH_COLOR_STYLE="@comment "
.endif
-.if defined(ENABLE_DEFAULT_COLORS)
+.if defined(WITH_DEFAULT_COLORS)
CONFIGURE_ARGS+=--enable-default-colors
+.else
+CONFIGURE_ARGS+=--disable-default-colors
.endif
MAKE_ARGS= helpdir=${L_HELP} docdir=${DOCSDIR}
diff --git a/japanese/lynx/distinfo b/japanese/lynx/distinfo
index 531a04184644..080448bc9947 100644
--- a/japanese/lynx/distinfo
+++ b/japanese/lynx/distinfo
@@ -1,3 +1,3 @@
-MD5 (lynx2.8.6rel.5.tar.bz2) = bd44c57d28fd3e4c9db1cd492d403600
-SHA256 (lynx2.8.6rel.5.tar.bz2) = dc98c1725cc8c081bddc4ae7a6f065ce9bce5a017d626f62fc0c061ec0eb764d
-SIZE (lynx2.8.6rel.5.tar.bz2) = 2290787
+MD5 (lynx2.8.7rel.1.tar.bz2) = 493af4c77ef6761e3f0157cd1be033a0
+SHA256 (lynx2.8.7rel.1.tar.bz2) = 40ec9774deb4a7acf69e1bcfb5e272a3857ccc17e20d923255d64cb5dbe55dad
+SIZE (lynx2.8.7rel.1.tar.bz2) = 2432045
diff --git a/japanese/lynx/files/patch-aa b/japanese/lynx/files/patch-aa
index 03482bd158e1..168bc7660ec6 100644
--- a/japanese/lynx/files/patch-aa
+++ b/japanese/lynx/files/patch-aa
@@ -1,11 +1,12 @@
---- makefile.in.orig Mon Sep 4 08:25:39 2006
-+++ makefile.in Thu Apr 5 17:42:33 2007
-@@ -360,13 +360,9 @@
+--- makefile.in.orig 2008-09-22 07:49:47.000000000 +0900
++++ makefile.in 2010-05-01 11:16:06.000000000 +0900
+@@ -381,14 +381,9 @@
if test "$(COMPRESS_PROG)" != "" ; then \
(cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
fi'
- @echo Updating $(sysconfdir)/lynx.cfg
-- @ECHO_CC@$(SHELL) -c 'if test -f $(SYSCONFDIR)/lynx.cfg ; then \
+- @ECHO_CC@$(SHELL) -c \
+- 'if test -f $(SYSCONFDIR)/lynx.cfg ; then \
- mv $(SYSCONFDIR)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
- else \
- cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
@@ -17,7 +18,7 @@
@ECHO_CC@sed -e '/^HELPFILE:http/s!^!#!' \
-e '/^#HELPFILE:file/s!#!!' \
$(SYSCONFDIR)/lynx.tmp | \
-@@ -374,9 +370,9 @@
+@@ -396,9 +391,9 @@
$(SHELL) $(scripts_dir)/cfg_path.sh lynx_doc $(helpdir) | \
sed -e '/^HELPFILE:file/s!$$!$(COMPRESS_EXT)!' \
-e '/^HELPFILE:file/s!$(COMPRESS_EXT)$(COMPRESS_EXT)$$!$(COMPRESS_EXT)!' \
@@ -27,9 +28,9 @@
-rm -f $(SYSCONFDIR)/lynx.tmp
+ -[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.default $(SYSCONFDIR)/lynx.cfg
- LYHelp.h : help_files.sed LYHelp.hin
+ LYHelp.h : help_files.sed $(srcdir)/LYHelp.hin
@echo Creating $@
-@@ -398,11 +394,11 @@
+@@ -420,10 +415,11 @@
$(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)'
install-cfg : $(SYSCONFDIR)
@@ -37,10 +38,9 @@
+ @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg.default
install-lss : $(SYSCONFDIR)
-- -mv -f $(SYSCONFDIR)/lynx.lss $(SYSCONFDIR)/lynx.oldlss
-- $(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
-+ $(INSTALL_DATA) $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.default
+- @$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
++ @$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.default
+ -[ ! -f $(SYSCONFDIR)/lynx.lss ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.lss.default $(SYSCONFDIR)/lynx.lss
uninstall ::
- @MSG_DIR_MAKE@ cd po && $(MAKE) CC="$(CC)" uninstall
+ @MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) uninstall
diff --git a/japanese/lynx/files/patch-src-GridText.c b/japanese/lynx/files/patch-src-GridText.c
new file mode 100644
index 000000000000..c52a8430dab0
--- /dev/null
+++ b/japanese/lynx/files/patch-src-GridText.c
@@ -0,0 +1,31 @@
+--- src/GridText.c.orig 2009-06-07 09:30:35.000000000 +0900
++++ src/GridText.c 2010-05-01 22:10:44.000000000 +0900
+@@ -10943,9 +10943,28 @@
+ if (check_form_specialchars(val_used) != 0) {
+ /* We should translate back. */
+ StrAllocCopy(copied_val_used, val_used);
++ if (HTCJK == JAPANESE) {
++ if ((0 <= target_cs) &&
++ (strcmp(LYCharSet_UC[target_cs].MIMEname, "euc-jp") == 0)) {
++ TO_EUC(val_used, copied_val_used);
++ success = YES;
++ }
++ else if ((0 <= target_cs) &&
++ (strcmp(LYCharSet_UC[target_cs].MIMEname, "shift_jis") == 0)) {
++ TO_SJIS(val_used, copied_val_used);
++ success = YES;
++ }
++ else {
+ success = LYUCTranslateBackFormData(&copied_val_used,
+ form_ptr->value_cs,
+ target_cs, PlainText);
++ }
++ }
++ else {
++ success = LYUCTranslateBackFormData(&copied_val_used,
++ form_ptr->value_cs,
++ target_cs, PlainText);
++ }
+ CTRACE((tfp, "field \"%s\" %d %s -> %d %s %s\n",
+ NonNull(form_ptr->name),
+ form_ptr->value_cs,
diff --git a/japanese/lynx/pkg-plist b/japanese/lynx/pkg-plist
index af7e8b459245..a7cc3a722bb2 100644
--- a/japanese/lynx/pkg-plist
+++ b/japanese/lynx/pkg-plist
@@ -2,9 +2,9 @@ bin/lynx
@unexec if [ -f %D/etc/lynx.cfg ] && cmp -s %D/etc/lynx.cfg %D/etc/lynx.cfg.default; then rm -f %D/etc/lynx.cfg; fi
etc/lynx.cfg.default
@exec if [ ! -f %D/etc/lynx.cfg ] ; then cp -p %D/%F %B/lynx.cfg; fi
-%%ENABLE_COLOR_STYLE%%@unexec if [ -f %D/etc/lynx.lss ] && cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.default; then rm -f %D/etc/lynx.lss; fi
-%%ENABLE_COLOR_STYLE%%etc/lynx.lss.default
-%%ENABLE_COLOR_STYLE%%@exec if [ ! -f %D/etc/lynx.lss ] ; then cp -p %D/%F %B/lynx.lss; fi
+%%WITH_COLOR_STYLE%%@unexec if [ -f %D/etc/lynx.lss ] && cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.default; then rm -f %D/etc/lynx.lss; fi
+%%WITH_COLOR_STYLE%%etc/lynx.lss.default
+%%WITH_COLOR_STYLE%%@exec if [ ! -f %D/etc/lynx.lss ] ; then cp -p %D/%F %B/lynx.lss; fi
@exec mkdir -p %D/share/lynx_help
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/COPYHEADER
@@ -27,9 +27,11 @@ etc/lynx.cfg.default
%%PORTDOCS%%%%DOCSDIR%%/docs/OS-390.announce
%%PORTDOCS%%%%DOCSDIR%%/docs/README.TRST
%%PORTDOCS%%%%DOCSDIR%%/docs/README.chartrans
+%%PORTDOCS%%%%DOCSDIR%%/docs/README.cookies
%%PORTDOCS%%%%DOCSDIR%%/docs/README.defines
%%PORTDOCS%%%%DOCSDIR%%/docs/README.jp
%%PORTDOCS%%%%DOCSDIR%%/docs/README.metrics
+%%PORTDOCS%%%%DOCSDIR%%/docs/README.options
%%PORTDOCS%%%%DOCSDIR%%/docs/README.rootcerts
%%PORTDOCS%%%%DOCSDIR%%/docs/README.ssl
%%PORTDOCS%%%%DOCSDIR%%/docs/README.sslcerts
@@ -37,32 +39,48 @@ etc/lynx.cfg.default
%%PORTDOCS%%%%DOCSDIR%%/docs/TCPWARE.announce
%%PORTDOCS%%%%DOCSDIR%%/docs/VMSWAIS.announce
%%PORTDOCS%%%%DOCSDIR%%/docs/djgpp.key
+%%PORTDOCS%%%%DOCSDIR%%/docs/index.html
%%PORTDOCS%%%%DOCSDIR%%/docs/pdcurses.key
%%PORTDOCS%%%%DOCSDIR%%/docs/slang.key
%%PORTDOCS%%%%DOCSDIR%%/docs/win-386.announce
%%PORTDOCS%%%%DOCSDIR%%/samples/blue-background.lss
%%PORTDOCS%%%%DOCSDIR%%/samples/bright-blue.lss
%%PORTDOCS%%%%DOCSDIR%%/samples/cernrules.txt
+%%PORTDOCS%%%%DOCSDIR%%/samples/home.htm
+%%PORTDOCS%%%%DOCSDIR%%/samples/index.html
%%PORTDOCS%%%%DOCSDIR%%/samples/installdirs.html
+%%PORTDOCS%%%%DOCSDIR%%/samples/jumps.htm
%%PORTDOCS%%%%DOCSDIR%%/samples/jumpsUnix.html
%%PORTDOCS%%%%DOCSDIR%%/samples/jumpsVMS.html
%%PORTDOCS%%%%DOCSDIR%%/samples/keepviewer
+%%PORTDOCS%%%%DOCSDIR%%/samples/lynx-demo.cfg
%%PORTDOCS%%%%DOCSDIR%%/samples/lynx-keymaps
+%%PORTDOCS%%%%DOCSDIR%%/samples/lynx.bat
%%PORTDOCS%%%%DOCSDIR%%/samples/lynx.com
+%%PORTDOCS%%%%DOCSDIR%%/samples/lynx.ico
%%PORTDOCS%%%%DOCSDIR%%/samples/lynx.lss
+%%PORTDOCS%%%%DOCSDIR%%/samples/lynx_bookmarks.htm
%%PORTDOCS%%%%DOCSDIR%%/samples/lynxdump
%%PORTDOCS%%%%DOCSDIR%%/samples/mailcap
%%PORTDOCS%%%%DOCSDIR%%/samples/mailto-form.pl
+%%PORTDOCS%%%%DOCSDIR%%/samples/midnight.lss
%%PORTDOCS%%%%DOCSDIR%%/samples/mild-colors.lss
%%PORTDOCS%%%%DOCSDIR%%/samples/mime.types
%%PORTDOCS%%%%DOCSDIR%%/samples/oldlynx
+%%PORTDOCS%%%%DOCSDIR%%/samples/opaque.lss
%%PORTDOCS%%%%DOCSDIR%%/test/ALT88592.html
%%PORTDOCS%%%%DOCSDIR%%/test/ISO_LATIN1_test.html
%%PORTDOCS%%%%DOCSDIR%%/test/README.txt
%%PORTDOCS%%%%DOCSDIR%%/test/TestComment.html
+%%PORTDOCS%%%%DOCSDIR%%/test/bad-html.html
%%PORTDOCS%%%%DOCSDIR%%/test/c1.html
+%%PORTDOCS%%%%DOCSDIR%%/test/cp-1252.html
+%%PORTDOCS%%%%DOCSDIR%%/test/cp-1252a.html
+%%PORTDOCS%%%%DOCSDIR%%/test/index.html
%%PORTDOCS%%%%DOCSDIR%%/test/iso-8859-1.html
+%%PORTDOCS%%%%DOCSDIR%%/test/iso-8859-1a.html
%%PORTDOCS%%%%DOCSDIR%%/test/iso-8859-2.html
+%%PORTDOCS%%%%DOCSDIR%%/test/iso-8859-2a.html
%%PORTDOCS%%%%DOCSDIR%%/test/koi8-r.html
%%PORTDOCS%%%%DOCSDIR%%/test/quickbrown.html
%%PORTDOCS%%%%DOCSDIR%%/test/raw8bit.html
@@ -78,6 +96,7 @@ etc/lynx.cfg.default
%%PORTDOCS%%share/lynx_help/COPYING
share/lynx_help/Lynx_users_guide.html
share/lynx_help/about_lynx.html
+share/lynx_help/index.html
share/lynx_help/keystrokes/alt_edit_help.html
share/lynx_help/keystrokes/bashlike_edit_help.html
share/lynx_help/keystrokes/bookmark_help.html
@@ -88,6 +107,7 @@ share/lynx_help/keystrokes/environments.html
share/lynx_help/keystrokes/follow_help.html
share/lynx_help/keystrokes/gopher_types_help.html
share/lynx_help/keystrokes/history_help.html
+share/lynx_help/keystrokes/index.html
share/lynx_help/keystrokes/keystroke_help.html
share/lynx_help/keystrokes/movement_help.html
share/lynx_help/keystrokes/option_help.html