diff options
author | 2021-12-27 18:09:12 +0700 | |
---|---|---|
committer | 2021-12-27 18:09:12 +0700 | |
commit | e07ff57bad73fe198ad6e2e49749bf51319d6a20 (patch) | |
tree | c16d4f9ae055dd63b02e99a6ec21563ca1365734 /app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild | |
parent | net-dns/unbound: add 1.14.0 (diff) | |
download | gentoo-e07ff57bad73fe198ad6e2e49749bf51319d6a20.tar.gz gentoo-e07ff57bad73fe198ad6e2e49749bf51319d6a20.tar.bz2 gentoo-e07ff57bad73fe198ad6e2e49749bf51319d6a20.zip |
app-text/qpdfview: bump to the current snapshot
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild')
-rw-r--r-- | app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild b/app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild new file mode 100644 index 000000000000..e555d9864d04 --- /dev/null +++ b/app-text/qpdfview/qpdfview-0.4.18_p20211227.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PLOCALES="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 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" +# bzr revision 2137 +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2" + +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 ) + +src_prepare() { + default + + local mylrelease="$(qt5_get_bindir)"/lrelease + prepare_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 prepare_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 +} |