diff options
author | Sam James <sam@gentoo.org> | 2021-04-19 17:42:13 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-19 20:11:57 +0100 |
commit | 4337dd163c56306eb93d84d12f02cc7769a76470 (patch) | |
tree | 229bc589221ff7b046766af3ae23fb650548a959 | |
parent | media-gfx/pngnq: port to EAPI 7 (diff) | |
download | gentoo-4337dd163c56306eb93d84d12f02cc7769a76470.tar.gz gentoo-4337dd163c56306eb93d84d12f02cc7769a76470.tar.bz2 gentoo-4337dd163c56306eb93d84d12f02cc7769a76470.zip |
media-gfx/png2ico: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch | 4 | ||||
-rw-r--r-- | media-gfx/png2ico/png2ico-2002.12.08.ebuild | 19 |
2 files changed, 14 insertions, 9 deletions
diff --git a/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch b/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch index 96720bebd18f..195ff1a47749 100644 --- a/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch +++ b/media-gfx/png2ico/files/png2ico-2002.12.08-memset_and_strcmp.patch @@ -1,8 +1,8 @@ png2ico.cpp:133:31: error: ‘memset’ was not declared in this scope png2ico.cpp:443:34: error: ‘strcmp’ was not declared in this scope ---- png2ico.cpp -+++ png2ico.cpp +--- a/png2ico.cpp ++++ b/png2ico.cpp @@ -33,6 +33,7 @@ diff --git a/media-gfx/png2ico/png2ico-2002.12.08.ebuild b/media-gfx/png2ico/png2ico-2002.12.08.ebuild index 8392b54d6800..1a732423a74a 100644 --- a/media-gfx/png2ico/png2ico-2002.12.08.ebuild +++ b/media-gfx/png2ico/png2ico-2002.12.08.ebuild @@ -1,26 +1,31 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit epatch toolchain-funcs +EAPI=7 + +inherit toolchain-funcs DESCRIPTION="PNG to icon converter" HOMEPAGE="http://winterdrache.de/freeware/png2ico/index.html" SRC_URI="http://winterdrache.de/freeware/${PN}/data/${PN}-src-${PV/./-}.tar.gz" +S="${WORKDIR}"/${PN} LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RDEPEND="media-libs/libpng:0= - sys-libs/zlib:=" +RDEPEND=" + media-libs/libpng:0= + sys-libs/zlib:= +" DEPEND="${RDEPEND}" -S=${WORKDIR}/${PN} +PATCHES=( + "${FILESDIR}"/${P}-memset_and_strcmp.patch +) src_prepare() { - epatch "${FILESDIR}"/${P}-memset_and_strcmp.patch + default sed -i \ -e 's:CPPFLAGS=-W -Wall -O2:CXXFLAGS+=-W -Wall:' \ |