ping.

If you use OpenBSD to write any kind of Japanese text, odds are
you're using this port.

If so, please test and let me know if anything has broken.

Thanks.

-- 
Bryan

On 2020-01-09 23:34:34, Bryan Linton <b...@shoshoni.info> wrote:
> Hello ports@
> 
> I was attempting to make some changes to inputmethods/anthy for
> another purpose when I noticed it was woefully out of date.
> 
> Version 9100h was released in 2009.  Version 0.4 was released six
> months ago (in 2019).
> 
> 
> Notable changes to the port:
> 
> * Old upstream is dead (no updates to website since 2004).  Switch
> to the Debian Anthy team since they have become the new upstream.
> 
> * Update licence marker to show it's now a mix of GPLv3, LGPLv3,
> and LGPLv2.
> 
> * Remove unneeded patch.
> 
> * All internal functions and dictionaries have been switched to
> use UTF-8 by default (instead of EUC-JP).  Users must switch their
> IMs to use the UTF-8 version of Anthy or they will produce only
> gibberish on output.
> 
> 
> Questions:
> 
> * Is setting "DISTFILES = anthy_$V.orig.tar.gz" the best way to cope
> with the naming of the tarball?
> 
> * Does the version changing from 9100h to 0.4 require setting EPOCH?
> It seems to have updated fine on my system, but I don't know the
> details of when EPOCH is needed.
> 
> 
> Concerns:
> 
> * I have not tested the emacs module because I do not use emacs.  I
> have however tested it in Firefox, leafpad, a Japanized xterm, and
> editors/nvi running in said Japanized xterm.  More testing would
> be appreciated though.
> 
> * The IM I use on top of anthy (inputmethods/uim) produced utter
> gibberish until I realized that I needed to switch it from "Anthy"
> to "Anthy (UTF-8).  A note in current.html like the attached
> should probably be added so that users have a smoother upgrade
> path.
> 
> 
> Please let me know if I can make any other improvements to the port.
> 
> Thank you!
> 
> -- 
> Bryan
> 

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/inputmethods/anthy/Makefile,v
> retrieving revision 1.25
> diff -u -r1.25 Makefile
> --- Makefile  12 Jul 2019 20:47:12 -0000      1.25
> +++ Makefile  9 Jan 2020 14:25:29 -0000
> @@ -3,8 +3,9 @@
>  COMMENT-main =       japanese input method
>  COMMENT-emacs =      emacs files for anthy
>  
> -V =          9100h
> +V =          0.4
>  DISTNAME =   anthy-$V
> +DISTFILES =  anthy_$V.orig.tar.gz
>  PKGNAME-main =       anthy-$V
>  PKGNAME-emacs =      emacs-anthy-$V
>  REVISION-main = 2
> @@ -16,14 +17,14 @@
>  
>  CATEGORIES = inputmethods japanese
>  
> -HOMEPAGE =   https://anthy.osdn.jp/
> +HOMEPAGE =   https://wiki.debian.org/Teams/DebianAnthy
>  
> -# GPL, part LGPL
> +# GPLv3, parts are LGPLv3 and/or LGPLv2+
>  PERMIT_PACKAGE =     Yes
>  
>  WANTLIB-main =       c m
>  
> -MASTER_SITES =       ${MASTER_SITE_OSDN_JP:=anthy/37536/}
> +MASTER_SITES =       http://deb.debian.org/debian/pool/main/a/anthy/
>  
>  FAKE_FLAGS = sysconfdir=$(PREFIX)/share/examples/anthy
>  
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/inputmethods/anthy/distinfo,v
> retrieving revision 1.5
> diff -u -r1.5 distinfo
> --- distinfo  18 Jan 2015 03:14:16 -0000      1.5
> +++ distinfo  9 Jan 2020 14:25:29 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (anthy-9100h.tar.gz) = 0lbwdfAYtKPLDRZe1hUf2kun2xYhcn4OtUVptuInVUc=
> -SIZE (anthy-9100h.tar.gz) = 4446148
> +SHA256 (anthy_0.4.orig.tar.gz) = /fWQvupwk/Myex7udgE+STbkxmWefMAd0f3W5vLpyfc=
> +SIZE (anthy_0.4.orig.tar.gz) = 5619024
> Index: patches/patch-src-util_anthy_el
> ===================================================================
> RCS file: patches/patch-src-util_anthy_el
> diff -N patches/patch-src-util_anthy_el
> --- patches/patch-src-util_anthy_el   7 Dec 2013 23:42:04 -0000       1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,12 +0,0 @@
> -$OpenBSD: patch-src-util_anthy_el,v 1.1 2013/12/07 23:42:04 yasuoka Exp $
> ---- src-util/anthy.el.orig   Sat Nov 30 10:40:43 2013
> -+++ src-util/anthy.el        Sat Nov 30 10:40:55 2013
> -@@ -892,7 +892,7 @@
> -      ((event-matches-key-specifier-p event 'backspace) 8)
> -      (t
> -       (char-to-int (event-to-character event)))))
> --    last-command-char))
> -+    last-command-event))
> - 
> - ;;
> - ;;
> Index: pkg/PLIST-main
> ===================================================================
> RCS file: /cvs/ports/inputmethods/anthy/pkg/PLIST-main,v
> retrieving revision 1.5
> diff -u -r1.5 PLIST-main
> --- pkg/PLIST-main    22 May 2015 11:31:16 -0000      1.5
> +++ pkg/PLIST-main    9 Jan 2020 14:25:29 -0000
> @@ -2,18 +2,17 @@
>  @pkgpath inputmethods/anthy
>  @bin bin/anthy-agent
>  @bin bin/anthy-dic-tool
> -@bin bin/anthy-morphological-analyzer
>  include/anthy/
>  include/anthy/anthy.h
>  include/anthy/dicutil.h
>  include/anthy/input.h
> -lib/libanthy.a
> +@static-lib lib/libanthy.a
>  lib/libanthy.la
>  @lib lib/libanthy.so.${LIBanthy_VERSION}
> -lib/libanthydic.a
> +@static-lib lib/libanthydic.a
>  lib/libanthydic.la
>  @lib lib/libanthydic.so.${LIBanthydic_VERSION}
> -lib/libanthyinput.a
> +@static-lib lib/libanthyinput.a
>  lib/libanthyinput.la
>  @lib lib/libanthyinput.so.${LIBanthyinput_VERSION}
>  lib/pkgconfig/anthy.pc

> Index: current.html
> ===================================================================
> RCS file: /cvs/www/faq/current.html,v
> retrieving revision 1.1017
> diff -u -r1.1017 current.html
> --- current.html      31 Dec 2019 02:18:01 -0000      1.1017
> +++ current.html      9 Jan 2020 14:10:22 -0000
> @@ -136,6 +136,18 @@
>  --></pre>
>  
>  
> +<h3 id="r20200110">2020/01/10 - [ports] anthy updated to 0.4</h3>
> +
> +inputmethods/anthy was updated from version 9100h to 0.4.
> +All internal functions and dictionaries have been switched to use UTF-8 by 
> +default.
> +As such, you may need to switch your IM from using "Anthy" to "Anthy 
> (UTF-8)".
> +Users of UIM can run "uim-pref-gtk" and adjust the "Default input
> +method" to use Anthy (UTF-8).
> +Users of other input methods should consult the documentation of
> +their chosen IM on how to accomplish the above.
> +
> +
>  <!--
>       Two blank lines before new sections.
>       New sentences start on new lines.

Reply via email to