app-i18n/sunpinyin: fix pod2man and install directory.
authorBenda Xu <heroxbd@gentoo.org>
Tue, 10 May 2016 05:45:25 +0000 (14:45 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Tue, 10 May 2016 05:45:55 +0000 (14:45 +0900)
Bug: 581914 553796

Package-Manager: portage-2.2.28

app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch [new file with mode: 0644]
app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild

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 (file)
index 0000000..54831df
--- /dev/null
@@ -0,0 +1,17 @@
+From: Guo Yixuan <culu.gyx@gmail.com>
+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')
index ac30d8816254b2afd1215b2a42aff0211e2dfa3d..87e36a1e3ec3083a5e63b556b368c1f3abea9fd4 100644 (file)
@@ -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}
 }