Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 658302
Collapse All | Expand All

(-)a/app-text/pdfshuffler/pdfshuffler-0.6.0-r2.ebuild (+42 lines)
Line 0 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI="5"
5
PYTHON_COMPAT=( python2_7 )
6
7
inherit distutils-r1 gnome2-utils xdg-utils
8
9
DESCRIPTION="GUI app that can merge or split pdfs and rotate, crop and rearrange their pages"
10
HOMEPAGE="https://sourceforge.net/projects/pdfshuffler/"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13
LICENSE="GPL-2"
14
SLOT="0"
15
KEYWORDS="amd64 x86"
16
IUSE=""
17
18
DEPEND="|| (
19
		dev-python/PyPDF2[${PYTHON_USEDEP}]
20
		dev-python/pyPdf[${PYTHON_USEDEP}]
21
	)
22
	dev-python/python-poppler[${PYTHON_USEDEP}]"
23
RDEPEND="${DEPEND}"
24
25
DOCS="ChangeLog README TODO AUTHORS"
26
PATCHES=( "${FILESDIR}"/${PN}-PyPDF2.patch )
27
28
pkg_preinst() {
29
	gnome2_icon_savelist
30
}
31
32
pkg_postinst() {
33
	xdg_desktop_database_update
34
	xdg_mimeinfo_database_update
35
	gnome2_icon_cache_update
36
}
37
38
pkg_postrm() {
39
	xdg_desktop_database_update
40
	xdg_mimeinfo_database_update
41
	gnome2_icon_cache_update
42
}

Return to bug 658302