mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
app-text/qpdfview: drop 0.5
Closes: https://bugs.gentoo.org/952939 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
parent
600764272b
commit
094ecb581e
@ -1,2 +1 @@
|
||||
DIST qpdfview-0.5.tar.gz 925408 BLAKE2B 8ce8ff82893c90012ea1b35a582e87783da87e6eba3d4a10e78fe7810c269908ed1541cf40b1eb17fc474254131cebbc4832a3f46a2016262c485d48e222791b SHA512 1b6b479bb42f4568c21b5f6cb0c552c4323739ba9fe46cea80cc199f48b0b49a278e0a2fb0d21f83bafb467e43dd37352b99ef41795d140220bb82d704e03926
|
||||
DIST qpdfview-0.5_p2.tar.gz 928017 BLAKE2B adffb6b0007787231bbe89f9c96fdf089141b135838f81895807dd8208e3046f8eee751a7a6668a26ea9f54f8a2192d50b0afabd6fa76155f916d8ea1f10cbc0 SHA512 19bab7d39c454c3c49db18c5161b73956c055c07de7a44448f9f8bbf966c26a339343e12e99ed6af9b91bba15fbb26074a745c318abbc63ef85f5ab177e7140f
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
# Copyright 1999-2023 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"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}.0/+download/${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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user