media-gfx/pngnq: update EAPI 7 -> 8

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2022-03-20 21:49:50 +01:00
parent 9cb35cd671
commit 809585418c
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- a/src/rwpng.c
+++ b/src/rwpng.c
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <zlib.h>
#include "png.h" /* libpng header */

View File

@@ -0,0 +1,29 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Pngnq is a tool for quantizing PNG images in RGBA format"
HOMEPAGE="http://pngnq.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="BSD pngnq rwpng"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="media-libs/libpng:0="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-1.0-libpng14.patch
"${FILESDIR}"/${PN}-1.0-libpng15.patch
"${FILESDIR}"/${PN}-1.0-Wimplicit-function-declaration.patch
)
src_prepare() {
default
eautoreconf
}