mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 15:14:38 +00:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41919 Signed-off-by: Sam James <sam@gentoo.org>
60 lines
1.3 KiB
Bash
60 lines
1.3 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit xdg cmake desktop
|
|
|
|
DESCRIPTION="Alf's PDF/DJVU/EPUB Viewer like Vim"
|
|
HOMEPAGE="https://github.com/naihe2010/apvlv/"
|
|
SRC_URI="https://github.com/naihe2010/apvlv/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="debug djvu"
|
|
|
|
RDEPEND="
|
|
app-text/ebook-tools
|
|
>=app-text/poppler-0.5.0:=[cairo,xpdf-headers(+)]
|
|
dev-libs/glib:2
|
|
dev-libs/libxml2:=
|
|
net-libs/webkit-gtk:4.1=
|
|
x11-libs/cairo
|
|
x11-libs/gdk-pixbuf:2
|
|
x11-libs/gtk+:3
|
|
x11-libs/pango
|
|
djvu? ( app-text/djvu )
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
app-text/ghostscript-gpl
|
|
media-libs/freetype
|
|
"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-cmake-cxxflags.patch
|
|
"${FILESDIR}"/${P}-icon-r1.patch
|
|
# https://github.com/naihe2010/apvlv/commit/39f783103e99b954991183cea2b5ccbd9add2a1a
|
|
"${FILESDIR}"/${P}-webkitgtk4.1.patch
|
|
)
|
|
src_prepare() {
|
|
cmake_src_prepare
|
|
}
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DAPVLV_WITH_DJVU=$(usex djvu)
|
|
-DAPVLV_ENABLE_DEBUG=$(usex debug)
|
|
-DAPVLV_WITH_TXT=ON
|
|
-DDOCDIR="/usr/share/doc/${PF}"
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
src_install() {
|
|
cmake_src_install
|
|
# https://github.com/naihe2010/apvlv/issues/84
|
|
newicon -s 32 icons/pdf.png x-office-document.png
|
|
}
|