Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/libspectre/files/, app-text/libspectre/
Date: Wed, 01 Jan 2020 11:01:34
Message-Id: 1577876470.295828cd6a32e22d0460ec24bad6b6a62dcd9385.asturm@gentoo
1 commit: 295828cd6a32e22d0460ec24bad6b6a62dcd9385
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 1 10:40:03 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 1 11:01:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=295828cd
7
8 app-text/libspectre: Drop 0.2.7
9
10 hppa had no revdeps.
11
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 app-text/libspectre/Manifest | 1 -
16 .../libspectre/files/libspectre-0.2.7-gs918.patch | 42 -----------------
17 app-text/libspectre/libspectre-0.2.7.ebuild | 52 ----------------------
18 3 files changed, 95 deletions(-)
19
20 diff --git a/app-text/libspectre/Manifest b/app-text/libspectre/Manifest
21 index 23d84a9fb97..54fa010bd95 100644
22 --- a/app-text/libspectre/Manifest
23 +++ b/app-text/libspectre/Manifest
24 @@ -1,2 +1 @@
25 -DIST libspectre-0.2.7.tar.gz 387947 BLAKE2B 1d8c5ce045e90cb10a159615d3b011dafd24fa07c8bbd79349663880d077b53944495cba7f5a77e8e32735123762d0f6fcd2feb382258b8d35107284f72243b8 SHA512 2e60905f7eeed9ac6ec3b5f8b47a7dad85178c8c35a63ba097ef6088dd334f7fde5797ecb05cf67532b759d07a65006427914d2cd6b09107ecc90620c9541794
26 DIST libspectre-0.2.8.tar.gz 421791 BLAKE2B bbefa06cf80ecb91f0f780493e1829eadc34061b6f2b3004f9ae01e06fc4609edd440df290be9ff1c9f43e580b53791aae033feb4115743a0f03f703bc18e0c7 SHA512 ebbe7f6adcbc7f7d6af61f24e23b114116c878755dbe90f1163546c1284a005b4d539be01986c1f940611e84141ca19768b8effc2abf1013606da7c93547da86
27
28 diff --git a/app-text/libspectre/files/libspectre-0.2.7-gs918.patch b/app-text/libspectre/files/libspectre-0.2.7-gs918.patch
29 deleted file mode 100644
30 index e9a4eda192b..00000000000
31 --- a/app-text/libspectre/files/libspectre-0.2.7-gs918.patch
32 +++ /dev/null
33 @@ -1,42 +0,0 @@
34 -Fixed error namespace for >=ghostscript-gpl-9.18
35 -
36 -https://bugs.gentoo.org/563540
37 -
38 ---- libspectre-0.2.7/libspectre/spectre-gs.c
39 -+++ libspectre-0.2.7/libspectre/spectre-gs.c
40 -@@ -43,12 +43,12 @@
41 -
42 - if (code <= -100) {
43 - switch (code) {
44 -- case e_Fatal:
45 -+ case gs_error_Fatal:
46 - fprintf (stderr, "fatal internal error %d", code);
47 - return TRUE;
48 - break;
49 -
50 -- case e_ExecStackUnderflow:
51 -+ case gs_error_ExecStackUnderflow:
52 - fprintf (stderr, "stack overflow %d", code);
53 - return TRUE;
54 - break;
55 -@@ -109,9 +109,9 @@
56 - set = _spectre_strdup_printf ("%d %d translate\n", -x, -y);
57 - error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set),
58 - 0, &exit_code);
59 -- error = error == e_NeedInput ? 0 : error;
60 -+ error = error == gs_error_NeedInput ? 0 : error;
61 - free (set);
62 -- if (error != e_NeedInput && critic_error_code (error)) {
63 -+ if (error != gs_error_NeedInput && critic_error_code (error)) {
64 - fclose (fd);
65 - return FALSE;
66 - }
67 -@@ -126,7 +126,7 @@
68 - read = fread (buf, sizeof (char), to_read, fd);
69 - error = gsapi_run_string_continue (ghostscript_instance,
70 - buf, read, 0, &exit_code);
71 -- error = error == e_NeedInput ? 0 : error;
72 -+ error = error == gs_error_NeedInput ? 0 : error;
73 - left -= read;
74 - }
75 -
76
77 diff --git a/app-text/libspectre/libspectre-0.2.7.ebuild b/app-text/libspectre/libspectre-0.2.7.ebuild
78 deleted file mode 100644
79 index d250899af08..00000000000
80 --- a/app-text/libspectre/libspectre-0.2.7.ebuild
81 +++ /dev/null
82 @@ -1,52 +0,0 @@
83 -# Copyright 1999-2017 Gentoo Foundation
84 -# Distributed under the terms of the GNU General Public License v2
85 -
86 -EAPI=4
87 -inherit autotools eutils
88 -
89 -DESCRIPTION="A library for rendering Postscript documents"
90 -HOMEPAGE="https://www.freedesktop.org/wiki/Software/libspectre"
91 -SRC_URI="https://libspectre.freedesktop.org/releases/${P}.tar.gz"
92 -
93 -LICENSE="GPL-2"
94 -SLOT="0"
95 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-solaris"
96 -IUSE="debug doc static-libs"
97 -
98 -RDEPEND=">=app-text/ghostscript-gpl-8.62"
99 -DEPEND="${RDEPEND}
100 - virtual/pkgconfig
101 - doc? ( app-doc/doxygen )"
102 -
103 -# does not actually test anything, see bug 362557
104 -RESTRICT="test"
105 -
106 -DOCS="NEWS README TODO"
107 -
108 -src_prepare() {
109 - epatch "${FILESDIR}"/${PN}-0.2.0-interix.patch
110 - has_version \>=app-text/ghostscript-gpl-9.18 \
111 - && epatch "${FILESDIR}"/${PN}-0.2.7-gs918.patch
112 - eautoreconf # need new libtool for interix
113 -}
114 -
115 -src_configure() {
116 - econf \
117 - $(use_enable debug asserts) \
118 - $(use_enable debug checks) \
119 - $(use_enable static-libs static) \
120 - --disable-test
121 -}
122 -
123 -src_compile() {
124 - emake
125 - if use doc; then
126 - doxygen || die
127 - fi
128 -}
129 -
130 -src_install() {
131 - default
132 - use doc && dohtml -r doc/html/*
133 - find "${D}" -name '*.la' -exec rm -f {} +
134 -}