From fc7d6b5e112f6280d86da79e6f83e2bffd5c0c05 Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Tue, 15 Dec 2015 22:18:24 -0800 Subject: [PATCH] Import japanese/lynx-current version 2.8.8.d3_2 --- japanese/lynx-current/Makefile | 60 +++++++++ japanese/lynx-current/distinfo | 2 + japanese/lynx-current/files/patch-makefile.in | 34 +++++ .../lynx-current/files/patch-src-GridText.c | 31 +++++ japanese/lynx-current/pkg-descr | 8 ++ japanese/lynx-current/pkg-plist | 117 ++++++++++++++++++ 6 files changed, 252 insertions(+) create mode 100644 japanese/lynx-current/Makefile create mode 100644 japanese/lynx-current/distinfo create mode 100644 japanese/lynx-current/files/patch-makefile.in create mode 100644 japanese/lynx-current/files/patch-src-GridText.c create mode 100644 japanese/lynx-current/pkg-descr create mode 100644 japanese/lynx-current/pkg-plist diff --git a/japanese/lynx-current/Makefile b/japanese/lynx-current/Makefile new file mode 100644 index 00000000000..995cd7c613f --- /dev/null +++ b/japanese/lynx-current/Makefile @@ -0,0 +1,60 @@ +# Created by: Shigeyuki FUKUSHIMA +# $FreeBSD$ + +PORTNAME= lynx +DISTVERSION= ${VERSION}.${MINOR_VERSION:S/.//} +PORTREVISION= 2 +CATEGORIES= japanese www ipv6 +MASTER_SITES= http://invisible-mirror.net/archives/lynx/tarballs/ +DISTNAME= ${PORTNAME}${VERSION}${MINOR_VERSION} +PKGNAMESUFFIX= -current + +MAINTAINER= CQG00620@nifty.ne.jp +COMMENT= Terminal WWW client with multi-byte modification (development version) + +VERSION= 2.8.8 +MINOR_VERSION= dev.3 + +CONFLICTS= lynx-2.* ja-lynx-2.8.7.* + +WRKSRC= ${WRKDIR}/${PORTNAME}${VERSION:S/./-/g} +USES= cpe shebangfix tar:bzip2 +SHEBANG_FILES= samples/mailto-form.pl +MAKE_JOBS_UNSAFE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-screen=ncurses --with-zlib --libdir="${L_LIB}" \ + --enable-nsl-fork --enable-ipv6 \ + --enable-cjk --enable-internal-links \ + --with-bzlib +MAKE_ARGS= helpdir=${L_HELP} docdir=${DOCSDIR} +MAKEFILE= makefile +INSTALL_TARGET= install-full + +L_LIB= ${PREFIX}/etc +L_HELP= ${PREFIX}/share/lynx_help + +OPTIONS_DEFINE= COLOR_STYLE DEFAULT_COLORS DOCS EXPERIMENTAL_OPTS JAPANESE_UTF8 +OPTIONS_DEFAULT=EXPERIMENTAL_OPTS JAPANESE_UTF8 +OPTIONS_SUB= yes + +COLOR_STYLE_DESC= Color style (ncurses/ncurses) +COLOR_STYLE_CONFIGURE_ENABLE= color-style + +DEFAULT_COLORS_DESC= Default colors (ncurses/slang) +DEFAULT_COLORS_CONFIGURE_ENABLE=default-colors + +EXPERIMENTAL_OPTS_DESC= Experimental options +EXPERIMENTAL_OPTS_CONFIGURE_ON= --enable-addrlist-page \ + --enable-charset-choice + +JAPANESE_UTF8_DESC= Experimental Japanese UTF-8 logic +JAPANESE_UTF8_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} \ + --enable-japanese-utf8 +JAPANESE_UTF8_CONFIGURE_OFF= --disable-japanese-utf8 +JAPANESE_UTF8_USES= iconv + +post-patch: + @${REINPLACE_CMD} -e 's|-lssl -lcrypto|-L${OPENSSLLIB} &|g' \ + ${WRKSRC}/configure + +.include diff --git a/japanese/lynx-current/distinfo b/japanese/lynx-current/distinfo new file mode 100644 index 00000000000..d1f5732fdb3 --- /dev/null +++ b/japanese/lynx-current/distinfo @@ -0,0 +1,2 @@ +SHA256 (lynx2.8.8dev.3.tar.bz2) = 9f9f114f9732d90c8b7627e1a96a49bf335212cd89d8f559be9c3abd4bd305dd +SIZE (lynx2.8.8dev.3.tar.bz2) = 2450931 diff --git a/japanese/lynx-current/files/patch-makefile.in b/japanese/lynx-current/files/patch-makefile.in new file mode 100644 index 00000000000..4e612866bdc --- /dev/null +++ b/japanese/lynx-current/files/patch-makefile.in @@ -0,0 +1,34 @@ +--- makefile.in.orig 2014-05-18 17:40:49.321601176 +0200 ++++ makefile.in 2014-05-18 17:42:33.446626842 +0200 +@@ -320,7 +320,7 @@ + fi' + $(SHELL) -c 'for name in COPYING COPYHEADER; do \ + cd $(HELPDIR) && rm -f $$name ;\ +- cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\ ++ cd $(HELPDIR) && ( $(LN_S) $(docdir)/$$name . || cp $(DOCDIR)/$$name . );\ + done' + -$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac' + +@@ -399,8 +399,8 @@ + $(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)!' \ +- >$(SYSCONFDIR)/lynx.cfg +- chmod 644 $(SYSCONFDIR)/lynx.cfg ++ >$(SYSCONFDIR)/lynx.cfg.sample ++ chmod 644 $(SYSCONFDIR)/lynx.cfg.sample + -rm -f $(SYSCONFDIR)/lynx.tmp + + LYHelp.h : help_files.sed $(srcdir)/LYHelp.hin +@@ -423,10 +423,9 @@ + $(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)' + + install-cfg : $(SYSCONFDIR) +- @$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg + + install-lss : $(SYSCONFDIR) +- @$(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.sample + + uninstall :: + @MSG_DIR_MAKE@ cd $(PO_DIR) && $(MAKE_RECUR) uninstall diff --git a/japanese/lynx-current/files/patch-src-GridText.c b/japanese/lynx-current/files/patch-src-GridText.c new file mode 100644 index 00000000000..b2d72a4a7bc --- /dev/null +++ b/japanese/lynx-current/files/patch-src-GridText.c @@ -0,0 +1,31 @@ +--- src/GridText.c.orig 2010-04-26 08:44:30.000000000 +0900 ++++ src/GridText.c 2010-05-24 18:15:47.000000000 +0900 +@@ -11128,9 +11128,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-current/pkg-descr b/japanese/lynx-current/pkg-descr new file mode 100644 index 00000000000..68b5a9bfd2f --- /dev/null +++ b/japanese/lynx-current/pkg-descr @@ -0,0 +1,8 @@ +lynx is a program which allows a user to access World-Wide Web servers +and other information servers. It uses only ascii representation so +that it can be used from ascii-terminals and dial-in lines. + +This port installs the development version of lynx with some experimental +configulation options. + +WWW: http://lynx.invisible-island.net/ diff --git a/japanese/lynx-current/pkg-plist b/japanese/lynx-current/pkg-plist new file mode 100644 index 00000000000..ce610c9512f --- /dev/null +++ b/japanese/lynx-current/pkg-plist @@ -0,0 +1,117 @@ +bin/lynx +@sample etc/lynx.cfg.sample +%%COLOR_STYLE%%@sample etc/lynx.lss.sample +man/man1/lynx.1.gz +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/COPYHEADER +%%PORTDOCS%%%%DOCSDIR%%/COPYHEADER.asc +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/COPYING.asc +%%PORTDOCS%%%%DOCSDIR%%/PROBLEMS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.3 +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.4 +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.5 +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.6 +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.7 +%%PORTDOCS%%%%DOCSDIR%%/docs/CHANGES2.8 +%%PORTDOCS%%%%DOCSDIR%%/docs/CRAWL.announce +%%PORTDOCS%%%%DOCSDIR%%/docs/FM.announce +%%PORTDOCS%%%%DOCSDIR%%/docs/IBMPC-charsets.announce +%%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.release +%%PORTDOCS%%%%DOCSDIR%%/docs/README.rootcerts +%%PORTDOCS%%%%DOCSDIR%%/docs/README.ssl +%%PORTDOCS%%%%DOCSDIR%%/docs/README.sslcerts +%%PORTDOCS%%%%DOCSDIR%%/docs/SOCKETSHR.announce +%%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 +%%PORTDOCS%%%%DOCSDIR%%/test/sgml.html +%%PORTDOCS%%%%DOCSDIR%%/test/spaces.html +%%PORTDOCS%%%%DOCSDIR%%/test/special_urls.html +%%PORTDOCS%%%%DOCSDIR%%/test/tabtest.html +%%PORTDOCS%%%%DOCSDIR%%/test/tags.html +%%PORTDOCS%%%%DOCSDIR%%/test/test-styles.html +%%PORTDOCS%%%%DOCSDIR%%/test/unicode.html +%%PORTDOCS%%%%DOCSDIR%%/test/utf-8-demo.html +%%PORTDOCS%%share/lynx_help/COPYHEADER +%%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 +share/lynx_help/keystrokes/cookie_help.html +share/lynx_help/keystrokes/dired_help.html +share/lynx_help/keystrokes/edit_help.html +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 +share/lynx_help/keystrokes/other_help.html +share/lynx_help/keystrokes/print_help.html +share/lynx_help/keystrokes/scrolling_help.html +share/lynx_help/keystrokes/test_display.html +share/lynx_help/keystrokes/visited_help.html +share/lynx_help/keystrokes/xterm_help.html +share/lynx_help/lynx-dev.html +share/lynx_help/lynx_help_main.html +share/lynx_help/lynx_url_support.html -- 2.41.0