mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
gui-libs/qdocumentview: new package, add 0.3.0.1
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
1
gui-libs/qdocumentview/Manifest
Normal file
1
gui-libs/qdocumentview/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST qdocumentview-v0.3.0.1.tar.bz2 30638 BLAKE2B f2bd38f27cbb93b3fedcb1f9e8c809e41aef59f4d59c5a3b240ec23b473a1335ac3f74788e92a4991096bbb49049b9c1ac6b647ab472588c92270126ec58a65d SHA512 e0bc514b21d423df0ed735a72decf50ad6a82747fe7273cf60e64bd07ff4f23e27b2218d8ab01ab6e7b02980f006f9c61a695eb482b30b06140ecdc82f26a127
|
||||
@@ -0,0 +1,27 @@
|
||||
https://gitlab.com/extraqt/qdocumentview/-/merge_requests/1
|
||||
Fix automagic dependencies.
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -35,10 +35,10 @@ elif get_option('use_qt_version') == 'qt6'
|
||||
|
||||
endif
|
||||
|
||||
-DjVuLibre = dependency( 'ddjvuapi', required: false )
|
||||
-LibSpectre = dependency( 'libspectre', required: false )
|
||||
+DjVuLibre = dependency( 'ddjvuapi', required: get_option('djvu') )
|
||||
+LibSpectre = dependency( 'libspectre', required: get_option('postscript') )
|
||||
|
||||
-Cups = dependency( 'cups', method: 'pkg-config', required: false )
|
||||
+Cups = dependency( 'cups', method: 'pkg-config', required: get_option('cups') )
|
||||
add_project_arguments( '-DHAVE_CUPS=@0@'.format( Cups.found() ), language : 'cpp' )
|
||||
|
||||
Deps = [ QtBase, Poppler ]
|
||||
--- a/meson_options.txt
|
||||
+++ b/meson_options.txt
|
||||
@@ -5,3 +5,6 @@ option(
|
||||
value: 'qt6',
|
||||
description: 'Select the Qt version to use'
|
||||
)
|
||||
+option('postscript', type: 'feature', value: 'auto', description: 'Enable PostScript support')
|
||||
+option('djvu', type: 'feature', value: 'auto', description: 'Enable DjVu support')
|
||||
+option('cups', type: 'feature', value: 'auto', description: 'Enable print support')
|
||||
11
gui-libs/qdocumentview/metadata.xml
Normal file
11
gui-libs/qdocumentview/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>pastalian46@gmail.com</email>
|
||||
<name>Takuya Wakazono</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="gitlab">extraqt/qdocumentview</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
38
gui-libs/qdocumentview/qdocumentview-0.3.0.1.ebuild
Normal file
38
gui-libs/qdocumentview/qdocumentview-0.3.0.1.ebuild
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
Reference in New Issue
Block a user