diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/pdfshuffler |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/pdfshuffler')
-rw-r--r-- | app-text/pdfshuffler/Manifest | 6 | ||||
-rw-r--r-- | app-text/pdfshuffler/files/pdfshuffler-PyPDF2.patch | 18 | ||||
-rw-r--r-- | app-text/pdfshuffler/metadata.xml | 11 | ||||
-rw-r--r-- | app-text/pdfshuffler/pdfshuffler-0.6.0-r1.ebuild | 39 |
4 files changed, 74 insertions, 0 deletions
diff --git a/app-text/pdfshuffler/Manifest b/app-text/pdfshuffler/Manifest new file mode 100644 index 000000000000..359e551eac70 --- /dev/null +++ b/app-text/pdfshuffler/Manifest @@ -0,0 +1,6 @@ +AUX pdfshuffler-PyPDF2.patch 701 SHA256 9897bf9c98a9c80064733f1134da9b8989d9a0ed13227fe53bfe5ec268d56479 SHA512 8496ebb9656e1f9e5ee99184a5d8cf0493ebacedc9f936804aedd784930457d39390b577683e77b6b5264ba50f7e2b202404c40ae426ba42b6f612d7ca193433 WHIRLPOOL f315087040800cb569fec4060b9b4d6ed6d9c05b0b01a5cc59744d56d3b558829d90da3887b90ecfee527c7613e2132cee0f792c680c2d746163ea9e0d7a2c1d +DIST pdfshuffler-0.6.0.tar.gz 48071 SHA256 df3629b5a0ba91fda6b703ddf7b3e6f224a01d5cdfb76a5de77d67615466ef58 SHA512 e2563e9b5faf3ebac56f3840017ad9279a5e8e096c9f44ec053c617894910b1d0531457bc37d8fb9bc1db13ae25b94d55ca0b4ec26fbddeb9e51e6b4d75293fe WHIRLPOOL 72463cd666892af708208fd5816d882d956e3c068744e270775079107ea3b583cb81adc0225fc2e88232df3c74d292056804fff6bf64e707afe17359eaba21a4 +EBUILD pdfshuffler-0.6.0-r1.ebuild 888 SHA256 8368d5e718b9eed1bed77d09bfe7baa36adff1a18cf7982644868d87d639f53f SHA512 0b480e5a2b3675b7d295226535e60f12f398ed2866cc5dfb8d10d274b80cc68438aebf08a2417d1635f65ba691341139524f856def2aef8b150df15ce786eb02 WHIRLPOOL a215aeb53547bf0782b577f73a3f6ab86f808fd8646fedeac641b44fec5f9b647f7427cdc01a78779941f4f045afdda068df485f84bbe910a449e3cbddaf3e16 +MISC ChangeLog 2697 SHA256 aa0ea63dff8595ae0281ebebe8ce27fa7fb509639c6476566ce00168b4e88e3b SHA512 d53d19fbed3c88e03c0694e5f5b974bc482f347e817d32c58f33d99396f04194b7000e92fc57cbf5bf6475c8319e0f1de5b39f8291aadb3bcddba71b4d9cdbd6 WHIRLPOOL 843e73db797a1faf87583828ff08375f7c7e4eedcb7253a3d0ba629e6976850c65e76aac46b21652e0b12ec66da8cc919299c02426f7c356182336de6c88f92c +MISC ChangeLog-2015 2867 SHA256 66aa256ea9a28986dea6944a7b086c160d37004edf30d53b4cb21073223afa5d SHA512 ec07ea83688d9c1d80a61d1d3bb5b2c58451bc2c7169eb300c550486c8ab1b7a10e74dd986b3be9797f7465a977616eca9689f38971d33aec6c614bb996f693e WHIRLPOOL 37b24e818ab40191efa3eb7d97d13d10bb29faacc5466fbc28dbff4e413fca95fd8c7d7f89f39165fd27cb61e309e08f2d04482b236c45c5a461864a1dd76b16 +MISC metadata.xml 317 SHA256 87ebd2e16d6692f4cfc54f53e8f4403f03045aa504cc916005e45e2a054b6ec5 SHA512 1e710aa1ddf91651f987d6fdf7ae15bb4ad58190c374b72bb9198e19262a4c3e1e4faedc8647a50060e113a32f38994bc0ac8393455b4ceeedf2973e310b7992 WHIRLPOOL 57f49e598de51591a2f77afb392c04da91284c8005091823855878dbe8bc7b8e1641f92d5590d281d1a3b2de5bdd7a04ecfdb067dc0d5927f6ab728c9db7b886 diff --git a/app-text/pdfshuffler/files/pdfshuffler-PyPDF2.patch b/app-text/pdfshuffler/files/pdfshuffler-PyPDF2.patch new file mode 100644 index 000000000000..8228c1765143 --- /dev/null +++ b/app-text/pdfshuffler/files/pdfshuffler-PyPDF2.patch @@ -0,0 +1,18 @@ +diff -r -U2 pdfshuffler-0.6.0.orig/pdfshuffler/pdfshuffler.py pdfshuffler-0.6.0/pdfshuffler/pdfshuffler.py +--- pdfshuffler-0.6.0.orig/pdfshuffler/pdfshuffler.py 2012-04-28 21:15:17.000000000 +0700 ++++ pdfshuffler-0.6.0/pdfshuffler/pdfshuffler.py 2015-01-11 02:10:02.952809411 +0600 +@@ -72,5 +72,13 @@ + + import poppler #for the rendering of pdf pages +-from pyPdf import PdfFileWriter, PdfFileReader ++ ++try: ++ from PyPDF2 import PdfFileWriter, PdfFileReader ++except ImportError: ++ try: ++ from pyPdf import PdfFileWriter, PdfFileReader ++ except ImportError: ++ print('Neither PyPDF2 nor pyPdf found') ++ sys.exit(1) + + from pdfshuffler_iconview import CellRendererImage diff --git a/app-text/pdfshuffler/metadata.xml b/app-text/pdfshuffler/metadata.xml new file mode 100644 index 000000000000..1449934ed1ee --- /dev/null +++ b/app-text/pdfshuffler/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> +</maintainer> +<upstream> + <remote-id type="sourceforge">pdfshuffler</remote-id> +</upstream> +</pkgmetadata> diff --git a/app-text/pdfshuffler/pdfshuffler-0.6.0-r1.ebuild b/app-text/pdfshuffler/pdfshuffler-0.6.0-r1.ebuild new file mode 100644 index 000000000000..f63524e20d40 --- /dev/null +++ b/app-text/pdfshuffler/pdfshuffler-0.6.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 fdo-mime gnome2-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 dev-python/pyPdf ) + dev-python/python-poppler" +RDEPEND="${DEPEND}" + +DOCS="ChangeLog README TODO AUTHORS" +PATCHES=( "${FILESDIR}"/${PN}-PyPDF2.patch ) + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} |