summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-04-21 20:13:20 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-04-21 20:13:20 +0000
commit6c0838f30a6d5c0e161f4ef2f356c38e639846a6 (patch)
treefa6d4001b71ececcbac69b0e77feb7f0b3da95f4 /games-misc
parentVersion bump (diff)
downloadgentoo-2-6c0838f30a6d5c0e161f4ef2f356c38e639846a6.tar.gz
gentoo-2-6c0838f30a6d5c0e161f4ef2f356c38e639846a6.tar.bz2
gentoo-2-6c0838f30a6d5c0e161f4ef2f356c38e639846a6.zip
Add patch snatched from debian for bug #364365
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/cowsay/ChangeLog8
-rw-r--r--games-misc/cowsay/cowsay-3.03-r2.ebuild7
-rw-r--r--games-misc/cowsay/files/cowsay-3.03-utf8.patch17
3 files changed, 27 insertions, 5 deletions
diff --git a/games-misc/cowsay/ChangeLog b/games-misc/cowsay/ChangeLog
index 89ca09a4ee79..b56e7deab737 100644
--- a/games-misc/cowsay/ChangeLog
+++ b/games-misc/cowsay/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-misc/cowsay
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/cowsay/ChangeLog,v 1.35 2010/08/23 23:18:51 mr_bones_ Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/cowsay/ChangeLog,v 1.36 2011/04/21 20:13:20 mr_bones_ Exp $
+
+ 21 Apr 2011; Michael Sterrett <mr_bones_@gentoo.org>
+ cowsay-3.03-r2.ebuild, +files/cowsay-3.03-utf8.patch:
+ Add patch snatched from debian for bug #364365
23 Aug 2010; Michael Sterrett <mr_bones_@gentoo.org>
cowsay-3.03-r2.ebuild, +files/cowsay-3.03-mech.patch:
diff --git a/games-misc/cowsay/cowsay-3.03-r2.ebuild b/games-misc/cowsay/cowsay-3.03-r2.ebuild
index 760a04bf8f2c..ba890fe93b89 100644
--- a/games-misc/cowsay/cowsay-3.03-r2.ebuild
+++ b/games-misc/cowsay/cowsay-3.03-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/cowsay/cowsay-3.03-r2.ebuild,v 1.9 2010/08/23 23:18:51 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/cowsay/cowsay-3.03-r2.ebuild,v 1.10 2011/04/21 20:13:20 mr_bones_ Exp $
EAPI=2
inherit eutils
@@ -28,7 +28,8 @@ src_prepare() {
|| die "sed cowsay.1 failed"
epatch \
"${FILESDIR}/${P}"-tongue.patch \
- "${FILESDIR}/${P}"-mech.patch
+ "${FILESDIR}/${P}"-mech.patch \
+ "${FILESDIR}/${P}"-utf8.patch
}
src_install() {
diff --git a/games-misc/cowsay/files/cowsay-3.03-utf8.patch b/games-misc/cowsay/files/cowsay-3.03-utf8.patch
new file mode 100644
index 000000000000..6aed9c149e3d
--- /dev/null
+++ b/games-misc/cowsay/files/cowsay-3.03-utf8.patch
@@ -0,0 +1,17 @@
+diff -Naur cowsay-3.03.orig//cowsay cowsay-3.03/cowsay
+--- cowsay-3.03.orig//cowsay 2011-04-21 16:36:03.581377699 +0200
++++ cowsay-3.03/cowsay 2011-04-21 16:37:07.968430100 +0200
+@@ -12,6 +12,13 @@
+ use Getopt::Std;
+ use Cwd;
+
++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";