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/, app-text/libspectre/files/
Date: Thu, 07 May 2020 07:54:30
Message-Id: 1588838040.a6ffbf1fe25b2102f985ec1b86ad46f89c9a4516.asturm@gentoo
1 commit: a6ffbf1fe25b2102f985ec1b86ad46f89c9a4516
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 6 20:51:24 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu May 7 07:54:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6ffbf1f
7
8 app-text/libspectre: 0.2.9 version bump, EAPI-7 bump
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/libspectre/Manifest | 1 +
14 .../files/libspectre-0.2.0-interix.patch | 6 +--
15 app-text/libspectre/libspectre-0.2.9.ebuild | 54 ++++++++++++++++++++++
16 3 files changed, 58 insertions(+), 3 deletions(-)
17
18 diff --git a/app-text/libspectre/Manifest b/app-text/libspectre/Manifest
19 index 54fa010bd95..8afc9c293ae 100644
20 --- a/app-text/libspectre/Manifest
21 +++ b/app-text/libspectre/Manifest
22 @@ -1 +1,2 @@
23 DIST libspectre-0.2.8.tar.gz 421791 BLAKE2B bbefa06cf80ecb91f0f780493e1829eadc34061b6f2b3004f9ae01e06fc4609edd440df290be9ff1c9f43e580b53791aae033feb4115743a0f03f703bc18e0c7 SHA512 ebbe7f6adcbc7f7d6af61f24e23b114116c878755dbe90f1163546c1284a005b4d539be01986c1f940611e84141ca19768b8effc2abf1013606da7c93547da86
24 +DIST libspectre-0.2.9.tar.gz 433384 BLAKE2B ed75a7013763a86c0f0702e0e47dcfb8401db6c957ed4851ecc85e27db6a49c8d4dae6443b302bcce5b0ae0da18dce3294a010eee5531a253020a650c19388c5 SHA512 7c24b5c83c6d356c89417d09dc76566afbe886ec189fe80d030a239c23ad25b061db071768117fa06805aa3d86f749fb232b7491bd7d467f26a40e348e74d5d2
25
26 diff --git a/app-text/libspectre/files/libspectre-0.2.0-interix.patch b/app-text/libspectre/files/libspectre-0.2.0-interix.patch
27 index 7b607542dfa..8f295633185 100644
28 --- a/app-text/libspectre/files/libspectre-0.2.0-interix.patch
29 +++ b/app-text/libspectre/files/libspectre-0.2.0-interix.patch
30 @@ -1,6 +1,6 @@
31 -diff -ru libspectre-0.2.0.orig/libspectre/spectre-utils.c libspectre-0.2.0/libspectre/spectre-utils.c
32 ---- libspectre-0.2.0.orig/libspectre/spectre-utils.c 2008-05-06 08:35:07 +0200
33 -+++ libspectre-0.2.0/libspectre/spectre-utils.c 2008-05-06 08:49:51 +0200
34 +diff -ru libspectre/spectre-utils.c libspectre/spectre-utils.c
35 +--- a/libspectre/spectre-utils.c 2008-05-06 08:35:07 +0200
36 ++++ b/libspectre/spectre-utils.c 2008-05-06 08:49:51 +0200
37 @@ -148,6 +148,17 @@
38 spectre_strdup_vprintf (const char *format,
39 va_list args)
40
41 diff --git a/app-text/libspectre/libspectre-0.2.9.ebuild b/app-text/libspectre/libspectre-0.2.9.ebuild
42 new file mode 100644
43 index 00000000000..0053bce742a
44 --- /dev/null
45 +++ b/app-text/libspectre/libspectre-0.2.9.ebuild
46 @@ -0,0 +1,54 @@
47 +# Copyright 1999-2020 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit autotools
53 +
54 +DESCRIPTION="Library for rendering Postscript documents"
55 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/libspectre"
56 +SRC_URI="https://libspectre.freedesktop.org/releases/${P}.tar.gz"
57 +
58 +LICENSE="GPL-2"
59 +SLOT="0"
60 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
61 +IUSE="debug doc"
62 +
63 +BDEPEND="
64 + virtual/pkgconfig
65 + doc? ( app-doc/doxygen )
66 +"
67 +RDEPEND=">=app-text/ghostscript-gpl-9.24"
68 +DEPEND="${RDEPEND}"
69 +
70 +# does not actually test anything, see bug 362557
71 +RESTRICT="test"
72 +
73 +PATCHES=( "${FILESDIR}"/${PN}-0.2.0-interix.patch )
74 +
75 +src_prepare() {
76 + default
77 + eautoreconf # need new libtool for interix
78 +}
79 +
80 +src_configure() {
81 + local myeconfargs=(
82 + $(use_enable debug asserts)
83 + $(use_enable debug checks)
84 + --disable-test
85 + )
86 + econf "${myeconfargs[@]}"
87 +}
88 +
89 +src_compile() {
90 + emake
91 + if use doc; then
92 + doxygen || die
93 + fi
94 +}
95 +
96 +src_install() {
97 + use doc && local HTML_DOCS=( doc/html/. )
98 + default
99 + find "${D}" -name '*.la' -type f -delete || die
100 +}