diff options
Diffstat (limited to 'media-gfx/zgv/zgv-5.9.ebuild')
-rw-r--r-- | media-gfx/zgv/zgv-5.9.ebuild | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/media-gfx/zgv/zgv-5.9.ebuild b/media-gfx/zgv/zgv-5.9.ebuild index c5761d43e5fa..c22ba876d4a3 100644 --- a/media-gfx/zgv/zgv-5.9.ebuild +++ b/media-gfx/zgv/zgv-5.9.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=4 -inherit eutils toolchain-funcs +EAPI=7 + +inherit toolchain-funcs DESCRIPTION="A svgalib console image viewer" HOMEPAGE="http://www.svgalib.org/rus/zgv/" @@ -11,24 +12,27 @@ SRC_URI="http://www.svgalib.org/rus/zgv/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" -IUSE="" -RDEPEND=">=media-libs/svgalib-1.4.2 - virtual/jpeg +RDEPEND=" media-libs/libpng + >=media-libs/svgalib-1.4.2 >=media-libs/tiff-3.5.5 + sys-apps/gawk >=sys-libs/zlib-1.1.4 - sys-apps/gawk" + virtual/jpeg +" DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-Makefile-QA.patch + "${FILESDIR}"/${P}-cmyk-yccl-fix.diff + "${FILESDIR}"/${P}-libpng15.patch +) + src_prepare() { sed -i -e "/^CFLAGS=/s:=.*:=${CFLAGS}:" config.mk || die sed -i -e 's:$(RM):echo:' doc/Makefile || die - - epatch \ - "${FILESDIR}"/${P}-Makefile-QA.patch \ - "${FILESDIR}"/${P}-cmyk-yccl-fix.diff \ - "${FILESDIR}"/${P}-libpng15.patch + default } src_compile() { @@ -39,18 +43,18 @@ src_install() { dodir /usr/bin /usr/share/info /usr/share/man/man1 emake \ - PREFIX="${D}"/usr \ - INFODIR="${D}"/usr/share/info \ - MANDIR="${D}"/usr/share/man/man1 \ + PREFIX="${ED}"/usr \ + INFODIR="${ED}"/usr/share/info \ + MANDIR="${ED}"/usr/share/man/man1 \ install dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO # Fix info files cd "${D}"/usr/share/info - rm dir* - mv zgv zgv.info + rm dir* || die + mv zgv zgv.info || die for i in 1 2 3 4 ; do - mv zgv-$i zgv.info-$i + mv zgv-$i zgv.info-$i || die done } |