To do this cleanly we require at least gcc-6 (otherwise the ebuild
becomes one big mess).
Closes: https://bugs.gentoo.org/642210
Package-Manager: Portage-2.3.19, Repoman-2.3.6
EAPI=6
-inherit cmake-utils
+inherit cmake-utils toolchain-funcs flag-o-matic
DESCRIPTION="A precise PDF to HTML converter"
HOMEPAGE="http://coolwanglu.github.io/pdf2htmlEX/"
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64"
IUSE=""
DEPEND="${CDEPEND}
virtual/pkgconfig
"
+
+pkg_pretend() {
+ local ver=6.4.0
+ local msg="${P} needs at least GCC ${ver} set to compile."
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ if ! version_is_at_least ${ver} $(gcc-fullversion); then
+ die ${msg}
+ fi
+ fi
+}
+
+src_configure() {
+ append-cflags -no-pie
+ append-cxxflags -no-pie
+ cmake-utils_src_configure
+}