blob: 79bea0cffbded5ff4bafee1995b495800c095d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
}
|