summaryrefslogtreecommitdiff
path: root/gui-libs/qdocumentview/qdocumentview-0.3.0.1.ebuild
blob: 414ae49ccc967c7ccf98344698ffaa11b6581d09 (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
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="Widget to render multi-page documents"
HOMEPAGE="https://gitlab.com/extraqt/qdocumentview"
SRC_URI="https://gitlab.com/extraqt/qdocumentview/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
S="${WORKDIR}/${PN}-v${PV}"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cups djvu postscript"

DEPEND="
	app-text/poppler[qt6]
	dev-qt/qtbase:6[gui,widgets]
	cups? ( net-print/cups )
	djvu? ( app-text/djvu )
	postscript? ( app-text/libspectre )
"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/${P}-fix-automagic.patch"
)

src_configure() {
	local emesonargs=(
		$(meson_feature cups)
		$(meson_feature djvu)
		$(meson_feature postscript)
	)
	meson_src_configure
}