/[gentoo-x86]/media-gfx/xloadimage/xloadimage-4.1-r2.ebuild
Gentoo

Contents of /media-gfx/xloadimage/xloadimage-4.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Jan 15 15:11:45 2006 UTC (14 years, 5 months ago) by nelchael
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Removed old versions.
(Portage version: 2.1_pre3-r1)

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/xloadimage/xloadimage-4.1-r2.ebuild,v 1.11 2005/03/09 01:01:55 vapier Exp $
4
5 inherit alternatives eutils flag-o-matic
6
7 MY_P="${P/-/.}"
8 S=${WORKDIR}/${MY_P}
9 DESCRIPTION="utility to view many different types of images under X11"
10 HOMEPAGE="http://world.std.com/~jimf/xloadimage.html"
11 SRC_URI="ftp://ftp.x.org/R5contrib/${MY_P}.tar.gz
12 mirror://gentoo/${P}-gentoo.diff.bz2"
13
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ppc-macos sparc x86"
17 IUSE="tiff jpeg png"
18
19 RDEPEND="virtual/x11
20 tiff? ( media-libs/tiff )
21 png? ( media-libs/libpng )
22 jpeg? ( media-libs/jpeg )"
23 DEPEND="${RDEPEND}
24 >=sys-apps/sed-4.0.5"
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 epatch ${WORKDIR}/${P}-gentoo.diff
30 epatch ${FILESDIR}/${P}-zio-shell-meta-char.diff
31
32 # Do not define errno extern, but rather include errno.h
33 # <azarah@gentoo.org> (1 Jan 2003)
34 epatch ${FILESDIR}/${P}-include-errno_h.patch
35
36 sed -i "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf
37 sed -i "s:^#include <varargs.h>:#include <stdarg.h>:" ${S}/rlelib.c
38
39 if use ppc-macos ; then
40 sed -i 's,<malloc.h>,<malloc/malloc.h>,' vicar.c
41 for f in $(grep zopen * | cut -d':' -f1 | uniq);do
42 sed -i "s:zopen:zloadimage_zopen:g" $f
43 done
44 fi
45
46 chmod +x ${S}/configure
47 }
48
49 src_install() {
50 dobin xloadimage
51 dobin uufilter
52
53 insinto /etc/X11
54 doins xloadimagerc
55
56 newman xloadimage.man xloadimage.1
57 newman uufilter.man uufilter.1
58
59 dodoc README
60 }
61
62 update_alternatives() {
63 alternatives_makesym /usr/bin/xview \
64 /usr/bin/{xloadimage,xli}
65 alternatives_makesym /usr/bin/xsetbg \
66 /usr/bin/{xloadimage,xli}
67 alternatives_makesym /usr/share/man/man1/xview.1.gz \
68 /usr/share/man/man1/{xloadimage,xli}.1.gz
69 alternatives_makesym /usr/share/man/man1/xsetbg.1.gz \
70 /usr/share/man/man1/{xloadimage,xli}.1.gz
71 }
72
73 pkg_postinst() {
74 use ppc-macos || update_alternatives
75 }
76
77 pkg_postrm() {
78 use ppc-macos || update_alternatives
79 }

  ViewVC Help
Powered by ViewVC 1.1.20