diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /app-text/qpdfview | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'app-text/qpdfview')
-rw-r--r-- | app-text/qpdfview/Manifest | 2 | ||||
-rw-r--r-- | app-text/qpdfview/qpdfview-0.4.18_p1.ebuild | 86 |
2 files changed, 88 insertions, 0 deletions
diff --git a/app-text/qpdfview/Manifest b/app-text/qpdfview/Manifest index 91d8333ed8dc..703d411ff9d2 100644 --- a/app-text/qpdfview/Manifest +++ b/app-text/qpdfview/Manifest @@ -1,4 +1,6 @@ AUX qpdfview-0.4.18-qt-5.15.patch 342 BLAKE2B 34ecd868ba9f38f43433f425c173b5cf07c0c9a2c7097e62d0af1b85bf49a3ef2f68064be88a12f300356633471ea8f04b69b66f9874cb5a8dbae3962021402b SHA512 ac6a742b957eb192117aece45cef8f2a9d76fe45d4cc87246dba8e52a15ac11c6892175fd73c8af3bd22a34ff36645828a5f12d66c240b6305d9621387fc3261 DIST qpdfview-0.4.18.tar.gz 786577 BLAKE2B 07ef444ba39435578481e549fcbbd2d97362c6bda3092a17f1daa8b8437febf50cd2f145cd5e80cc1be565c5a658e85a428314a1bcd2a5a38efce0830f1cffba SHA512 38741520b20e3ed7100e52982930abac26e994a69df68c54dfa7180be8b2a4f377b91ba03993bab67b0a505ad79d62164f0f168a6715f4306b635ceba6840d66 +DIST qpdfview-0.4.18_p1.tar.bz2 448818 BLAKE2B 690f93c7f0af376e2b60d69a9802cdb159a97eb66b572a913badcd7ce3b9303d69bf8fbb359b5aa09ad1c63b1b6865e3602c8dc9cdad2506a43273d410a64d89 SHA512 41152596e39e6084e4e46c1aca28dfa4c619bf31068ee3272c6119793da5d99c58868ecf682ed0dc81e740f20193372e2780cf7d7fb917545662c93e6a2a1b4a EBUILD qpdfview-0.4.18.ebuild 2259 BLAKE2B f36c70e222fe667853016cd5a4b35c086b2224ea1b65ee23c5d84e6e4baaef395f5cb865b3b8b16a6f217a50f955426e84eef5a33395e2a1ada12c889c74fba9 SHA512 ef3481e73d7bd71965712604cdddfb3d3257f9440aa5eedb1bb348ad95072054b2474a322befdc37c7802846732ff308bd3d882fbf4c36d51e24af4d44ce04b5 +EBUILD qpdfview-0.4.18_p1.ebuild 2204 BLAKE2B b90c8b9bade168972e39f6d3565252c94749d5121163aaeb1abf7f1e2a717ad6eedba35f389e56593277f4f414d5d65460e717ac38409dca728c7211e2e50760 SHA512 c010cb9689608e032893ed2fd0de134d6451dc635749bfaeaa149f5d6dbc63546c955fb016390c659e6afdce8797709d6c4f3bac9b528a2ba121fc7a4d9f3df2 MISC metadata.xml 534 BLAKE2B db66db041dd0875c8d4e36e3223d7f82263555f2d6a1dcc5270279b3fc8bc77499712253d43b56e278187f163af0495ca9e7e6aa0ba0dc8e9a5fe9cf7f2daf99 SHA512 e086f5e92c5ad9058f13c23c814a5cdc988a09cdbebecb1018b59d32a756dc2766b13ee1c3e09966cc7e221cc1c4ee26f9bf11c50610f94b28c20a34c316f133 diff --git a/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild b/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild new file mode 100644 index 000000000000..e7a36da831a8 --- /dev/null +++ b/app-text/qpdfview/qpdfview-0.4.18_p1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PLOCALES="ast az be bg bs ca cs da de el en_AU en_GB eo es eu fa fi fr gl he 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 zh_CN zh_TW" +inherit l10n qmake-utils xdg + +DESCRIPTION="A tabbed document viewer" +HOMEPAGE="https://launchpad.net/qpdfview" +# bzr revision 2107 +SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~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" + } + + l10n_find_plocales_changes translations ${PN}_ .ts + l10n_for_each_locale_do prepare_locale + l10n_for_each_disabled_locale_do 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 +} |