commit:     2b81985e046cea8f059daa25c3ab886cdc37519b
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Tue May 10 05:45:25 2016 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Tue May 10 05:45:55 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b81985e

app-i18n/sunpinyin: fix pod2man and install directory.

Bug: 581914 553796

Package-Manager: portage-2.2.28

 app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch | 17 +++++++++++++++++
 app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild  |  5 +++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch 
b/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch
new file mode 100644
index 0000000..54831df
--- /dev/null
+++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch
@@ -0,0 +1,17 @@
+From: Guo Yixuan <[email protected]>
+Bug: https://code.google.com/archive/p/sunpinyin/issues/327
+Gentoo-Bug: 553796
+
+diff --git a/man/SConscript b/man/SConscript
+index f3ebd03..e1551eb 100644
+--- a/man/SConscript
++++ b/man/SConscript
+@@ -1,7 +1,7 @@
+ import os
+ Import('env')
+ 
+-pod2man = Builder(action = 'pod2man < $SOURCE > $TARGET')
++pod2man = Builder(action = 'pod2man $SOURCE $TARGET')
+ env.Append(BUILDERS = {'Man': pod2man})
+ 
+ env.Man('mmseg.1', 'mmseg.pod')

diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild 
b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
index ac30d88..87e36a1 100644
--- a/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,6 +24,7 @@ DEPEND="${RDEPEND}
 PDEPEND="app-i18n/sunpinyin-data"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.0.4-pod2man.patch
        epatch_user
 }
 
@@ -40,7 +41,7 @@ src_compile() {
 }
 
 src_install() {
-       escons --install-sandbox="${ED}" install
+       escons --install-sandbox="${D}" install
        rm -rf "${D}"/usr/share/doc/${PN} || die
        dodoc doc/{README,SLM-inst.mk,SLM-train.mk}
 }

Reply via email to