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-libs/netpbm/
Date: Fri, 03 Dec 2021 00:12:37
Message-Id: 1638489716.50aa7cc3fc228b8f02e383608a1d51ecb675f787.sam@gentoo
1 commit: 50aa7cc3fc228b8f02e383608a1d51ecb675f787
2 Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com>
3 AuthorDate: Wed Dec 1 16:49:22 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 3 00:01:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50aa7cc3
7
8 media-libs/netpbm: drop v10.86.24
9
10 But keep v10.86.24-r1
11
12 Package-Manager: Portage-3.0.28, Repoman-3.0.3
13 Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com>
14 Closes: https://github.com/gentoo/gentoo/pull/23133
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 media-libs/netpbm/netpbm-10.86.24.ebuild | 219 -------------------------------
18 1 file changed, 219 deletions(-)
19
20 diff --git a/media-libs/netpbm/netpbm-10.86.24.ebuild b/media-libs/netpbm/netpbm-10.86.24.ebuild
21 deleted file mode 100644
22 index 2a5c614bda1b..000000000000
23 --- a/media-libs/netpbm/netpbm-10.86.24.ebuild
24 +++ /dev/null
25 @@ -1,219 +0,0 @@
26 -# Copyright 1999-2021 Gentoo Authors
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -EAPI=8
30 -
31 -inherit multilib toolchain-funcs
32 -
33 -DESCRIPTION="A set of utilities for converting to/from the netpbm (and related) formats"
34 -HOMEPAGE="http://netpbm.sourceforge.net/"
35 -SRC_URI="https://github.com/ceamac/netpbm-make-dist/releases/download/v${PV}/${P}.tar.xz"
36 -
37 -LICENSE="GPL-2"
38 -SLOT="0"
39 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
40 -IUSE="doc jbig jpeg png postscript rle cpu_flags_x86_sse2 static-libs svga tiff X xml zlib"
41 -# zlib USE flag is no longer used, enabled by default.
42 -# cannot remove it yet because of #801445
43 -
44 -BDEPEND="
45 - app-arch/xz-utils
46 - sys-devel/flex
47 - virtual/pkgconfig
48 -"
49 -# app-text/ghostscript-gpl is really needed for postscript
50 -# some utilities execute /usr/bin/gs
51 -RDEPEND="jbig? ( media-libs/jbigkit:= )
52 - jpeg? ( virtual/jpeg:0 )
53 - png? (
54 - >=media-libs/libpng-1.4:0=
55 - sys-libs/zlib
56 - )
57 - postscript? (
58 - app-text/ghostscript-gpl
59 - sys-libs/zlib
60 - )
61 - rle? ( media-libs/urt:= )
62 - svga? ( media-libs/svgalib )
63 - tiff? ( >=media-libs/tiff-3.5.5:0 )
64 - xml? ( dev-libs/libxml2 )
65 - X? ( x11-libs/libX11 )"
66 -DEPEND="${RDEPEND}"
67 -
68 -PATCHES=(
69 - "${FILESDIR}"/netpbm-10.86.21-build.patch
70 - "${FILESDIR}"/netpbm-10.86.21-test.patch #450530
71 - "${FILESDIR}"/netpbm-10.86.21-misc-deps.patch
72 - "${FILESDIR}"/netpbm-10.86.22-fix-ps-test.patch #670362
73 -)
74 -
75 -netpbm_libtype() {
76 - case ${CHOST} in
77 - *-darwin*) echo dylib;;
78 - *) echo unixshared;;
79 - esac
80 -}
81 -
82 -netpbm_libsuffix() {
83 - local suffix=$(get_libname)
84 - echo ${suffix//\.}
85 -}
86 -
87 -netpbm_ldshlib() {
88 - case ${CHOST} in
89 - *-darwin*) echo '$(LDFLAGS) -dynamiclib -install_name $(SONAME)';;
90 - *) echo '$(LDFLAGS) -shared -Wl,-soname,$(SONAME)';;
91 - esac
92 -}
93 -netpbm_config() {
94 - if use ${1} ; then
95 - [[ ${2} != "!" ]] && echo -l${2:-$1}
96 - else
97 - echo NONE
98 - fi
99 -}
100 -
101 -src_prepare() {
102 - default
103 -
104 - # make sure we use system libs
105 - sed -i '/SUPPORT_SUBDIRS/s:urt::' GNUmakefile || die
106 - rm -r urt converter/other/jbig/libjbig converter/other/jpeg2000/libjasper || die
107 -
108 - # take care of the importinc stuff ourselves by only doing it once
109 - # at the top level and having all subdirs use that one set #149843
110 - sed -i \
111 - -e '/^importinc:/s|^|importinc:\nmanual_|' \
112 - -e '/-Iimportinc/s|-Iimp|-I"$(BUILDDIR)"/imp|g'\
113 - common.mk || die
114 - sed -i \
115 - -e '/%.c/s: importinc$::' \
116 - common.mk lib/Makefile lib/util/Makefile || die
117 - sed -i \
118 - -e 's:pkg-config:$(PKG_CONFIG):' \
119 - GNUmakefile converter/other/Makefile other/pamx/Makefile || die
120 -
121 - # The postscript knob is currently bound up with a fork test.
122 - if ! use postscript ; then
123 - sed -i \
124 - -e 's:$(DONT_HAVE_PROCESS_MGMT):Y:' \
125 - converter/other/Makefile generator/Makefile || die
126 - sed -i -r \
127 - -e 's:(pbmtextps|pnmtops|pstopnm).*::' \
128 - test/all-in-place.{ok,test} || die
129 - sed -i -e 's:lps-roundtrip.*::' test/Test-Order || die
130 - sed -i -e '/^$/d' test/all-in-place.ok || die
131 - sed -i '2iexit 80' test/ps-{alt-,flate-,}roundtrip.test || die
132 - fi
133 -
134 - # the new postscript test needs +x
135 - chmod +x test/lps-roundtrip.test
136 -
137 - # Do not test png if not built
138 - if ! use png ; then
139 - sed -i -r \
140 - -e 's:(pamtopng|pngtopam|pnmtopng).*::' \
141 - test/all-in-place.{ok,test} || die
142 - sed -i -e '/^$/d' test/all-in-place.ok || die
143 -
144 - sed -i -r \
145 - -e 's:(pamrgbatopng|pngtopnm).*::' \
146 - test/legacy-names.{ok,test} || die
147 - sed -i -e '/^$/d' test/legacy-names.ok || die
148 - sed -i -e 's:png-roundtrip.*::' test/Test-Order || die
149 - fi
150 -}
151 -
152 -src_configure() {
153 - # cannot chain the die with the heredoc
154 - # repoman tries to parse the heredoc and fails
155 - cat config.mk.in - >> config.mk <<-EOF
156 - # Misc crap
157 - BUILD_FIASCO = N
158 - SYMLINK = ln -sf
159 -
160 - # These vars let src_test work by default
161 - PKGDIR_DEFAULT = ${T}/netpbm
162 - RESULTDIR_DEFAULT = ${T}/netpbm-test
163 -
164 - # Toolchain options
165 - CC = $(tc-getCC) -Wall
166 - LD = \$(CC)
167 - CC_FOR_BUILD = $(tc-getBUILD_CC)
168 - LD_FOR_BUILD = \$(CC_FOR_BUILD)
169 - AR = $(tc-getAR)
170 - RANLIB = $(tc-getRANLIB)
171 - PKG_CONFIG = $(tc-getPKG_CONFIG)
172 -
173 - STRIPFLAG =
174 - CFLAGS_SHLIB = -fPIC
175 -
176 - LDRELOC = \$(LD) -r
177 - LDSHLIB = $(netpbm_ldshlib)
178 - LINKER_CAN_DO_EXPLICIT_LIBRARY = N # we can, but dont want to
179 - LINKERISCOMPILER = Y
180 - NETPBMLIBSUFFIX = $(netpbm_libsuffix)
181 - NETPBMLIBTYPE = $(netpbm_libtype)
182 - STATICLIB_TOO = $(usex static-libs Y N)
183 -
184 - # The var is called SSE, but the code is actually SSE2.
185 - WANT_SSE = $(usex cpu_flags_x86_sse2 Y N)
186 -
187 - # Gentoo build options
188 - TIFFLIB = $(netpbm_config tiff)
189 - # Let tiff worry about its own dependencies #395753
190 - TIFFLIB_NEEDS_JPEG = N
191 - TIFFLIB_NEEDS_Z = N
192 - JPEGLIB = $(netpbm_config jpeg)
193 - PNGLIB = $(netpbm_config png)
194 - ZLIB = -lz
195 - LINUXSVGALIB = $(netpbm_config svga vga)
196 - XML2_LIBS = $(netpbm_config xml xml2)
197 - JBIGLIB = $(netpbm_config jbig)
198 - JBIGHDR_DIR =
199 - JASPERLIB = NONE
200 - JASPERHDR_DIR =
201 - URTLIB = $(netpbm_config rle)
202 - URTHDR_DIR =
203 - X11LIB = $(netpbm_config X X11)
204 - X11HDR_DIR =
205 - EOF
206 - [[ $? -eq 0 ]] || die "writing config.mk failed"
207 -}
208 -
209 -src_compile() {
210 - emake -j1 pm_config.h version.h manual_importinc #149843
211 - emake
212 -}
213 -
214 -src_test() {
215 - # The code wants to install everything first and then test the result.
216 - emake install.{bin,lib,data}
217 - emake check
218 -}
219 -
220 -src_install() {
221 - # Subdir make targets like to use `mkdir` all over the place
222 - # without any actual dependencies, thus the -j1.
223 - emake -j1 package pkgdir="${ED}"/usr
224 -
225 - if [[ $(get_libdir) != "lib" ]] ; then
226 - mv "${ED}"/usr/lib "${ED}"/usr/$(get_libdir) || die
227 - fi
228 -
229 - # Remove cruft that we don't need, and move around stuff we want
230 - rm "${ED}"/usr/{README,VERSION,{pkgconfig,config}_template,pkginfo} || die
231 -
232 - dodir /usr/share
233 - mv "${ED}"/usr/misc "${ED}"/usr/share/netpbm || die
234 -
235 - doman userguide/*.[0-9]
236 - dodoc README
237 -
238 - cd doc || die
239 - dodoc HISTORY Netpbm.programming USERDOC
240 - docinto html
241 - dodoc -r *.html
242 -
243 - use doc && dodoc -r ../userguide/*.html
244 -}