-diff --git a/SConstruct b/SConstruct
-index 68cd365..9bb6ebc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -180,12 +180,6 @@ libdir = env['LIBDIR']
---- sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h.old 2016-09-20 02:54:15.046257131 -0400
-+++ sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h 2016-09-20 02:55:48.041124978 -0400
+https://bugs.gentoo.org/553796
+
+Author: Peter Levine <plevine457@gmail.com>
+
+--- a/src/slm/tslmpack/common.h
++++ b/src/slm/tslmpack/common.h
@@ -53,10 +53,10 @@
typedef std::map<float, int> RealIndexMap; // map real values to their indices
typedef std::map<std::string, unsigned int> TLexicon; // map word to wid
-From: Guo Yixuan <culu.gyx@gmail.com>
-Bug: https://code.google.com/archive/p/sunpinyin/issues/327
-Gentoo-Bug: 553796
+https://bugs.debian.org/790287
+https://code.google.com/p/sunpinyin/issues/detail?id=327
+
+Author: Guo Yixuan <culu.gyx@gmail.com>
-diff --git a/man/SConscript b/man/SConscript
-index f3ebd03..e1551eb 100644
--- a/man/SConscript
+++ b/man/SConscript
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PDEPEND="app-i18n/sunpinyin-data"
src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.0.4-pod2man.patch
- epatch "${FILESDIR}"/${P}-gcc6-use-float.patch
+ epatch "${FILESDIR}"/${P/_pre*}-pod2man.patch
+ epatch "${FILESDIR}"/${P/_pre*}-gcc-6.patch
epatch_user
}