/[gentoo-x86]/media-gfx/zgv/zgv-5.9.ebuild
Gentoo

Contents of /media-gfx/zgv/zgv-5.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 5 06:54:22 2011 UTC (8 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +18 -13 lines
Fix building with libpng15 wrt #389591 by Navid Zamani

(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/zgv/zgv-5.9.ebuild,v 1.4 2011/02/28 17:49:08 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs
7
8 DESCRIPTION="A svgalib console image viewer"
9 HOMEPAGE="http://www.svgalib.org/rus/zgv/"
10 SRC_URI="http://www.svgalib.org/rus/zgv/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE=""
16
17 RDEPEND=">=media-libs/svgalib-1.4.2
18 virtual/jpeg
19 media-libs/libpng
20 >=media-libs/tiff-3.5.5
21 >=sys-libs/zlib-1.1.4
22 sys-apps/gawk"
23 DEPEND="${RDEPEND}"
24
25 src_prepare() {
26 sed -i -e "/^CFLAGS=/s:=.*:=${CFLAGS}:" config.mk || die
27 sed -i -e 's:$(RM):echo:' doc/Makefile || die
28
29 epatch \
30 "${FILESDIR}"/${P}-Makefile-QA.patch \
31 "${FILESDIR}"/${P}-cmyk-yccl-fix.diff \
32 "${FILESDIR}"/${P}-libpng15.patch
33 }
34
35 src_compile() {
36 emake CC="$(tc-getCC)"
37 }
38
39 src_install() {
40 dodir /usr/bin /usr/share/info /usr/share/man/man1
41
42 emake \
43 PREFIX="${D}"/usr \
44 INFODIR="${D}"/usr/share/info \
45 MANDIR="${D}"/usr/share/man/man1 \
46 install
47
48 dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO
49
50 # Fix info files
51 cd "${D}"/usr/share/info
52 rm dir*
53 mv zgv zgv.info
54 for i in 1 2 3 4 ; do
55 mv zgv-$i zgv.info-$i
56 done
57 }

  ViewVC Help
Powered by ViewVC 1.1.20