summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-12-13 16:07:19 +0100
committerDavid Seifert <soap@gentoo.org>2019-12-13 16:07:19 +0100
commitbb16b60fe5fe0a4ae2d0bf225b16634b1c5755f7 (patch)
tree5afacd3d1cc6ccbaa256f027a0c86249f22ee31a
parentmedia-gfx/pngtoico: Port to EAPI 7 (diff)
downloadgentoo-bb16b60fe5fe0a4ae2d0bf225b16634b1c5755f7.tar.gz
gentoo-bb16b60fe5fe0a4ae2d0bf225b16634b1c5755f7.tar.bz2
gentoo-bb16b60fe5fe0a4ae2d0bf225b16634b1c5755f7.zip
media-gfx/pngtools: Port to EAPI 7
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--media-gfx/pngtools/pngtools-0.4-r2.ebuild33
1 files changed, 18 insertions, 15 deletions
diff --git a/media-gfx/pngtools/pngtools-0.4-r2.ebuild b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
index b561e2cde5e5..18ba166788ad 100644
--- a/media-gfx/pngtools/pngtools-0.4-r2.ebuild
+++ b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
@@ -1,34 +1,37 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=4
-inherit autotools eutils
+EAPI=7
-MY_PV=${PV/./_}
+inherit autotools
DESCRIPTION="A series of tools for the PNG image format"
HOMEPAGE="http://www.stillhq.com/pngtools/"
-SRC_URI="http://www.stillhq.com/pngtools/source/pngtools_${MY_PV}.tgz"
+SRC_URI="http://www.stillhq.com/pngtools/source/pngtools_${PV/./_}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
-IUSE=""
-RDEPEND=">=media-libs/libpng-1.4:0"
+RDEPEND="media-libs/libpng:="
DEPEND="${RDEPEND}"
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.3-implicit-declarations.patch
- epatch "${FILESDIR}"/${P}-libpng14.patch
- epatch "${FILESDIR}"/${P}-libpng15-fixes.patch
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.3-implicit-declarations.patch
+ "${FILESDIR}"/${P}-libpng14.patch
+ "${FILESDIR}"/${P}-libpng15-fixes.patch
+)
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
eautoreconf
}
src_install() {
- emake DESTDIR="${D}" install
- dodoc ABOUT AUTHORS ChangeLog NEWS README chunks.txt
- insinto /usr/share/doc/${PF}/examples
- doins *.png
+ default
+ dodoc ABOUT chunks.txt
+
+ docinto examples
+ dodoc *.png
}