Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/kcc/files/, app-i18n/kcc/
Date: Sun, 18 Aug 2019 13:07:11
Message-Id: 1566132807.4b18bb8e01438a52147cb94e94085bf753fdefd3.soap@gentoo
1 commit: 4b18bb8e01438a52147cb94e94085bf753fdefd3
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 18 12:53:27 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 18 12:53:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b18bb8e
7
8 app-i18n/kcc: Port to EAPI 7
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 app-i18n/kcc/Manifest | 2 +-
14 app-i18n/kcc/files/kcc-1.0-fix-build-system.patch | 24 +++++++++++++++++++
15 app-i18n/kcc/kcc-1.0.ebuild | 29 +++++++++++------------
16 3 files changed, 39 insertions(+), 16 deletions(-)
17
18 diff --git a/app-i18n/kcc/Manifest b/app-i18n/kcc/Manifest
19 index e18b6624212..5bd0c964e30 100644
20 --- a/app-i18n/kcc/Manifest
21 +++ b/app-i18n/kcc/Manifest
22 @@ -1 +1 @@
23 -DIST kcc.tar.gz 18869 BLAKE2B 122e6e749a0cc6a63244d32d735a23ea3bdc6ce81e90674d4aa8c6460b57c631e504490454710601a3e057c413d5579495533320f37820d4c3afd9053325c1dc SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145
24 +DIST kcc-1.0.tar.gz 18869 BLAKE2B 122e6e749a0cc6a63244d32d735a23ea3bdc6ce81e90674d4aa8c6460b57c631e504490454710601a3e057c413d5579495533320f37820d4c3afd9053325c1dc SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145
25
26 diff --git a/app-i18n/kcc/files/kcc-1.0-fix-build-system.patch b/app-i18n/kcc/files/kcc-1.0-fix-build-system.patch
27 new file mode 100644
28 index 00000000000..7818215d62f
29 --- /dev/null
30 +++ b/app-i18n/kcc/files/kcc-1.0-fix-build-system.patch
31 @@ -0,0 +1,24 @@
32 +--- a/Makefile
33 ++++ b/Makefile
34 +@@ -10,11 +10,9 @@
35 + BINPATH = /usr/local/bin
36 + MANPATH = /usr/local/man
37 + JMANDIR = japanese
38 +- CFLAGS = -O
39 +
40 + SHELL = /bin/sh
41 + CP = cp
42 +- MAKE = make
43 + INSTALL = install
44 +
45 + CMDS = kcc
46 +@@ -23,9 +21,6 @@
47 +
48 + all: kcc
49 +
50 +-kcc: kcc.o
51 +- $(CC) $(CFLAGS) -o kcc kcc.o
52 +-
53 + install: $(BINPATH)/kcc
54 + @echo "\`make install' done."
55 + @echo "Run \`make install.man' to install a manual."
56
57 diff --git a/app-i18n/kcc/kcc-1.0.ebuild b/app-i18n/kcc/kcc-1.0.ebuild
58 index bcb22071394..20ee1ee5735 100644
59 --- a/app-i18n/kcc/kcc-1.0.ebuild
60 +++ b/app-i18n/kcc/kcc-1.0.ebuild
61 @@ -1,34 +1,33 @@
62 -# Copyright 1999-2012 Gentoo Foundation
63 +# Copyright 1999-2019 Gentoo Authors
64 # Distributed under the terms of the GNU General Public License v2
65
66 -EAPI="4"
67 +EAPI=7
68
69 -inherit eutils toolchain-funcs
70 +inherit toolchain-funcs
71
72 DESCRIPTION="A Kanji code converter"
73 HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/"
74 -SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
75 +SRC_URI="mirror://gentoo/${PN}.tar.gz -> ${P}.tar.gz"
76
77 LICENSE="GPL-2"
78 SLOT="0"
79 KEYWORDS="~amd64 x86"
80 -IUSE=""
81
82 S="${WORKDIR}/${PN}"
83 -
84 -src_prepare() {
85 - epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff"
86 - epatch "${FILESDIR}/${PN}-exit.diff"
87 - sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile
88 -}
89 -
90 -src_compile() {
91 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
92 +PATCHES=(
93 + "${FILESDIR}"/${PN}-gcc3-gentoo.diff
94 + "${FILESDIR}"/${PN}-exit.diff
95 + "${FILESDIR}"/${PN}-1.0-fix-build-system.patch
96 +)
97 +
98 +src_configure() {
99 + tc-export CC
100 }
101
102 src_install() {
103 dobin kcc
104 - dodoc README
105 + einstalldocs
106 +
107 cp -f kcc.jman kcc.1 || die
108 doman -i18n=ja kcc.1
109 }