1 |
commit: 4e50f73bb773fd6e0e2ae9a7b199c2d0f0d6eaea |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 3 21:41:03 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 3 21:43:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e50f73b |
7 |
|
8 |
app-text/fbpdf: depend on only direct pkg-config files |
9 |
|
10 |
Reported-by: John Helmert III (ajak) |
11 |
Bug: https://bugs.gentoo.org/735588 |
12 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild | 43 ++++++++++++++++++++++ |
16 |
.../files/fbpdf-0_p20190202-drop-unused.patch | 16 ++++++++ |
17 |
2 files changed, 59 insertions(+) |
18 |
|
19 |
diff --git a/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild b/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..79bea0cffbd |
22 |
--- /dev/null |
23 |
+++ b/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild |
24 |
@@ -0,0 +1,43 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit toolchain-funcs vcs-snapshot |
31 |
+ |
32 |
+COMMIT="dfe9f0067549f759cdc04f2f62b4f89cd6e1b199" |
33 |
+ |
34 |
+DESCRIPTION="framebuffer pdf and djvu viewer" |
35 |
+HOMEPAGE="https://github.com/aligrudi/fbpdf" |
36 |
+ |
37 |
+SRC_URI="https://github.com/aligrudi/fbpdf/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT}.tar.gz" |
38 |
+ |
39 |
+LICENSE="BSD ISC" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ >=app-text/mupdf-1.10:0= |
45 |
+ app-text/djvu:0= |
46 |
+ !media-gfx/fbida[fbcon(-)] |
47 |
+" |
48 |
+ |
49 |
+DEPEND="${RDEPEND}" |
50 |
+ |
51 |
+BDEPEND="virtual/pkgconfig" |
52 |
+ |
53 |
+S=${WORKDIR}/${P}-${COMMIT} |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${P}-use-pkg-config.patch |
57 |
+ "${FILESDIR}"/${P}-printf.patch |
58 |
+) |
59 |
+ |
60 |
+src_compile() { |
61 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ dobin fbpdf fbdjvu |
66 |
+ dodoc README |
67 |
+} |
68 |
|
69 |
diff --git a/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch b/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch |
70 |
new file mode 100644 |
71 |
index 00000000000..3e60b914943 |
72 |
--- /dev/null |
73 |
+++ b/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch |
74 |
@@ -0,0 +1,16 @@ |
75 |
+--- a/Makefile |
76 |
++++ b/Makefile |
77 |
+@@ -12,11 +12,11 @@ clean: |
78 |
+ |
79 |
+ # pdf support using mupdf |
80 |
+ fbpdf: fbpdf.o mupdf.o draw.o |
81 |
+- $(CC) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs mupdf) -lm |
82 |
++ $(CC) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs mupdf) |
83 |
+ |
84 |
+ # djvu support |
85 |
+ fbdjvu: fbpdf.o djvulibre.o draw.o |
86 |
+- $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs ddjvuapi) -ljpeg -lm -lpthread |
87 |
++ $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs ddjvuapi) |
88 |
+ |
89 |
+ # pdf support using poppler |
90 |
+ poppler.o: poppler.c |