/[gentoo-x86]/media-gfx/xli/xli-1.17.0-r1.ebuild
Gentoo

Contents of /media-gfx/xli/xli-1.17.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Feb 28 11:22:14 2005 UTC (15 years, 5 months ago) by taviso
Branch: MAIN
new snapshot with security fixes.
(Portage version: 2.0.51.17)

1 taviso 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/media-gfx/xli/xli-1.17.0.ebuild,v 1.18 2005/02/06 11:25:42 vapier Exp $
4    
5     inherit alternatives
6    
7     SNAPSHOT="2005-02-27"
8     DESCRIPTION="X Load Image: view images or load them to root window"
9     HOMEPAGE="http://pantransit.reptiles.org/prog/"
10     SRC_URI="http://pantransit.reptiles.org/prog/xli/xli-${SNAPSHOT}.tar.gz"
11    
12     LICENSE="X11"
13     SLOT="0"
14     KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc-macos ~sparc ~x86"
15     IUSE=""
16    
17     DEPEND="virtual/x11
18     >=sys-libs/zlib-1.1.4
19     >=media-libs/libpng-1.0.5
20     >=media-libs/jpeg-6b-r2"
21    
22     S=${WORKDIR}/${PN}-${SNAPSHOT}
23    
24     src_unpack() {
25     unpack ${A}
26    
27     cd ${S}
28    
29     if use ppc-macos ; then
30     for f in $(grep zopen * | cut -d':' -f1 | uniq); do
31     sed -i "s:zopen:xli_zopen:g" $f
32     done
33     fi
34    
35     sed -i Imakefile \
36     -e "/^DEFINES =/s/$/ -DHAVE_GUNZIP/" \
37     -e "/CCOPTIONS =/s/=.*/=/"
38    
39     # This is a hack to avoid a parse error on /usr/include/string.h
40     # when _BSD_SOURCE is defined. This may be a bug in that header.
41     sed -i png.c \
42     -e "/^#include \"xli.h\"/i#undef _BSD_SOURCE"
43    
44     # This hack will allow xli to compile using gcc-3.3
45     sed -i rlelib.c \
46     -e "s/#include <varargs.h>//"
47    
48     }
49    
50     src_compile() {
51     /usr/X11R6/bin/xmkmf || die
52    
53     emake CDEBUGFLAGS="${CFLAGS}" || die
54     }
55    
56    
57     src_install() {
58     into /usr
59     dobin xli xlito
60     dodoc README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg
61     newman xli.man xli.1
62     newman xliguide.man xliguide.1
63     newman xlito.man xlito.1
64     #dosym /usr/bin/xli /usr/bin/xview
65     #dosym /usr/bin/xli /usr/bin/xsetbg
66    
67     insinto /etc/X11/app-defaults
68     newins ${FILESDIR}/Xli.ad Xli || die
69     fperms a+r /etc/X11/app-defaults/Xli
70     }
71    
72     update_alternatives() {
73     alternatives_makesym /usr/bin/xview \
74     /usr/bin/{xloadimage,xli}
75     alternatives_makesym /usr/bin/xsetbg \
76     /usr/bin/{xloadimage,xli}
77     alternatives_makesym /usr/share/man/man1/xview.1.gz \
78     /usr/share/man/man1/{xloadimage,xli}.1.gz
79     alternatives_makesym /usr/share/man/man1/xsetbg.1.gz \
80     /usr/share/man/man1/{xloadimage,xli}.1.gz
81     }
82    
83     pkg_postinst() {
84     use ppc-macos || update_alternatives
85     }
86    
87     pkg_postrm() {
88     use ppc-macos || update_alternatives
89     }

  ViewVC Help
Powered by ViewVC 1.1.20