pdfshuffler-0.6.0-r1.ebuild 888 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit distutils-r1 fdo-mime gnome2-utils
  6. DESCRIPTION="GUI app that can merge or split pdfs and rotate, crop and rearrange their pages"
  7. HOMEPAGE="https://sourceforge.net/projects/pdfshuffler/"
  8. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. DEPEND="|| ( dev-python/PyPDF2 dev-python/pyPdf )
  14. dev-python/python-poppler"
  15. RDEPEND="${DEPEND}"
  16. DOCS="ChangeLog README TODO AUTHORS"
  17. PATCHES=( "${FILESDIR}"/${PN}-PyPDF2.patch )
  18. pkg_preinst() {
  19. gnome2_icon_savelist
  20. }
  21. pkg_postinst() {
  22. fdo-mime_desktop_database_update
  23. fdo-mime_mime_database_update
  24. gnome2_icon_cache_update
  25. }
  26. pkg_postrm() {
  27. fdo-mime_desktop_database_update
  28. fdo-mime_mime_database_update
  29. gnome2_icon_cache_update
  30. }