summaryrefslogtreecommitdiff
path: root/app-text/fbpdf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/fbpdf
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/fbpdf')
-rw-r--r--app-text/fbpdf/Manifest6
-rw-r--r--app-text/fbpdf/fbpdf-0_p20161202.ebuild43
-rw-r--r--app-text/fbpdf/files/fbpdf-0_p20161202-format.patch14
-rw-r--r--app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch9
-rw-r--r--app-text/fbpdf/metadata.xml9
5 files changed, 81 insertions, 0 deletions
diff --git a/app-text/fbpdf/Manifest b/app-text/fbpdf/Manifest
new file mode 100644
index 000000000000..8b8a92d20968
--- /dev/null
+++ b/app-text/fbpdf/Manifest
@@ -0,0 +1,6 @@
+AUX fbpdf-0_p20161202-format.patch 410 SHA256 dd16cf1fa3a96395712501a8d186955f3ac7f429f0de3537379a531513260e89 SHA512 d450d8afe3547a0837147daee207352f257d7009c39c64867e779ac8d099e2aba5ad6fa931d8139daa4a5a8cb1022fc8faa85adc9be8833aa3b8633f05f6292a WHIRLPOOL 2e3c7450ad38ec83c829b6c672755662788b8f25ee32dfc733d53754548a5a3b475c14cf56b1ef15ab017d9e1efdec74a374bb907cc5d634248a42e8bfabd06e
+AUX fbpdf-0_p20161202-mupdfthird.patch 262 SHA256 fc4d98647f31825788edbb582079059a8688cec89327e19713a0bbc2b61de251 SHA512 aa469d088373ac79998642bc6d3c6ac8eb0138d5495eb95cf6cbd7e13ea1d346a59a72ea860fe7e6b6ba669ac50cdb120432fa9011677515b021ef3121a2a657 WHIRLPOOL 51f2a2589a3f70a4c11185b6b514bf43da57a1b23f0531f661b1c4cbca9fb8b4423ce06a5c1b635daa660fe10ed1d6cb0093327d23c15f9653c514a801b02335
+DIST fbpdf-0_p20161202.tar.gz 7795 SHA256 9cd0fb4cb2a6602606b7e24cb9b1e81c663b07f0a982236f0de5dc25b4653823 SHA512 c122f12485b9e0055bd5b60d66a5034d20738c6a5a1a9f384ef8cb93e4c6b1275434eea884398590db2b06a746cc0ff00df29ecdc5faecc1730a022435164107 WHIRLPOOL dd576141183548aaa1036eb36524b1c7bf8df6d3645fca11846323687a7b3e6a80d09e709980e8da41ac82763c16b69247be1a33aa758191f79d37d6bb936079
+EBUILD fbpdf-0_p20161202.ebuild 781 SHA256 a05ffdc0fe6e0d7e3abeb2a68f2405269065e7609e844c1751e02be12223645c SHA512 23eaec8913b35dfcc98a7301fe36ea804c9d54f795fafea1f37252c97429ac6e2a2c3b5858bb366cd64aee12c52644835c3e24e511c50ab17df4a549a545be8e WHIRLPOOL a96be97cb77dc57956571dc0714e35ab273893cc831b9f3189ebd9e9d2ab56dabe743f6c19954f845643661bd8218ef622fc65052f01fda2ae3100dbbd404f84
+MISC ChangeLog 572 SHA256 f076f16713aa99399360fee30d4033fc3e248104b79a3fc4ea1750ebc00a47be SHA512 24c375e4a8cf11250e8454e1d67224473213a334f3447e4aa5d66edeedf783513a1d55b4432680e117133f9803736a283a7c3275272c0d6ff3c1af83c41e920b WHIRLPOOL 5f05987a2c3ada4a7275bd317eff8870a923d9523bdf04ba2e86c5b40a803639c9285d7f3778446236954ac1fb26ffdfd413901beb0e5610c086c7359227fc64
+MISC metadata.xml 299 SHA256 e435d069f688da8661bc23fac22e48ba2eea714ba02f00705228f1d47fe000e6 SHA512 dbd6a3b7b1a02fac0cf201f618d1f17d4c992263e6face26f3bc94a8b7523e4194777bc742455823a6e5c72c2029e81c59048783679fb594c2991367ad86b2fe WHIRLPOOL 3779aae9558a4bbed71939bb36cee97ae1468b9a7405fe7af0dfb29fda4acbcd7081238f2aa39faa93fcae3d2cc16205bf3a039fd273eed31afa95f1093b6a92
diff --git a/app-text/fbpdf/fbpdf-0_p20161202.ebuild b/app-text/fbpdf/fbpdf-0_p20161202.ebuild
new file mode 100644
index 000000000000..02e5ea6ffd6a
--- /dev/null
+++ b/app-text/fbpdf/fbpdf-0_p20161202.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+ "${FILESDIR}"/${P}-mupdfthird.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
index 000000000000..0b48d6bff020
--- /dev/null
+++ b/app-text/fbpdf/files/fbpdf-0_p20161202-format.patch
@@ -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;
diff --git a/app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch b/app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch
new file mode 100644
index 000000000000..070b7c72ea26
--- /dev/null
+++ b/app-text/fbpdf/files/fbpdf-0_p20161202-mupdfthird.patch
@@ -0,0 +1,9 @@
+diff --git a/Makefile b/Makefile
+index f986689..374837f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -13,3 +13,3 @@ clean:
+ fbpdf: fbpdf.o mupdf.o draw.o
+- $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdfthird -lcrypto -lm
++ $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lcrypto -lm
+
diff --git a/app-text/fbpdf/metadata.xml b/app-text/fbpdf/metadata.xml
new file mode 100644
index 000000000000..248be000563e
--- /dev/null
+++ b/app-text/fbpdf/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+</pkgmetadata>