diff --git a/app-text/pdf2htmlEX/files/pdf2htmlEX-0.12-fix-poppler.patch b/app-text/pdf2htmlEX/files/pdf2htmlEX-0.12-fix-poppler.patch new file mode 100644 index 0000000000..8343a7b81e --- /dev/null +++ b/app-text/pdf2htmlEX/files/pdf2htmlEX-0.12-fix-poppler.patch @@ -0,0 +1,25 @@ +From 15436399bc8ad127dae6e7bb1597202420f084d6 Mon Sep 17 00:00:00 2001 +From: microcai +Date: Sun, 26 Apr 2015 05:29:40 +0800 +Subject: [PATCH] ab + +--- + src/BackgroundRenderer/SplashBackgroundRenderer.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/BackgroundRenderer/SplashBackgroundRenderer.cc b/src/BackgroundRenderer/SplashBackgroundRenderer.cc +index 7a9f79b..06072a9 100644 +--- a/src/BackgroundRenderer/SplashBackgroundRenderer.cc ++++ b/src/BackgroundRenderer/SplashBackgroundRenderer.cc +@@ -29,7 +29,7 @@ using std::unique_ptr; + const SplashColor SplashBackgroundRenderer::white = {255,255,255}; + + SplashBackgroundRenderer::SplashBackgroundRenderer(const string & imgFormat, HTMLRenderer * html_renderer, const Param & param) +- : SplashOutputDev(splashModeRGB8, 4, gFalse, (SplashColorPtr)(&white), gTrue, gTrue) ++ : SplashOutputDev(splashModeRGB8, 4, gFalse, (SplashColorPtr)(&white), gTrue, splashThinLineDefault, gTrue) + , html_renderer(html_renderer) + , param(param) + , format(imgFormat) +-- +2.3.6 + diff --git a/app-text/pdf2htmlEX/pdf2htmlEX-0.12.ebuild b/app-text/pdf2htmlEX/pdf2htmlEX-0.12.ebuild new file mode 100644 index 0000000000..bcd149842e --- /dev/null +++ b/app-text/pdf2htmlEX/pdf2htmlEX-0.12.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit cmake-utils vcs-snapshot + +DESCRIPTION="A PDF to HTML converter" +HOMEPAGE="http://coolwanglu.github.com/pdf2htmlEX/" +SRC_URI="https://github.com/coolwanglu/${PN}/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2 GPL-3" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="+svg" + +RDEPEND=">=app-text/poppler-0.26[cjk,png,jpeg2k] + >=media-gfx/fontforge-20141014 + svg? ( + >=x11-libs/cairo-1.10[svg] + media-libs/freetype + )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare(){ + epatch ${FILESDIR}/pdf2htmlEX-0.12-fix-poppler.patch + epatch_user + mycmakeargs=" + $(cmake-utils_use_enable svg SVG) + " + vcs-snapshot_src_parpare + cmake-utils_src_parpare +}