Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/xloadimage/
Date: Tue, 30 Apr 2019 09:05:23
Message-Id: 1556615112.d0160c50a08d4c4118a0fb66f6d55981a7277db6.zlogene@gentoo
1 commit: d0160c50a08d4c4118a0fb66f6d55981a7277db6
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 30 09:04:32 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 30 09:05:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0160c50
7
8 media-gfx/xloadimage: Drop old
9
10 Closes: https://bugs.gentoo.org/679450
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.11
13
14 media-gfx/xloadimage/xloadimage-4.1-r11.ebuild | 94 --------------------------
15 1 file changed, 94 deletions(-)
16
17 diff --git a/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild b/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild
18 deleted file mode 100644
19 index 88c8bacd127..00000000000
20 --- a/media-gfx/xloadimage/xloadimage-4.1-r11.ebuild
21 +++ /dev/null
22 @@ -1,94 +0,0 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=2
27 -inherit autotools eutils flag-o-matic toolchain-funcs
28 -
29 -DESCRIPTION="utility to view many different types of images under X11"
30 -HOMEPAGE="http://world.std.com/~jimf/xloadimage.html"
31 -SRC_URI="ftp://ftp.x.org/R5contrib/${P/-/.}.tar.gz
32 - mirror://gentoo/${P}-gentoo-r1.diff.bz2"
33 -
34 -LICENSE="MIT"
35 -SLOT="0"
36 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
37 -IUSE="tiff jpeg png"
38 -
39 -RDEPEND="x11-libs/libX11
40 - tiff? ( media-libs/tiff )
41 - png? ( media-libs/libpng )
42 - jpeg? ( virtual/jpeg:0 )"
43 -DEPEND="${RDEPEND}
44 - !media-gfx/xli"
45 -
46 -S=${WORKDIR}/${P/-/.}
47 -
48 -src_prepare() {
49 - epatch "${WORKDIR}"/${P}-gentoo-r1.diff
50 - epatch "${FILESDIR}"/${P}-zio-shell-meta-char.diff
51 - epatch "${FILESDIR}"/${P}-endif.patch
52 -
53 - # Do not define errno extern, but rather include errno.h
54 - # <azarah@g.o> (1 Jan 2003)
55 - epatch "${FILESDIR}"/${P}-include-errno_h.patch
56 -
57 - epatch "${FILESDIR}"/xloadimage-gentoo.patch
58 -
59 - sed -i -e "s:OPT_FLAGS=:OPT_FLAGS=$CFLAGS:" Make.conf || die
60 - sed -i -e "s:^#include <varargs.h>:#include <stdarg.h>:" rlelib.c || die
61 -
62 - # On FreeBSD systems malloc.h is a false header asking for fixes.
63 - # On MacOSX it would require malloc/malloc.h
64 - # On other systems it's simply unneeded
65 - sed -i -e 's,<malloc.h>,<stdlib.h>,' vicar.c || die
66 -
67 - epatch "${FILESDIR}"/${P}-unaligned-access.patch
68 - epatch "${FILESDIR}"/${P}-ldflags_and_exit.patch
69 -
70 - sed -i -e "/^DEFS = /s:/etc:${EPREFIX}/etc:" Makefile.in
71 -
72 - epatch "${FILESDIR}"/${P}-libpng15.patch
73 - sed -i \
74 - -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:' \
75 - png.c || die
76 -
77 - # One of the previous patches screws up a bracket...
78 - epatch "${FILESDIR}"/${P}-bracket.patch
79 -
80 - chmod +x configure
81 - eautoreconf
82 -}
83 -
84 -src_configure() {
85 - # Set TIFFHeader to TIFFHeaderCommon wrt #319383
86 - has_version '>=media-libs/tiff-4.0.0_pre' && \
87 - append-flags -DTIFFHeader=TIFFHeaderCommon
88 -
89 - tc-export CC
90 - econf $(use_with jpeg) \
91 - $(use_with png) \
92 - $(use_with tiff)
93 -}
94 -
95 -src_compile() {
96 - emake SYSPATHFILE="${EPREFIX}"/etc/X11/Xloadimage || die
97 -}
98 -
99 -src_install() {
100 - dobin xloadimage uufilter || die
101 -
102 - dosym xloadimage /usr/bin/xsetbg || die
103 - dosym xloadimage /usr/bin/xview || die
104 -
105 - insinto /etc/X11
106 - doins xloadimagerc || die
107 -
108 - newman xloadimage.man xloadimage.1 || die
109 - newman uufilter.man uufilter.1 || die
110 -
111 - echo ".so man1/xloadimage.1" > "${T}"/xsetbg.1
112 - doman "${T}"/xsetbg.1 || die
113 - newman "${T}"/xsetbg.1 xview.1 || die
114 -
115 - dodoc README
116 -}