diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-03 23:26:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-03 23:26:49 +0100 |
commit | fd7bf06d88ac431e7d531701551815fd63c73963 (patch) | |
tree | 6ec536a36d9e6a2e9096f2b385441c5c56f44922 /app-text/apvlv/apvlv-0.4.0-r2.ebuild | |
parent | 3cf27339901a7ca15df33f6ea134daa93888d5d0 (diff) |
gentoo auto-resync : 03:05:2023 - 23:26:49
Diffstat (limited to 'app-text/apvlv/apvlv-0.4.0-r2.ebuild')
-rw-r--r-- | app-text/apvlv/apvlv-0.4.0-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-text/apvlv/apvlv-0.4.0-r2.ebuild b/app-text/apvlv/apvlv-0.4.0-r2.ebuild new file mode 100644 index 000000000000..afd75022a0c5 --- /dev/null +++ b/app-text/apvlv/apvlv-0.4.0-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 2022-2023 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 +} |