/[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 - (hide annotations) (download)
Sat Nov 5 06:54:22 2011 UTC (8 years, 5 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 ssuominen 1.4 # Copyright 1999-2011 Gentoo Foundation
2 dercorny 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.5 # $Header: /var/cvsroot/gentoo-x86/media-gfx/zgv/zgv-5.9.ebuild,v 1.4 2011/02/28 17:49:08 ssuominen Exp $
4 dercorny 1.1
5 ssuominen 1.5 EAPI=4
6 vostorga 1.3 inherit eutils toolchain-funcs
7 dercorny 1.1
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 halcy0n 1.2 KEYWORDS="x86"
15 dercorny 1.1 IUSE=""
16    
17 ssuominen 1.5 RDEPEND=">=media-libs/svgalib-1.4.2
18 ssuominen 1.4 virtual/jpeg
19 dercorny 1.1 media-libs/libpng
20     >=media-libs/tiff-3.5.5
21     >=sys-libs/zlib-1.1.4
22     sys-apps/gawk"
23 ssuominen 1.5 DEPEND="${RDEPEND}"
24 dercorny 1.1
25 ssuominen 1.5 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 dercorny 1.1 }
34    
35     src_compile() {
36 ssuominen 1.5 emake CC="$(tc-getCC)"
37 dercorny 1.1 }
38    
39     src_install() {
40     dodir /usr/bin /usr/share/info /usr/share/man/man1
41 ssuominen 1.5
42     emake \
43     PREFIX="${D}"/usr \
44 vostorga 1.3 INFODIR="${D}"/usr/share/info \
45     MANDIR="${D}"/usr/share/man/man1 \
46 ssuominen 1.5 install
47    
48 vostorga 1.3 dodoc AUTHORS ChangeLog INSTALL NEWS README* SECURITY TODO
49 dercorny 1.1
50     # Fix info files
51 vostorga 1.3 cd "${D}"/usr/share/info
52 dercorny 1.1 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