Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/xli/, media-gfx/xli/files/
Date: Fri, 16 Apr 2021 04:47:41
Message-Id: 1618548417.22193d0cc7756daa0ccc0c075214a7516ed3f836.sam@gentoo
1 commit: 22193d0cc7756daa0ccc0c075214a7516ed3f836
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 15 19:09:27 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 04:46:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22193d0c
7
8 media-gfx/xli: EAPI-7 bump, eutils drop, tidy
9
10 EPATCH_OPTS="-F3 -l" wasn't needed, patch applies entirely cleanly.
11
12 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 media-gfx/xli/files/xli-1.17.0-libpng14.patch | 4 +--
16 media-gfx/xli/xli-1.17.0-r5.ebuild | 47 +++++++++++++++------------
17 2 files changed, 29 insertions(+), 22 deletions(-)
18
19 diff --git a/media-gfx/xli/files/xli-1.17.0-libpng14.patch b/media-gfx/xli/files/xli-1.17.0-libpng14.patch
20 index afb4b24208d..992a0cc79ff 100644
21 --- a/media-gfx/xli/files/xli-1.17.0-libpng14.patch
22 +++ b/media-gfx/xli/files/xli-1.17.0-libpng14.patch
23 @@ -1,8 +1,8 @@
24 http://aur.archlinux.org/packages.php?ID=1676
25 http://archwyrm.net/~me/xli-libpng.diff
26
27 ---- png.c
28 -+++ png.c
29 +--- a/png.c
30 ++++ b/png.c
31 @@ -27,7 +27,7 @@
32 if (ret != 8)
33 return 0;
34
35 diff --git a/media-gfx/xli/xli-1.17.0-r5.ebuild b/media-gfx/xli/xli-1.17.0-r5.ebuild
36 index d68f42ffcf6..c04527ac7b8 100644
37 --- a/media-gfx/xli/xli-1.17.0-r5.ebuild
38 +++ b/media-gfx/xli/xli-1.17.0-r5.ebuild
39 @@ -1,34 +1,43 @@
40 # Copyright 1999-2021 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 -EAPI="5"
44 +EAPI=7
45
46 -inherit eutils toolchain-funcs
47 +inherit toolchain-funcs
48
49 SNAPSHOT="2005-02-27"
50 DESCRIPTION="X Load Image: view images or load them to root window"
51 HOMEPAGE="ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/X/xli-1.16.README"
52 SRC_URI="http://pantransit.reptiles.org/prog/xli/xli-${SNAPSHOT}.tar.gz"
53 +S="${WORKDIR}/${PN}-${SNAPSHOT}"
54
55 LICENSE="HPND"
56 SLOT="0"
57 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
58
59 -RDEPEND="app-arch/bzip2
60 - >=media-libs/libpng-1.0.5
61 - >=sys-libs/zlib-1.1.4
62 +RDEPEND="
63 + app-arch/bzip2:=
64 + >=media-libs/libpng-1.0.5:=
65 + >=sys-libs/zlib-1.1.4:=
66 virtual/jpeg:0
67 - x11-libs/libXext"
68 -
69 -DEPEND="${RDEPEND}
70 + x11-libs/libXext
71 + !media-gfx/xloadimage"
72 +DEPEND="${RDEPEND}"
73 +BDEPEND="
74 app-text/rman
75 x11-base/xorg-proto
76 - >=x11-misc/imake-1.0.8-r1
77 - !media-gfx/xloadimage"
78 + >=x11-misc/imake-1.0.8-r1"
79
80 -S=${WORKDIR}/${PN}-${SNAPSHOT}
81 +PATCHES=(
82 + "${FILESDIR}"/xli-security-gentoo.diff
83 + "${FILESDIR}"/${P}-fix-scale-zoom.patch #282979
84 + "${FILESDIR}"/${P}-libpng14.patch
85 +)
86 +DOCS=( README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg )
87
88 src_prepare() {
89 + default
90 +
91 # avoid conflicts on systems that have zopen in system headers
92 sed -i -e "s:zopen:xli_zopen:g" *
93
94 @@ -44,13 +53,6 @@ src_prepare() {
95 # This hack will allow xli to compile using gcc-3.3
96 sed -i rlelib.c \
97 -e 's/#include <varargs.h>//'
98 -
99 - # fix potential security issues.
100 - EPATCH_OPTS="-F3 -l" epatch "${FILESDIR}"/xli-security-gentoo.diff
101 -
102 - # Fix scale per bug 282979
103 - epatch "${FILESDIR}"/${P}-fix-scale-zoom.patch \
104 - "${FILESDIR}"/${P}-libpng14.patch
105 }
106
107 src_configure() {
108 @@ -59,7 +61,12 @@ src_configure() {
109 }
110
111 src_compile() {
112 - emake CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" EXTRA_LDOPTIONS="${LDFLAGS}"
113 + local myemakeargs=(
114 + CC="$(tc-getCC)"
115 + CDEBUGFLAGS="${CFLAGS}"
116 + EXTRA_LDOPTIONS="${LDFLAGS}"
117 + )
118 + emake "${myemakeargs[@]}"
119 }
120
121 src_install() {
122 @@ -68,10 +75,10 @@ src_install() {
123 dosym xli /usr/bin/xsetbg
124 dosym xli /usr/bin/xview
125
126 - dodoc README README.xloadimage ABOUTGAMMA TODO chkgamma.jpg
127 newman xli.man xli.1
128 newman xliguide.man xliguide.1
129 newman xlito.man xlito.1
130 + einstalldocs
131
132 insinto /etc/X11/app-defaults
133 newins "${FILESDIR}"/Xli.ad Xli