---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
@@ -21,7 +21,6 @@
dnl Checks for programs.
AC_PROG_CC
dnl ^^^ set it to non-empty, so AC_PROG_CXX won't include `-g'
dnl AC_PROG_CXX
dnl AC_PTS_PROG_CFLAGS(fs, -fsigned-char)
---- do.sh
-+++ do.sh
+--- a/do.sh
++++ b/do.sh
@@ -35,8 +35,8 @@
if [ x"$CMD" != x ]; then echo "Executing: $CMD"; fi
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
-inherit autotools eutils flag-o-matic
+EAPI=7
+
+inherit autotools
DESCRIPTION="tif22pnm and png22pnm command-line converters"
HOMEPAGE="http://pts.szit.bme.hu/ https://code.google.com/p/sam2p/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-RDEPEND=">=media-libs/libpng-1.2:0
- media-libs/tiff:0"
+RDEPEND="
+ media-libs/libpng:0=
+ media-libs/tiff:0="
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-math.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-gentoo.patch
- epatch "${FILESDIR}"/${P}-math.patch
+ default
+ mv configure.{in,ac} || die
eautoreconf
}
src_install() {
dobin png22pnm tif22pnm
- dodoc README
+ einstalldocs
}