diff --git a/app-text/pdfshuffler/pdfshuffler-0.6.0-r2.ebuild b/app-text/pdfshuffler/pdfshuffler-0.6.0-r2.ebuild new file mode 100644 index 000000000000..53f3788cf54b --- /dev/null +++ b/app-text/pdfshuffler/pdfshuffler-0.6.0-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 gnome2-utils xdg-utils + +DESCRIPTION="GUI app that can merge or split pdfs and rotate, crop and rearrange their pages" +HOMEPAGE="https://sourceforge.net/projects/pdfshuffler/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="|| ( + dev-python/PyPDF2[${PYTHON_USEDEP}] + dev-python/pyPdf[${PYTHON_USEDEP}] + ) + dev-python/python-poppler[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +DOCS="ChangeLog README TODO AUTHORS" +PATCHES=( "${FILESDIR}"/${PN}-PyPDF2.patch ) + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + gnome2_icon_cache_update +}