1 |
commit: 5e11652b042407cf4cbf10617cab42cf4f7f67f1 |
2 |
Author: Cheyenne Wills <cwills <AT> witznd <DOT> net> |
3 |
AuthorDate: Mon Oct 4 23:04:16 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 11:53:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e11652b |
7 |
|
8 |
dev-lang/icon: Remove old |
9 |
|
10 |
Signed-off-by: Cheyenne Wills <cwills <AT> witznd.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/22491 |
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
dev-lang/icon/Manifest | 2 - |
15 |
dev-lang/icon/files/icon-9.5.1-flags.patch | 75 ----------------- |
16 |
dev-lang/icon/files/icon-9.5.1-fpoll.patch | 27 ------- |
17 |
dev-lang/icon/files/icon-9.5.1-musl.patch | 24 ------ |
18 |
dev-lang/icon/icon-9.5.1-r1.ebuild | 108 ------------------------- |
19 |
dev-lang/icon/icon-9.5.1-r2.ebuild | 126 ----------------------------- |
20 |
dev-lang/icon/icon-9.5.20h.ebuild | 123 ---------------------------- |
21 |
dev-lang/icon/metadata.xml | 3 - |
22 |
8 files changed, 488 deletions(-) |
23 |
|
24 |
diff --git a/dev-lang/icon/Manifest b/dev-lang/icon/Manifest |
25 |
index 85152f23b6f..965e85ae01b 100644 |
26 |
--- a/dev-lang/icon/Manifest |
27 |
+++ b/dev-lang/icon/Manifest |
28 |
@@ -1,3 +1 @@ |
29 |
-DIST icon-9.5.20h.tar.gz 3137602 BLAKE2B 093290f7df4d0c1686b57c1debabdae5ab607fab00849885fd97b68b872db9d360e9ffe61b7be2e503f5ffa70a387011128c65586b0d48e298577d0ca690a729 SHA512 c3dec5d9d6f2e01fb27b09897cf9e54103749e64e64feb6503e1d25a00bf7da498e40207d8d220af8aca134df6fb281484bd8c8444d256f04ddc39de6a23ca1f |
30 |
DIST icon-9.5.20i.tar.gz 3138826 BLAKE2B adb4010926f2a7bbfc03c12c1c669ac202c41949556fafdf8f6e41be418e329c5c4b0697a1af0eddd0cb6acd65d03dedabf171be99ba6e5c80a92fac91323027 SHA512 31f43f0ff672e81b459c8364960b780733820000c31405ddcd13d14927f065b48d1fae47aeb90a2cd31b65340c77ec7f85e8da27797fb186fa49474e7c8be394 |
31 |
-DIST icon-v951src.tgz 3133040 BLAKE2B 790a66a8210c1b9c55514a560590f08d3e52d7c5115d60554183f1118b5705fc1754b8188dcc3b5b739318374d568b6eafc1e3c4266de5416709e7ce6056925b SHA512 032dc9cfa57af5af2eb84b2116d0537124b5efb87b7cf744ecace2ccf49e461d5be5f91df99d85e8a988520d144fe4ecf06a6e78f7fff997b78afa95355449ad |
32 |
|
33 |
diff --git a/dev-lang/icon/files/icon-9.5.1-flags.patch b/dev-lang/icon/files/icon-9.5.1-flags.patch |
34 |
deleted file mode 100644 |
35 |
index ff659b28bbc..00000000000 |
36 |
--- a/dev-lang/icon/files/icon-9.5.1-flags.patch |
37 |
+++ /dev/null |
38 |
@@ -1,75 +0,0 @@ |
39 |
---- icon-v951src/ipl/cfuncs/Makefile |
40 |
-+++ icon-v951src/ipl/cfuncs/Makefile |
41 |
-@@ -25,7 +25,7 @@ |
42 |
- # library |
43 |
- |
44 |
- $(FUNCLIB): $(FUNCS) mklib.sh |
45 |
-- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../bin" \ |
46 |
-+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../bin" \ |
47 |
- sh mklib.sh $(FUNCLIB) $(FUNCS) |
48 |
- $(FUNCS): icall.h |
49 |
- |
50 |
---- icon-v951src/ipl/cfuncs/mklib.sh |
51 |
-+++ icon-v951src/ipl/cfuncs/mklib.sh |
52 |
-@@ -12,7 +12,7 @@ |
53 |
- set -x |
54 |
- case "$SYS" in |
55 |
- Linux*|*BSD*|GNU*) |
56 |
-- $CC -shared -o $LIBNAME -fPIC "$@";; |
57 |
-+ $CC -shared -o $LIBNAME $CFLAGS $LDFLAGS -fPIC "$@";; |
58 |
- CYGWIN*) |
59 |
- # move the win32 import library for iconx.exe callbacks |
60 |
- # created when iconx.exe was built |
61 |
---- icon-v951src/ipl/packs/loadfunc/Makefile |
62 |
-+++ icon-v951src/ipl/packs/loadfunc/Makefile |
63 |
-@@ -28,7 +28,7 @@ |
64 |
- echo '$$define FUNCLIB "./$(FUNCLIB)"' >libnames.icn |
65 |
- |
66 |
- $(FUNCLIB): $(FUNCS) |
67 |
-- CC="$(CC)" CFLAGS="$(CFLAGS)" BIN="../../../bin" \ |
68 |
-+ CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" BIN="../../../bin" \ |
69 |
- sh $(MKLIB) $(FUNCLIB) $(FUNCS) |
70 |
- |
71 |
- |
72 |
---- icon-v951src/src/common/Makefile |
73 |
-+++ icon-v951src/src/common/Makefile |
74 |
-@@ -8,7 +8,7 @@ |
75 |
- common: $(OBJS) gpxmaybe |
76 |
- |
77 |
- patchstr: patchstr.c |
78 |
-- $(CC) $(CFLAGS) -o patchstr patchstr.c |
79 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o patchstr patchstr.c |
80 |
- |
81 |
- gpxmaybe: |
82 |
- -if [ "x$(XL)" != "x" ]; then $(MAKE) $(GDIR); fi |
83 |
-@@ -25,7 +25,7 @@ |
84 |
- ../h/typedefs.h ../h/mproto.h ../h/cpuconf.h |
85 |
- |
86 |
- ../h/arch.h: infer.c |
87 |
-- $(CC) $(CFLAGS) -o infer infer.c |
88 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o infer infer.c |
89 |
- ./infer >../h/arch.h |
90 |
- |
91 |
- identify.o: ../h/version.h |
92 |
---- icon-v951src/src/rtt/Makefile |
93 |
-+++ icon-v951src/src/rtt/Makefile |
94 |
-@@ -22,7 +22,7 @@ |
95 |
- |
96 |
- |
97 |
- rtt: $(OBJ) |
98 |
-- $(CC) $(LDFLAGS) -o rtt $(OBJ) |
99 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o rtt $(OBJ) |
100 |
- |
101 |
- library: $(OBJ) |
102 |
- rm -rf rtt.a |
103 |
---- icon-v951src/src/runtime/Makefile |
104 |
-+++ icon-v951src/src/runtime/Makefile |
105 |
-@@ -30,7 +30,7 @@ |
106 |
- |
107 |
- iconx: $(COBJS) $(XOBJS) |
108 |
- cd ../common; $(MAKE) |
109 |
-- $(CC) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS) |
110 |
-+ $(CC) $(CFLAGS) $(LDFLAGS) $(RLINK) -o iconx $(XOBJS) $(COBJS) $(XL) $(RLIBS) $(TLIBS) |
111 |
- cp iconx ../../bin |
112 |
- strip $(SFLAGS) ../../bin/iconx$(EXE) |
113 |
- |
114 |
|
115 |
diff --git a/dev-lang/icon/files/icon-9.5.1-fpoll.patch b/dev-lang/icon/files/icon-9.5.1-fpoll.patch |
116 |
deleted file mode 100644 |
117 |
index d2a4d5f33d2..00000000000 |
118 |
--- a/dev-lang/icon/files/icon-9.5.1-fpoll.patch |
119 |
+++ /dev/null |
120 |
@@ -1,27 +0,0 @@ |
121 |
-diff --git a/ipl/cfuncs/fpoll.c b/ipl/cfuncs/fpoll.c |
122 |
-index 9230e18..33b8121 100644 |
123 |
---- a/ipl/cfuncs/fpoll.c |
124 |
-+++ b/ipl/cfuncs/fpoll.c |
125 |
-@@ -60,12 +60,9 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */ |
126 |
- |
127 |
- /* check for data already in buffer */ |
128 |
- /* there's no legal way to do this in C; we cheat */ |
129 |
--#if defined(__GLIBC__) && defined(_STDIO_USES_IOSTREAM) /* new GCC library */ |
130 |
-+#if defined(__GLIBC__) /* New GCC library */ |
131 |
- if (f->_IO_read_ptr < f->_IO_read_end) |
132 |
- RetArg(1); |
133 |
--#elif defined(__GLIBC__) /* old GCC library */ |
134 |
-- if (f->__bufp < f->__get_limit) |
135 |
-- RetArg(1); |
136 |
- #elif defined(_FSTDIO) /* new BSD library */ |
137 |
- if (f->_r > 0) |
138 |
- RetArg(1); |
139 |
-@@ -92,7 +89,7 @@ int fpoll(int argc, descriptor *argv) /*: await data from file */ |
140 |
- |
141 |
- if (r > 0) |
142 |
- RetArg(1); /* success */ |
143 |
-- else if (r == 0) |
144 |
-+ else if (r == 0) |
145 |
- Fail; /* timeout */ |
146 |
- else |
147 |
- ArgError(1, 214); /* I/O error */ |
148 |
|
149 |
diff --git a/dev-lang/icon/files/icon-9.5.1-musl.patch b/dev-lang/icon/files/icon-9.5.1-musl.patch |
150 |
deleted file mode 100644 |
151 |
index 16fc9df0173..00000000000 |
152 |
--- a/dev-lang/icon/files/icon-9.5.1-musl.patch |
153 |
+++ /dev/null |
154 |
@@ -1,24 +0,0 @@ |
155 |
-diff -uprN a/ipl/cfuncs/fpoll.c b/ipl/cfuncs/fpoll.c |
156 |
---- a/ipl/cfuncs/fpoll.c 2020-05-10 21:46:39.730752626 -0600 |
157 |
-+++ b/ipl/cfuncs/fpoll.c 2020-05-10 21:50:41.613577816 -0600 |
158 |
-@@ -33,6 +33,10 @@ |
159 |
- #include <sys/types.h> |
160 |
- #include <sys/time.h> |
161 |
- |
162 |
-+#if defined(_MUSL) |
163 |
-+# include <stdio_ext.h> |
164 |
-+#endif |
165 |
-+ |
166 |
- #include "icall.h" |
167 |
- |
168 |
- int fpoll(int argc, descriptor *argv) /*: await data from file */ |
169 |
-@@ -66,6 +70,9 @@ int fpoll(int argc, descriptor *argv) /* |
170 |
- #elif defined(_FSTDIO) /* new BSD library */ |
171 |
- if (f->_r > 0) |
172 |
- RetArg(1); |
173 |
-+#elif defined(_MUSL) /* MUSL library */ |
174 |
-+ if (__freadahead(f)) |
175 |
-+ RetArg(1); |
176 |
- #else /* old AT&T library */ |
177 |
- if (f->_cnt > 0) |
178 |
- RetArg(1); |
179 |
|
180 |
diff --git a/dev-lang/icon/icon-9.5.1-r1.ebuild b/dev-lang/icon/icon-9.5.1-r1.ebuild |
181 |
deleted file mode 100644 |
182 |
index 1979b93bc02..00000000000 |
183 |
--- a/dev-lang/icon/icon-9.5.1-r1.ebuild |
184 |
+++ /dev/null |
185 |
@@ -1,108 +0,0 @@ |
186 |
-# Copyright 1999-2021 Gentoo Authors |
187 |
-# Distributed under the terms of the GNU General Public License v2 |
188 |
- |
189 |
-EAPI=6 |
190 |
- |
191 |
-inherit flag-o-matic toolchain-funcs |
192 |
- |
193 |
-DESCRIPTION="very high level language" |
194 |
-HOMEPAGE="http://www.cs.arizona.edu/icon/" |
195 |
- |
196 |
-MY_PV=${PV//./} |
197 |
-SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon-v${MY_PV}src.tgz" |
198 |
- |
199 |
-LICENSE="public-domain HPND" |
200 |
-SLOT="0" |
201 |
-KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
202 |
-IUSE="X iplsrc" |
203 |
- |
204 |
-S="${WORKDIR}/icon-v${MY_PV}src" |
205 |
- |
206 |
-RDEPEND=" |
207 |
- X? ( x11-libs/libX11:= )" |
208 |
-DEPEND=" |
209 |
- ${RDEPEND} |
210 |
- X? ( |
211 |
- x11-libs/libXpm |
212 |
- x11-libs/libXt |
213 |
- )" |
214 |
- |
215 |
-PATCHES=( "${FILESDIR}"/${PN}-9.5.1-flags.patch ) |
216 |
- |
217 |
-src_prepare() { |
218 |
- default |
219 |
- |
220 |
- # do not prestrip files |
221 |
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die |
222 |
-} |
223 |
- |
224 |
-src_configure() { |
225 |
- # select the right compile target. Note there are many platforms |
226 |
- # available |
227 |
- local mytarget; |
228 |
- if [[ ${CHOST} == *-darwin* ]]; then |
229 |
- mytarget="macintosh" |
230 |
- else |
231 |
- mytarget="linux" |
232 |
- fi |
233 |
- |
234 |
- # Fails if more then one make job process. |
235 |
- # This is an upstream requirement. |
236 |
- emake -j1 $(usex X X-Configure Configure) name=${mytarget} |
237 |
- |
238 |
- # sanitise the Makedefs file generated by Configure |
239 |
- sed -i \ |
240 |
- -e 's:-L/usr/X11R6/lib64::g' \ |
241 |
- -e 's:-L/usr/X11R6/lib::g' \ |
242 |
- -e 's:-I/usr/X11R6/include::g' \ |
243 |
- Makedefs || die "sed of Makedefs failed" |
244 |
- |
245 |
- append-flags $(test-flags -fno-strict-aliasing -fwrapv) |
246 |
-} |
247 |
- |
248 |
-src_compile() { |
249 |
- # Fails if more then one make job process. |
250 |
- # This is an upstream requirement. |
251 |
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
252 |
-} |
253 |
- |
254 |
-src_test() { |
255 |
- emake Samples |
256 |
- emake Test |
257 |
-} |
258 |
- |
259 |
-src_install() { |
260 |
- # Needed for make Install |
261 |
- dodir /usr/$(get_libdir) |
262 |
- |
263 |
- emake Install dest="${D}/usr/$(get_libdir)/icon" |
264 |
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont |
265 |
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx |
266 |
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon |
267 |
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib |
268 |
- |
269 |
- cd "${S}/man/man1" || die |
270 |
- doman "${PN}"t.1 |
271 |
- doman "${PN}".1 |
272 |
- |
273 |
- cd "${S}/doc" || die |
274 |
- DOCS=( *.txt ../README ) |
275 |
- |
276 |
- HTML_DOCS=( *.{htm,gif,jpg,css} ) |
277 |
- einstalldocs |
278 |
- |
279 |
- # Clean up items from make Install that get installed elsewhere |
280 |
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die |
281 |
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die |
282 |
- |
283 |
- # optional Icon Programming Library |
284 |
- if use iplsrc; then |
285 |
- cd "${S}" || die |
286 |
- |
287 |
- # Remove unneeded files before copy |
288 |
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die |
289 |
- |
290 |
- insinto /usr/$(get_libdir)/icon |
291 |
- doins -r ipl |
292 |
- fi |
293 |
-} |
294 |
|
295 |
diff --git a/dev-lang/icon/icon-9.5.1-r2.ebuild b/dev-lang/icon/icon-9.5.1-r2.ebuild |
296 |
deleted file mode 100644 |
297 |
index 31a7c5566c0..00000000000 |
298 |
--- a/dev-lang/icon/icon-9.5.1-r2.ebuild |
299 |
+++ /dev/null |
300 |
@@ -1,126 +0,0 @@ |
301 |
-# Copyright 1999-2021 Gentoo Authors |
302 |
-# Distributed under the terms of the GNU General Public License v2 |
303 |
- |
304 |
-EAPI=6 |
305 |
- |
306 |
-inherit flag-o-matic toolchain-funcs |
307 |
- |
308 |
-DESCRIPTION="very high level language" |
309 |
-HOMEPAGE="http://www.cs.arizona.edu/icon/" |
310 |
- |
311 |
-MY_PV=${PV//./} |
312 |
-SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon-v${MY_PV}src.tgz" |
313 |
- |
314 |
-LICENSE="public-domain HPND" |
315 |
-SLOT="0" |
316 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
317 |
-IUSE="X iplsrc" |
318 |
- |
319 |
-S="${WORKDIR}/icon-v${MY_PV}src" |
320 |
- |
321 |
-RDEPEND=" |
322 |
- X? ( x11-libs/libX11:= )" |
323 |
-DEPEND=" |
324 |
- ${RDEPEND} |
325 |
- X? ( |
326 |
- x11-libs/libXpm |
327 |
- x11-libs/libXt |
328 |
- )" |
329 |
- |
330 |
-PATCHES=( |
331 |
- "${FILESDIR}"/${PN}-9.5.1-flags.patch |
332 |
- # https://bugs.gentoo.org/669330 |
333 |
- # Fix glibc 2.28 problem. |
334 |
- # Patch has been accepted upstream, but is not yet in a release |
335 |
- "${FILESDIR}"/${PN}-9.5.1-fpoll.patch |
336 |
- |
337 |
- # https://bugs.gentoo.org/716212 |
338 |
- # Fix building with musl |
339 |
- # Patch has been accepted upstream, but is not yet in a release |
340 |
- "${FILESDIR}"/${PN}-9.5.1-musl.patch |
341 |
-) |
342 |
- |
343 |
-src_prepare() { |
344 |
- default |
345 |
- |
346 |
- # do not prestrip files |
347 |
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die |
348 |
-} |
349 |
- |
350 |
-src_configure() { |
351 |
- # select the right compile target. Note there are many platforms |
352 |
- # available |
353 |
- local mytarget; |
354 |
- if [[ ${CHOST} == *-darwin* ]]; then |
355 |
- mytarget="macintosh" |
356 |
- else |
357 |
- mytarget="linux" |
358 |
- fi |
359 |
- |
360 |
- # Fails if more then one make job process. |
361 |
- # This is an upstream requirement. |
362 |
- emake -j1 $(usex X X-Configure Configure) name=${mytarget} |
363 |
- |
364 |
- # sanitise the Makedefs file generated by Configure |
365 |
- sed -i \ |
366 |
- -e 's:-L/usr/X11R6/lib64::g' \ |
367 |
- -e 's:-L/usr/X11R6/lib::g' \ |
368 |
- -e 's:-I/usr/X11R6/include::g' \ |
369 |
- -e 's:-I/usr/X11R6/include::g' \ |
370 |
- -e '/^CFLAGS/d' \ |
371 |
- Makedefs || die "sed of Makedefs failed" |
372 |
- |
373 |
- if use elibc_musl; then |
374 |
- append-flags "-D_MUSL" |
375 |
- fi |
376 |
- append-flags $(test-flags -fno-strict-aliasing -fwrapv) |
377 |
-} |
378 |
- |
379 |
-src_compile() { |
380 |
- # Fails if more then one make job process. |
381 |
- # This is an upstream requirement. |
382 |
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
383 |
-} |
384 |
- |
385 |
-src_test() { |
386 |
- emake Samples |
387 |
- emake Test |
388 |
-} |
389 |
- |
390 |
-src_install() { |
391 |
- # Needed for make Install |
392 |
- dodir /usr/$(get_libdir) |
393 |
- |
394 |
- emake Install dest="${D}/usr/$(get_libdir)/icon" |
395 |
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont |
396 |
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx |
397 |
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon |
398 |
- if use X; then |
399 |
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib |
400 |
- fi |
401 |
- |
402 |
- cd "${S}/man/man1" || die |
403 |
- doman "${PN}"t.1 |
404 |
- doman "${PN}".1 |
405 |
- |
406 |
- cd "${S}/doc" || die |
407 |
- DOCS=( *.txt ../README ) |
408 |
- |
409 |
- HTML_DOCS=( *.{htm,gif,jpg,css} ) |
410 |
- einstalldocs |
411 |
- |
412 |
- # Clean up items from make Install that get installed elsewhere |
413 |
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die |
414 |
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die |
415 |
- |
416 |
- # optional Icon Programming Library |
417 |
- if use iplsrc; then |
418 |
- cd "${S}" || die |
419 |
- |
420 |
- # Remove unneeded files before copy |
421 |
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die |
422 |
- |
423 |
- insinto /usr/$(get_libdir)/icon |
424 |
- doins -r ipl |
425 |
- fi |
426 |
-} |
427 |
|
428 |
diff --git a/dev-lang/icon/icon-9.5.20h.ebuild b/dev-lang/icon/icon-9.5.20h.ebuild |
429 |
deleted file mode 100644 |
430 |
index ff1ccfcca93..00000000000 |
431 |
--- a/dev-lang/icon/icon-9.5.20h.ebuild |
432 |
+++ /dev/null |
433 |
@@ -1,123 +0,0 @@ |
434 |
-# Copyright 1999-2021 Gentoo Authors |
435 |
-# Distributed under the terms of the GNU General Public License v2 |
436 |
- |
437 |
-EAPI=7 |
438 |
- |
439 |
-inherit flag-o-matic toolchain-funcs |
440 |
- |
441 |
-DESCRIPTION="very high level language" |
442 |
-HOMEPAGE="http://www.cs.arizona.edu/icon/" |
443 |
- |
444 |
-SRC_URI="https://github.com/gtownsend/icon/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
445 |
- |
446 |
-LICENSE="public-domain HPND" |
447 |
-SLOT="0" |
448 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
449 |
-IUSE="X iplsrc" |
450 |
- |
451 |
-S="${WORKDIR}/icon-${PV}" |
452 |
- |
453 |
-RDEPEND=" |
454 |
- X? ( x11-libs/libX11:= )" |
455 |
-DEPEND=" |
456 |
- ${RDEPEND} |
457 |
- X? ( |
458 |
- x11-libs/libXpm |
459 |
- x11-libs/libXt |
460 |
- )" |
461 |
- |
462 |
-src_prepare() { |
463 |
- default |
464 |
- # Add CFLAGS and LDFLAGS to Makefiles as needed |
465 |
- sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/cfuncs/Makefile || die |
466 |
- sed -i -e 's/^CFLAGS = \(.*\)/CFLAGS = $(CFLAGS) \1/g' ipl/packs/loadfunc/Makefile || die |
467 |
- sed -i -e 's/CFLAGS="$(CFLAGS)"/& LDFLAGS="$(LDFLAGS)"/g' ipl/packs/loadfunc/Makefile || die |
468 |
- sed -i -e 's/-o $LIBNAME $CFLAGS/& $LDFLAGS/g' ipl/cfuncs/mklib.sh || die |
469 |
- sed -i -e 's/$(RLINK)/& $(LDFLAGS)/g' src/runtime/Makefile || die |
470 |
- |
471 |
- # executables in src/common are only used to prep the build |
472 |
- sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/common/Makefile || die |
473 |
- # executables in src/rtt are only used to perform the build |
474 |
- sed -i -e 's/$(CC) $(CFLAGS)/& $(LDFLAGS)/g' src/rtt/Makefile || die |
475 |
- |
476 |
- # do not prestrip files |
477 |
- find src -name 'Makefile' | xargs sed -i -e "/strip/d" || die |
478 |
-} |
479 |
- |
480 |
-src_configure() { |
481 |
- # select the right compile target. Note there are many platforms |
482 |
- # available |
483 |
- local mytarget; |
484 |
- if [[ ${CHOST} == *-darwin* ]]; then |
485 |
- mytarget="macintosh" |
486 |
- else |
487 |
- mytarget="linux" |
488 |
- fi |
489 |
- |
490 |
- # Fails if more then one make job process. |
491 |
- # This is an upstream requirement. |
492 |
- emake -j1 $(usex X X-Configure Configure) name=${mytarget} |
493 |
- |
494 |
- # sanitise the Makedefs file generated by Configure |
495 |
- sed -i \ |
496 |
- -e 's:-L/usr/X11R6/lib64::g' \ |
497 |
- -e 's:-L/usr/X11R6/lib::g' \ |
498 |
- -e 's:-I/usr/X11R6/include::g' \ |
499 |
- -e 's:-I/usr/X11R6/include::g' \ |
500 |
- -e '/^CFLAGS/d' \ |
501 |
- Makedefs || die "sed of Makedefs failed" |
502 |
- |
503 |
- if use elibc_musl; then |
504 |
- append-flags "-D_MUSL" |
505 |
- fi |
506 |
- append-flags $(test-flags -fno-strict-aliasing -fwrapv) |
507 |
-} |
508 |
- |
509 |
-src_compile() { |
510 |
- # Fails if more then one make job process. |
511 |
- # This is an upstream requirement. |
512 |
- emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" |
513 |
-} |
514 |
- |
515 |
-src_test() { |
516 |
- emake Samples |
517 |
- emake Test |
518 |
-} |
519 |
- |
520 |
-src_install() { |
521 |
- # Needed for make Install |
522 |
- dodir /usr/$(get_libdir) |
523 |
- |
524 |
- emake Install dest="${D}/usr/$(get_libdir)/icon" |
525 |
- dosym ../$(get_libdir)/icon/bin/icont /usr/bin/icont |
526 |
- dosym ../$(get_libdir)/icon/bin/iconx /usr/bin/iconx |
527 |
- dosym ../$(get_libdir)/icon/bin/icon /usr/bin/icon |
528 |
- if use X; then |
529 |
- dosym ../$(get_libdir)/icon/bin/vib /usr/bin/vib |
530 |
- fi |
531 |
- |
532 |
- cd "${S}/man/man1" || die |
533 |
- doman "${PN}"t.1 |
534 |
- doman "${PN}".1 |
535 |
- |
536 |
- cd "${S}/doc" || die |
537 |
- DOCS=( *.txt ../README ) |
538 |
- |
539 |
- HTML_DOCS=( *.{htm,gif,jpg,css} ) |
540 |
- einstalldocs |
541 |
- |
542 |
- # Clean up items from make Install that get installed elsewhere |
543 |
- rm -rf "${ED}"/usr/$(get_libdir)/${PN}/man || die |
544 |
- rm -rf "${ED}"/usr/$(get_libdir)/icon/{doc,README} || die |
545 |
- |
546 |
- # optional Icon Programming Library |
547 |
- if use iplsrc; then |
548 |
- cd "${S}" || die |
549 |
- |
550 |
- # Remove unneeded files before copy |
551 |
- rm -fv ipl/{BuildBin,BuildExe,CheckAll,Makefile} || die |
552 |
- |
553 |
- insinto /usr/$(get_libdir)/icon |
554 |
- doins -r ipl |
555 |
- fi |
556 |
-} |
557 |
|
558 |
diff --git a/dev-lang/icon/metadata.xml b/dev-lang/icon/metadata.xml |
559 |
index ef9a3d79799..257ee943430 100644 |
560 |
--- a/dev-lang/icon/metadata.xml |
561 |
+++ b/dev-lang/icon/metadata.xml |
562 |
@@ -9,7 +9,4 @@ |
563 |
<email>proxy-maint@g.o</email> |
564 |
<name>Gentoo Proxy Maintainers Project</name> |
565 |
</maintainer> |
566 |
- <use> |
567 |
- <flag name="iplsrc">install the icon programming library source</flag> |
568 |
- </use> |
569 |
</pkgmetadata> |