summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-08-03 22:41:03 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-03 22:43:59 +0100
commit4e50f73bb773fd6e0e2ae9a7b199c2d0f0d6eaea (patch)
tree95404cc14e8e9383a130ca766b4edf37c68fccec /app-text/fbpdf
parentapp-text/fbpdf: handle user's CXX (diff)
downloadgentoo-4e50f73bb773fd6e0e2ae9a7b199c2d0f0d6eaea.tar.gz
gentoo-4e50f73bb773fd6e0e2ae9a7b199c2d0f0d6eaea.tar.bz2
gentoo-4e50f73bb773fd6e0e2ae9a7b199c2d0f0d6eaea.zip
app-text/fbpdf: depend on only direct pkg-config files
Reported-by: John Helmert III (ajak) Bug: https://bugs.gentoo.org/735588 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'app-text/fbpdf')
-rw-r--r--app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild43
-rw-r--r--app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch16
2 files changed, 59 insertions, 0 deletions
diff --git a/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild b/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild
new file mode 100644
index 000000000000..79bea0cffbde
--- /dev/null
+++ b/app-text/fbpdf/fbpdf-0_p20190202-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs vcs-snapshot
+
+COMMIT="dfe9f0067549f759cdc04f2f62b4f89cd6e1b199"
+
+DESCRIPTION="framebuffer pdf and djvu viewer"
+HOMEPAGE="https://github.com/aligrudi/fbpdf"
+
+SRC_URI="https://github.com/aligrudi/fbpdf/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT}.tar.gz"
+
+LICENSE="BSD ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=app-text/mupdf-1.10:0=
+ app-text/djvu:0=
+ !media-gfx/fbida[fbcon(-)]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="virtual/pkgconfig"
+
+S=${WORKDIR}/${P}-${COMMIT}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-use-pkg-config.patch
+ "${FILESDIR}"/${P}-printf.patch
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin fbpdf fbdjvu
+ dodoc README
+}
diff --git a/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch b/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch
new file mode 100644
index 000000000000..3e60b9149433
--- /dev/null
+++ b/app-text/fbpdf/files/fbpdf-0_p20190202-drop-unused.patch
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -12,11 +12,11 @@ clean:
+
+ # pdf support using mupdf
+ fbpdf: fbpdf.o mupdf.o draw.o
+- $(CC) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs mupdf) -lm
++ $(CC) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs mupdf)
+
+ # djvu support
+ fbdjvu: fbpdf.o djvulibre.o draw.o
+- $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs ddjvuapi) -ljpeg -lm -lpthread
++ $(CXX) -o $@ $^ $(LDFLAGS) $(shell $(PKG_CONFIG) --libs ddjvuapi)
+
+ # pdf support using poppler
+ poppler.o: poppler.c