Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/blahtexml/, app-text/blahtexml/files/
Date: Mon, 19 Apr 2021 20:54:46
Message-Id: 1618865645.5394e99bedc11545e2afe5a8d829df2304763a0c.sam@gentoo
1 commit: 5394e99bedc11545e2afe5a8d829df2304763a0c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 19 20:40:34 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 19 20:54:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5394e99b
7
8 app-text/blahtexml: port to EAPI 7
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/blahtexml/blahtexml-0.9.ebuild | 20 ++++++++++++++------
13 app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch | 8 ++++----
14 2 files changed, 18 insertions(+), 10 deletions(-)
15
16 diff --git a/app-text/blahtexml/blahtexml-0.9.ebuild b/app-text/blahtexml/blahtexml-0.9.ebuild
17 index 5e893a55f26..f470b619764 100644
18 --- a/app-text/blahtexml/blahtexml-0.9.ebuild
19 +++ b/app-text/blahtexml/blahtexml-0.9.ebuild
20 @@ -1,9 +1,9 @@
21 # Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 +EAPI=7
26
27 -inherit epatch toolchain-funcs
28 +inherit toolchain-funcs
29
30 DESCRIPTION="TeX-to-MathML converter"
31 HOMEPAGE="http://gva.noekeon.org/blahtexml"
32 @@ -15,16 +15,24 @@ KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 x86"
33 IUSE="doc"
34
35 RDEPEND="dev-libs/xerces-c"
36 -DEPEND="${RDEPEND}
37 +DEPEND="${RDEPEND}"
38 +BDEPEND="
39 virtual/pkgconfig
40 doc? (
41 app-text/texlive-core
42 dev-libs/libxslt
43 - dev-tex/latex2html )"
44 + dev-tex/latex2html
45 + )
46 +"
47 +
48 +PATCHES=(
49 + "${FILESDIR}"/${P}-{Makefile,gcc-4.7}.patch
50 +)
51
52 src_prepare() {
53 - tc-export CC CXX
54 - epatch "${FILESDIR}"/${P}-{Makefile,gcc-4.7}.patch
55 + default
56 +
57 + tc-export CC CXX PKG_CONFIG
58 }
59
60 src_compile() {
61
62 diff --git a/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch
63 index c570e1de679..9b3e53047fb 100644
64 --- a/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch
65 +++ b/app-text/blahtexml/files/blahtexml-0.9-gcc-4.7.patch
66 @@ -2,8 +2,8 @@ Description: Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> includes.
67 Author: Cyril Brulebois <kibi@××××××.org>
68 Bug-Debian: http://bugs.debian.org/667116
69
70 ---- blahtexml-0.9.orig/Source/main.cpp
71 -+++ blahtexml-0.9/Source/main.cpp
72 +--- a/Source/main.cpp
73 ++++ b/Source/main.cpp
74 @@ -24,6 +24,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG
75 #include <stdlib.h>
76 #include <sstream>
77 @@ -12,8 +12,8 @@ Bug-Debian: http://bugs.debian.org/667116
78
79 using namespace std;
80 using namespace blahtex;
81 ---- blahtexml-0.9.orig/Source/mainPng.cpp
82 -+++ blahtexml-0.9/Source/mainPng.cpp
83 +--- a/Source/mainPng.cpp
84 ++++ b/Source/mainPng.cpp
85 @@ -27,6 +27,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIG
86 #include <stdio.h>
87 #include <stdlib.h>