dev-lua/lua-spawn: bump to support lua 5.4
[sgilles-overlay.git] / app-text / fbpdf / fbpdf-0_p20190203.ebuild
blobde621a905f2bf6d4ee6fa2727b3cae6681174e7a
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 git-r3
9 DESCRIPTION="framebuffer pdf and djvu viewer"
10 HOMEPAGE="http://repo.or.cz/fbpdf.git"
11 EGIT_REPO_URI="https://github.com/aligrudi/fbpdf"
12 EGIT_COMMIT="dfe9f0067549f759cdc04f2f62b4f89cd6e1b199"
14 LICENSE="ISC"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86 ~arm"
17 IUSE="djvu libressl"
19 RDEPEND="
20 >=app-text/mupdf-1.10:0=
21 media-libs/freetype:2=
22 media-libs/jbig2dec:0=
23 virtual/jpeg:0=
24 media-libs/openjpeg:0=
25 !libressl? ( dev-libs/openssl:0= )
26 libressl? ( dev-libs/libressl:0= )
27 djvu? ( app-text/djvu:0= )
30 DEPEND="${RDEPEND}"
32 PATCHES=(
33 "${FILESDIR}/0001-disable-arrow-keys.patch"
34 "${FILESDIR}/0002-smoother-scrolling.patch"
35 "${FILESDIR}/0003-use-puts.patch"
36 "${FILESDIR}/0004-redraw-on-SIGUSR1.patch"
37 "${FILESDIR}/0005-use-pkg-config.patch"
40 src_compile() {
41 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" fbpdf
42 use djvu && emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" fbdjvu
45 src_install() {
46 dobin fbpdf
47 use djvu && dobin fbdjvu
48 dodoc README