summaryrefslogtreecommitdiff
path: root/app-text/qpdfview
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-10 00:01:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-10 00:01:14 +0100
commit17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch)
tree7166d1b58a582290a4ad23ff5882cca911b8035c /app-text/qpdfview
parenta0ce545d52f231499bf9f3644493113d8af58ec9 (diff)
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'app-text/qpdfview')
-rw-r--r--app-text/qpdfview/Manifest2
-rw-r--r--app-text/qpdfview/qpdfview-0.5_p1.ebuild90
2 files changed, 92 insertions, 0 deletions
diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest
index 1cee785e697c..67f296c2167c 100644
--- a/app-text/qpdfview/Manifest
+++ b/app-text/qpdfview/Manifest
@@ -1,4 +1,6 @@
AUX qpdfview-0.5-poppler-23.08.0-cxx17.patch 241 BLAKE2B 7b9d0bc4de0df643698b7599b9200a1ee531ccc8b6bba7190143ba876aa38f46f5c168ea3ca57bd2fda96d4e806e81ba0ca308215509cb2f03304627ded01204 SHA512 25bffb3478d0b1399359ba3ce2047640132a4a9d8e5311178087ca083a8db20a9c81bd12e8ba62dc8b3d9a018ba165c22cd12534f80680b633788f11dfd2f5ac
DIST qpdfview-0.5.tar.gz 925408 BLAKE2B 8ce8ff82893c90012ea1b35a582e87783da87e6eba3d4a10e78fe7810c269908ed1541cf40b1eb17fc474254131cebbc4832a3f46a2016262c485d48e222791b SHA512 1b6b479bb42f4568c21b5f6cb0c552c4323739ba9fe46cea80cc199f48b0b49a278e0a2fb0d21f83bafb467e43dd37352b99ef41795d140220bb82d704e03926
+DIST qpdfview-0.5_p1.tar.gz 922833 BLAKE2B 99d5e818b7c5dd5e583072043be6a282da64277f695cf4c0d38ad339dbdbcb100dcbbf161657f3622a324f691275beb6338c07fe2bbd62e1db896ec759ef162c SHA512 65720f6642b23a23b2d05b38334ce95424e69985b69223d978d4fd59b565d59a37eb43138c2f17fd37d8139b4cc223d5ab32dd18c62f2524792f42b44ba52189
EBUILD qpdfview-0.5.ebuild 2285 BLAKE2B 65ccbdefd0a552a39ad0c02c316448891811e88a0a273bfc050eec88ca33d8bcb6ee642f275ef127be0cbcb4c45d8d7d4589393939aec349af6486e2526d694a SHA512 b1501975ab013b3e81dde73616bf24c0146306a28c07397ddb114eb58ef8af1eebfa0a65da8440e68711ae4537665a8688da6ba2f76b37c67dd437eacfefd4f3
+EBUILD qpdfview-0.5_p1.ebuild 2282 BLAKE2B 7524f2951aea694631f447089104a49fe2ccbea635ffa5af0dfe5bddb2ead36b6f70c80ba47f7b1f5f13aabf9230d7c8db2d062b260bcca00b6419071ef47f4e SHA512 1afa0227392e703575d2dad9da1eb9641956b8ec05110b9b6410f6b344fb24eb808fec04724dca8fed1d217cfa950b639d8fc4bbe99183c18def2412134b99ea
MISC metadata.xml 534 BLAKE2B b4bf95f57c23a2784439269f4409a8d86d31744014195969d3a6d714af8cd2c1342e628756de638116aa31181a469d845ef41faa4aaa9588e11a70ee59d642e6 SHA512 b2e39acac6fb9e7c2922ba7701d37549395120a34899a18dcc47f7d59ace8eda4dac5e5b6522f4c1913a5116ecc027fcc8980b59c6294316d7155dd7c3ec59a9
diff --git a/app-text/qpdfview/qpdfview-0.5_p1.ebuild b/app-text/qpdfview/qpdfview-0.5_p1.ebuild
new file mode 100644
index 000000000000..caf4f6353347
--- /dev/null
+++ b/app-text/qpdfview/qpdfview-0.5_p1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PLOCALES="af ast az be ber bg bs ca cs da de el en_AU en_GB eo es eu fa fi fr gl he hi hr hu id it ja kk ko ku ky lt lv ms my nb nds oc pl pt pt_BR ro ru rue sk sr sv th tr ug uk uz vi zgh zh_CN zh_TW"
+inherit plocale qmake-utils xdg
+
+DESCRIPTION="A tabbed document viewer"
+HOMEPAGE="https://launchpad.net/qpdfview"
+# revision 2161
+SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="cups +dbus djvu fitz +pdf postscript +sqlite +svg synctex"
+
+REQUIRED_USE="?? ( fitz pdf )"
+
+BDEPEND="
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+RDEPEND="
+ cups? ( net-print/cups )
+ djvu? ( app-text/djvu )
+ fitz? ( >=app-text/mupdf-1.7:= )
+ postscript? ( app-text/libspectre )
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5[cups?]
+ dev-qt/qtwidgets:5
+ dbus? ( dev-qt/qtdbus:5 )
+ pdf? ( >=app-text/poppler-0.35[qt5]
+ dev-qt/qtxml:5 )
+ sqlite? ( dev-qt/qtsql:5[sqlite] )
+ svg? ( dev-qt/qtsvg:5 )
+ !svg? ( virtual/freedesktop-icon-theme )
+ synctex? ( app-text/texlive-core )"
+DEPEND="${RDEPEND}"
+
+DOCS=( CHANGES CONTRIBUTORS README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5-poppler-23.08.0-cxx17.patch
+)
+
+src_prepare() {
+ default
+
+ local mylrelease="$(qt5_get_bindir)"/lrelease
+ p_locale() {
+ "${mylrelease}" "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
+ }
+
+ rm_help() {
+ rm -f "help/help_${1}.html" || die "removing ${1} help file failed"
+ }
+
+ plocale_find_changes translations ${PN}_ .ts
+ plocale_for_each_locale p_locale
+ plocale_for_each_disabled_locale rm_help
+
+ # adapt for prefix
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
+}
+
+src_configure() {
+ local myconfig=() i=
+ for i in cups dbus djvu pdf svg synctex; do
+ use ${i} || myconfig+=(without_${i})
+ done
+ use fitz && myconfig+=(with_fitz)
+ use postscript || myconfig+=(without_ps)
+ use sqlite || myconfig+=(without_sql)
+
+ local myqmakeargs=(
+ qpdfview.pro
+ CONFIG+="${myconfig[*]}"
+ PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}"
+ )
+ eqmake5 "${myqmakeargs[@]}"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}