app-text/fbpdf: add SIGUSR1 patches to make it act more like mupdf
[sgilles-overlay.git] / app-text / fbpdf / fbpdf-0_p20161202-r3.ebuild
blob3c0d36cbe4a281d1217cb094a5d36dcd21c3a9ad
1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Id$
5 EAPI=6
7 inherit toolchain-funcs
9 DESCRIPTION="framebuffer pdf and djvu viewer"
10 HOMEPAGE="http://repo.or.cz/fbpdf.git"
11 SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.gz"
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~arm"
16 IUSE="djvu libressl"
18 RDEPEND="
19 >=app-text/mupdf-1.10:0=
20 media-libs/freetype:2=
21 media-libs/jbig2dec:0=
22 virtual/jpeg:0=
23 media-libs/openjpeg:0=
24 !libressl? ( dev-libs/openssl:0= )
25 libressl? ( dev-libs/libressl:0= )
26 djvu? ( app-text/djvu:0= )
29 DEPEND="${RDEPEND}"
31 S=${WORKDIR}/${PN}
33 PATCHES=(
34 "${FILESDIR}/0001-disable-arrow-keys.patch"
35 "${FILESDIR}/0002-smoother-scrolling.patch"
36 "${FILESDIR}/0003-use-puts.patch"
37 "${FILESDIR}/0004-redraw-on-SIGUSR1.patch"
38 "${FILESDIR}/0005-use-pkg-config.patch"
41 src_compile() {
42 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" fbpdf
43 use djvu && emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" fbdjvu
46 src_install() {
47 dobin fbpdf
48 use djvu && dobin fbdjvu
49 dodoc README