Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pdf2htmlEX/
Date: Sat, 30 Dec 2017 21:57:57
Message-Id: 1514671051.501d60fe95831fe5b55ab586fddbc966d5a39127.dilfridge@gentoo
1 commit: 501d60fe95831fe5b55ab586fddbc966d5a39127
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 30 21:57:15 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 30 21:57:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501d60fe
7
8 app-text/pdf2htmlEX: Enforce building without PIE, bug 642210
9
10 To do this cleanly we require at least gcc-6 (otherwise the ebuild
11 becomes one big mess).
12
13 Closes: https://bugs.gentoo.org/642210
14 Package-Manager: Portage-2.3.19, Repoman-2.3.6
15
16 app-text/pdf2htmlEX/pdf2htmlEX-0.14.6.1.ebuild | 20 ++++++++++++++++++--
17 1 file changed, 18 insertions(+), 2 deletions(-)
18
19 diff --git a/app-text/pdf2htmlEX/pdf2htmlEX-0.14.6.1.ebuild b/app-text/pdf2htmlEX/pdf2htmlEX-0.14.6.1.ebuild
20 index d02dd44ec39..5b00b84e774 100644
21 --- a/app-text/pdf2htmlEX/pdf2htmlEX-0.14.6.1.ebuild
22 +++ b/app-text/pdf2htmlEX/pdf2htmlEX-0.14.6.1.ebuild
23 @@ -3,7 +3,7 @@
24
25 EAPI=6
26
27 -inherit cmake-utils
28 +inherit cmake-utils toolchain-funcs flag-o-matic
29
30 DESCRIPTION="A precise PDF to HTML converter"
31 HOMEPAGE="http://coolwanglu.github.io/pdf2htmlEX/"
32 @@ -14,7 +14,7 @@ SRC_URI="
33
34 LICENSE="GPL-3+"
35 SLOT="0"
36 -KEYWORDS=""
37 +KEYWORDS="~amd64"
38
39 IUSE=""
40
41 @@ -30,3 +30,19 @@ RDEPEND="${CDEPEND}
42 DEPEND="${CDEPEND}
43 virtual/pkgconfig
44 "
45 +
46 +pkg_pretend() {
47 + local ver=6.4.0
48 + local msg="${P} needs at least GCC ${ver} set to compile."
49 + if [[ ${MERGE_TYPE} != binary ]]; then
50 + if ! version_is_at_least ${ver} $(gcc-fullversion); then
51 + die ${msg}
52 + fi
53 + fi
54 +}
55 +
56 +src_configure() {
57 + append-cflags -no-pie
58 + append-cxxflags -no-pie
59 + cmake-utils_src_configure
60 +}