Hi,

On Thu, 13 Apr 2017 01:59:26 -0600
"Anthony J. Bentley" <anth...@anjbe.name> wrote:
> The japanese/ category is long overdue for cleanup. Some of the ports in
> there are ancient and haven't been touched since being imported a long
> long time ago.
> 
> I'd like to start with jvim and jless.
> 
> jvim is an unmaintained patchset on top of a 21-year-old version of vim.
> In the intervening years, vim has gained its own support for some
> Japanese encodings via the "fileencodings" setting.
> 
> Even better, you can convert Japanese files to UTF-8 with nkf or iconv.
> (nkf autodetects most Japanese encodings; with iconv you have to
> specify input encoding manually.)
> 
> $ nkf -w some_shift_jis_file.txt   > some_utf8_file1.txt
> $ nkf -w some_euc_jp_file.txt      > some_utf8_file2.txt
> $ nkf -w some_iso_2022_jp_file.txt > some_utf8_file3.txt
> 
> jless is an unmaintained patchset on top of a 20-year-old version of
> less. In the intervening years, less has gained its own support for
> UTF-8. Piping files through nkf and then to /usr/bin/less should provide
> equivalent functionality.
> 
> We can't keep pushing Japanese users onto ancient, unmaintained
> software, even if that's the current status quo.
> 
> ok?

ok yasuoka for deleting jvim.
  
For ja-less I'd like to update ja-less to the version maintained by
Hiroki Sato.  I suppose ja-less is relatively popular in japanese
category.

He created a repo on github and maintaining the version which has all
related patches for the FreeBSD ports.  So I suppose we can maintain
it by this repo easier than before.

ok?

diff --git a/japanese/less/Makefile b/japanese/less/Makefile
index 6bdcee0bff8..7a26ae45ad8 100644
--- a/japanese/less/Makefile
+++ b/japanese/less/Makefile
@@ -1,30 +1,33 @@
 # $OpenBSD: Makefile,v 1.25 2014/11/27 12:26:49 naddy Exp $
 
-COMMENT=       less + zcat + ISO-2022 - a pager similar to more and pg
+COMMENT=       Enhanced less with iso-2022-jp and UTF-8 encodings support
 
-DISTNAME=      less-332
-PKGNAME=       ja-less-3.32pl2.48
-REVISION=      0
-CATEGORIES=    japanese
-MASTER_SITES=  ${MASTER_SITE_GNU:=less/}
-HOMEPAGE=      http://www.pobox.com/~jam/less/
+V=             382.262.03.01
 
-MASTER_SITES0= ftp://ftp.big.or.jp/pub/usr2/jam/less/
-PATCHFILES=    less-332-iso242.patch.gz:0 \
-               less-332-iso242-243.patch.gz:0 \
-               less-332-iso243-244.patch.gz:0 \
-               less-332-iso244-245.patch.gz:0 \
-               less-332-iso245-247.patch.gz:0 \
-               less-332-iso247-248.patch.gz:0
+GH_ACCOUNT=    hrs-allbsd
+GH_PROJECT=    less
+GH_TAGNAME=    v${V}
 
-PATCH_DIST_STRIP=      -p1
+PKGNAME=       ja-less-${V}
+CATEGORIES=    japanese
+HOMEPAGE=      
http://web.archive.org/web/20070220213232/http://www25.big.or.jp/~jam/less
 
-MAINTAINER=Marc Espie <es...@openbsd.org>
+MAINTAINER =   YASUOKA Masahiko <yasu...@yasuoka.net>
 
-#              BSD
+#              GPLv2
 PERMIT_PACKAGE_CDROM=  Yes
 WANTLIB=               c ncurses
 
 CONFIGURE_STYLE=       gnu dest
+CONFIGURE_ARGS=                --with-cs-regex
+
+DOCS=          README.iso README.iso.jp README.lesw.euc README.regex \
+               README.regex.jp README.ext.jp
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ja-less
+.for _f in ${DOCS}
+       ${INSTALL_DATA} ${WRKSRC}/${_f} ${PREFIX}/share/doc/ja-less
+.endfor
 
 .include <bsd.port.mk>
diff --git a/japanese/less/distinfo b/japanese/less/distinfo
index 854ad683b7e..6554f7b66d4 100644
--- a/japanese/less/distinfo
+++ b/japanese/less/distinfo
@@ -1,14 +1,2 @@
-SHA256 (less-332-iso242-243.patch.gz) = 
BqUDmpt62faVbPStHXTYus2mPwHflvClS/DeZPlQsvo=
-SHA256 (less-332-iso242.patch.gz) = 
GfQ3nZ6DlSMn5UTDqN2C3DMHrxptIoMzEbl8u228x9M=
-SHA256 (less-332-iso243-244.patch.gz) = 
d7nga8cvfVBb+IuXkEe5Jo3NGmECIq5R7MfpvO0Ga1s=
-SHA256 (less-332-iso244-245.patch.gz) = 
8TCGC0JYfIXBZcC/BC1JESrj7dWWoEvbMmy7FrP6scQ=
-SHA256 (less-332-iso245-247.patch.gz) = 
B9oLi4VaBp34weAa3QR0YJcYuntd2Uq/4/v10yMnKhI=
-SHA256 (less-332-iso247-248.patch.gz) = 
4JYiP5vI/Bh+s8XtrT19pZdIcDEKzdur/nrR+lkPYpM=
-SHA256 (less-332.tar.gz) = xrPeY8Ku1E4OTUD8tG3PaBL17PNOOGTr9PetB3xMooA=
-SIZE (less-332-iso242-243.patch.gz) = 10128
-SIZE (less-332-iso242.patch.gz) = 61306
-SIZE (less-332-iso243-244.patch.gz) = 3212
-SIZE (less-332-iso244-245.patch.gz) = 490
-SIZE (less-332-iso245-247.patch.gz) = 4597
-SIZE (less-332-iso247-248.patch.gz) = 3806
-SIZE (less-332.tar.gz) = 204926
+SHA256 (less-382.262.03.01.tar.gz) = 
sZxWL8QyfP54O+B0zKAwJS3THsIsKYKaq8EDhJtqyko=
+SIZE (less-382.262.03.01.tar.gz) = 471513
diff --git a/japanese/less/patches/patch-Makefile_in 
b/japanese/less/patches/patch-Makefile_in
deleted file mode 100644
index 9f2cf56861b..00000000000
--- a/japanese/less/patches/patch-Makefile_in
+++ /dev/null
@@ -1,17 +0,0 @@
-$OpenBSD: patch-Makefile_in,v 1.1 2007/10/26 21:42:18 ajacoutot Exp $
---- Makefile.in.orig   Fri Oct 26 23:39:07 2007
-+++ Makefile.in        Fri Oct 26 23:39:08 2007
-@@ -22,11 +22,11 @@ exec_prefix = @exec_prefix@
- 
- # Where the installed binary goes.
- bindir = ${exec_prefix}/bin
--binprefix = 
-+binprefix = j
- 
- mandir = ${prefix}/man/man${manext}
- manext = 1
--manprefix = 
-+manprefix = j
- 
- #### End of system configuration section. ####
- 
diff --git a/japanese/less/pkg/DESCR b/japanese/less/pkg/DESCR
index 7b0a8856edd..152f11ecff0 100644
--- a/japanese/less/pkg/DESCR
+++ b/japanese/less/pkg/DESCR
@@ -1,9 +1,9 @@
-       Less  is  a  program similar to more (1), but which allows
-       backward movement in the file as well as forward movement.
-       Also,  less  does  not  have to read the entire input file
-       before starting, so with large input files  it  starts  up
-       faster  than  text editors like vi (1).
+Less is a program similar to more(1), but which allows backward
+movement in the file as well as forward movement.  Also, less does not
+have to read the entire input file before starting, so with large
+input files it starts up faster than text editors like vi(1).
 
 This enhanced less supports ISO 2022 code extension techniques and
 Japanese codes(EUC Japanese, SJIS) and compressed(or gzipped) file
-viewing. The author of this patch is j...@pobox.com.
+viewing. The author of this patch is j...@pobox.com and UTF-8 support
+patch is written by bogytech.
diff --git a/japanese/less/pkg/PLIST b/japanese/less/pkg/PLIST
index 50b8b41eecb..771a534f0a9 100644
--- a/japanese/less/pkg/PLIST
+++ b/japanese/less/pkg/PLIST
@@ -1,6 +1,13 @@
 @comment $OpenBSD: PLIST,v 1.3 2004/09/15 00:56:29 espie Exp $
-bin/jless
-bin/jlessecho
-bin/jlesskey
+@bin bin/jless
+@bin bin/jlessecho
+@bin bin/jlesskey
 @man man/man1/jless.1
 @man man/man1/jlesskey.1
+share/doc/ja-less/
+share/doc/ja-less/README.ext.jp
+share/doc/ja-less/README.iso
+share/doc/ja-less/README.iso.jp
+share/doc/ja-less/README.lesw.euc
+share/doc/ja-less/README.regex
+share/doc/ja-less/README.regex.jp

Reply via email to