svn commit: r420004 - in head/games/cowsay: . files
Carlos J. Puga Medina
cpm at FreeBSD.org
Wed Aug 10 10:11:51 UTC 2016
Author: cpm
Date: Wed Aug 10 10:11:50 2016
New Revision: 420004
URL: https://svnweb.freebsd.org/changeset/ports/420004
Log:
- Partially fix cowsay UTF-8 handling
- Bump PORTREVISION
PR: 211614
Submitted by: Aleksander Alekseev <afiskon at devzen.ru>
Approved by: Nikolai Lifanov (maintainer), junovitch (mentor)
Modified:
head/games/cowsay/Makefile
head/games/cowsay/files/patch-cowsay
Modified: head/games/cowsay/Makefile
==============================================================================
--- head/games/cowsay/Makefile Wed Aug 10 10:02:06 2016 (r420003)
+++ head/games/cowsay/Makefile Wed Aug 10 10:11:50 2016 (r420004)
@@ -4,6 +4,7 @@
PORTNAME= cowsay
PORTVERSION= 3.04
DISTVERSIONPREFIX= cowsay-
+PORTREVISION= 1
CATEGORIES= games
MAINTAINER= lifanov at mail.lifanov.com
Modified: head/games/cowsay/files/patch-cowsay
==============================================================================
--- head/games/cowsay/files/patch-cowsay Wed Aug 10 10:02:06 2016 (r420003)
+++ head/games/cowsay/files/patch-cowsay Wed Aug 10 10:11:50 2016 (r420004)
@@ -2,7 +2,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/03/25 2
--- cowsay.orig 2016-06-25 02:45:15 UTC
+++ cowsay
-@@ -7,7 +7,7 @@
+@@ -7,11 +7,18 @@
##
use Text::Tabs qw(expand);
@@ -11,7 +11,18 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/03/25 2
use File::Basename;
use Getopt::Std;
use Cwd;
-@@ -185,3 +185,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey
+
++if (${^UTF8LOCALE}) {
++ binmode STDIN, ':utf8';
++ binmode STDOUT, ':utf8';
++ require Encode;
++ eval { $_ = Encode::decode_utf8($_,1) } for @ARGV;
++}
++
+ $version = "3.03";
+ $progname = basename($0);
+ $eyes = "oo";
+@@ -185,3 +192,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey
[-l] [-n] [-T tongue] [-W wrapcolumn] [message]
EOF
}
More information about the svn-ports-head
mailing list