app-text/fbpdf: bump to support mupdf-1.10, bug #606876
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 23 Jan 2017 21:57:33 +0000 (21:57 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 23 Jan 2017 21:57:42 +0000 (21:57 +0000)
Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/606876

Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-text/fbpdf/Manifest
app-text/fbpdf/fbpdf-0_p20161202.ebuild [new file with mode: 0644]
app-text/fbpdf/files/fbpdf-0_p20161202-format.patch [new file with mode: 0644]

index ce49a8c1721d021800aef33d2c6813ee29ecc59b..199046ebfe23a06509e3a566f4d901758e058ddb 100644 (file)
@@ -1 +1,2 @@
 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
diff --git a/app-text/fbpdf/fbpdf-0_p20161202.ebuild b/app-text/fbpdf/fbpdf-0_p20161202.ebuild
new file mode 100644 (file)
index 0000000..0dd4cc6
--- /dev/null
@@ -0,0 +1,41 @@
+# 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
+}
diff --git a/app-text/fbpdf/files/fbpdf-0_p20161202-format.patch b/app-text/fbpdf/files/fbpdf-0_p20161202-format.patch
new file mode 100644 (file)
index 0000000..0b48d6b
--- /dev/null
@@ -0,0 +1,14 @@
+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;