summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-09-16 13:40:27 +0200
committerDavid Seifert <soap@gentoo.org>2020-09-16 13:40:27 +0200
commit5b66064e1089456501c8c8c64769e1930eeeea1d (patch)
tree698d743ac10ad4621ad9fd67ee4e720785291082 /app-i18n
parentapp-i18n/bidiv: Port to EAPI 7 (diff)
downloadgentoo-5b66064e1089456501c8c8c64769e1930eeeea1d.tar.gz
gentoo-5b66064e1089456501c8c8c64769e1930eeeea1d.tar.bz2
gentoo-5b66064e1089456501c8c8c64769e1930eeeea1d.zip
app-i18n/qkc: Port to EAPI 7
Closes: https://bugs.gentoo.org/742038 Package-Manager: Portage-3.0.7, Repoman-3.0.1 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/qkc/files/qkc-1.00-makefile.patch22
-rw-r--r--app-i18n/qkc/qkc-1.00.ebuild14
2 files changed, 28 insertions, 8 deletions
diff --git a/app-i18n/qkc/files/qkc-1.00-makefile.patch b/app-i18n/qkc/files/qkc-1.00-makefile.patch
new file mode 100644
index 000000000000..ff9d1c97b920
--- /dev/null
+++ b/app-i18n/qkc/files/qkc-1.00-makefile.patch
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,18 +1,6 @@
+ # Makefile for qkc
+
+-CC = cc
+-BIND = $(CC)
+-CFLAGS = -O
+-LFLAGS = -o qkc $(CFLAGS)
+-OBJ = qkc.o qkcopt.o qkchelp.o qkcconv.o qkctbl.o
+-
+-.c.o:
+- $(CC) $(CFLAGS) -c $<
+-
+-qkc: $(OBJ)
+- $(BIND) $(LFLAGS) $(OBJ)
+-
+-$(OBJ): qkc.h
++qkc: qkcopt.o qkchelp.o qkcconv.o qkctbl.o
+
+ clean:
+ rm -f *.o qkc
diff --git a/app-i18n/qkc/qkc-1.00.ebuild b/app-i18n/qkc/qkc-1.00.ebuild
index b9877517dd47..164c0c12afa7 100644
--- a/app-i18n/qkc/qkc-1.00.ebuild
+++ b/app-i18n/qkc/qkc-1.00.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
+EAPI=7
inherit toolchain-funcs
@@ -14,17 +14,15 @@ SRC_URI="http://hp.vector.co.jp/authors/VA000501/${MY_P}.zip"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
-IUSE=""
-DEPEND="app-arch/unzip"
+BDEPEND="app-arch/unzip"
+
S="${WORKDIR}"
-src_prepare() {
- sed -i "/^LFLAGS/s:$: \${LDFLAGS}:" Makefile
-}
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
-src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+src_configure() {
+ tc-export CC
}
src_install() {