You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/zgv/zgv-5.9.ebuild

57 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="A svgalib console image viewer"
HOMEPAGE="http://www.svgalib.org/rus/zgv/"
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
media-libs/libpng
>=media-libs/tiff-3.5.5
>=sys-libs/zlib-1.1.4
sys-apps/gawk"
DEPEND="${RDEPEND}"
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
}
src_compile() {
emake CC="$(tc-getCC)"
}
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 \
install
dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO
# Fix info files
cd "${D}"/usr/share/info
rm dir*
mv zgv zgv.info
for i in 1 2 3 4 ; do
mv zgv-$i zgv.info-$i
done
}