Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/606876
Package-Manager: Portage-2.3.3, Repoman-2.3.1
DIST fbpdf-0_p20160409.tar.gz 7788 SHA256 ae17aa7fb1e472df5fa1be42505305705dff15bdf92006311816b66f2a2e4f3f SHA512 e939f2d1fd9dccfb778756c3dd3f1b4d8c413e55d17fb68d7bfbd42a541a30b6bdc8f190e81d18ebc45c7e4e46ce48a559b9c564710fb66b292f043f7351b684 WHIRLPOOL cb86cdaecf8e35610916f4f2bc990b810c56f200aba96a036a6e65c72258e93d6782a97ffc8356e32c58aeba7126d698e802c77d47553a8ebbf1d915aa04ade7
+DIST fbpdf-0_p20161202.tar.gz 7795 SHA256 9cd0fb4cb2a6602606b7e24cb9b1e81c663b07f0a982236f0de5dc25b4653823 SHA512 c122f12485b9e0055bd5b60d66a5034d20738c6a5a1a9f384ef8cb93e4c6b1275434eea884398590db2b06a746cc0ff00df29ecdc5faecc1730a022435164107 WHIRLPOOL dd576141183548aaa1036eb36524b1c7bf8df6d3645fca11846323687a7b3e6a80d09e709980e8da41ac82763c16b69247be1a33aa758191f79d37d6bb936079
--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="framebuffer pdf and djvu viewer"
+HOMEPAGE="http://repo.or.cz/fbpdf.git"
+SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=app-text/mupdf-1.10:0=
+ dev-lang/mujs:0=
+ media-libs/freetype:2=
+ media-libs/jbig2dec:0=
+ virtual/jpeg:0=
+ media-libs/openjpeg:0=
+ dev-libs/openssl:0=
+ app-text/djvu:0=
+"
+
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+
+PATCHES=("${FILESDIR}"/${P}-format.patch)
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin fbpdf fbdjvu
+ dodoc README
+}
--- /dev/null
+diff --git a/fbpdf.c b/fbpdf.c
+index 6caa08f..48d12f5 100644
+--- a/fbpdf.c
++++ b/fbpdf.c
+@@ -343,3 +343,3 @@ static void mainloop(void)
+ static char *usage =
+- "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename\n";
++ "usage: fbpdf [-r rotation] [-z zoom x10] [-p page] filename";
+
+@@ -349,3 +349,3 @@ int main(int argc, char *argv[])
+ if (argc < 2) {
+- printf(usage);
++ puts(usage);
+ return 1;