commit:     adabf845656b45da7d31665a4078ab3adad502d8
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Wed Sep  7 10:08:21 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 25 01:19:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adabf845

net-irc/ii: sync live with upstream

Upstream removed config.mk recently in commit 36c77931fd89 ("Makefile:
simplify and use system flags by default"), therefore, src_prepare is no
longer needed.

Additional changes:
- EAPI update, 7 -> 8
- doublequote full PREFIX and DOCPREFIX paths

Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/27178
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/ii/ii-9999.ebuild | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/net-irc/ii/ii-9999.ebuild b/net-irc/ii/ii-9999.ebuild
index 265a788ad43b..2241af190778 100644
--- a/net-irc/ii/ii-9999.ebuild
+++ b/net-irc/ii/ii-9999.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
+
 inherit git-r3 toolchain-funcs
 
 DESCRIPTION="A minimalist FIFO and filesystem-based IRC client"
@@ -11,13 +12,6 @@ EGIT_REPO_URI="https://git.suckless.org/ii";
 LICENSE="MIT"
 SLOT="0"
 
-src_prepare() {
-       default
-
-       sed -i -e '/^LDFLAGS/{s:-s::g; s:= :+= :g}' \
-               -e '/^CFLAGS/{s: -Os::g; s:= :+= :g}' config.mk || die
-}
-
 src_compile() {
        emake CC="$(tc-getCC)"
 }
@@ -25,7 +19,7 @@ src_compile() {
 src_install() {
        emake \
                DESTDIR="${D}" \
-               PREFIX="${EPREFIX}"/usr \
-               DOCPREFIX="${EPREFIX}"/usr/share/doc/${PF} \
+               PREFIX="${EPREFIX}/usr" \
+               DOCPREFIX="${EPREFIX}/usr/share/doc/${PF}" \
                install
 }

Reply via email to