summaryrefslogtreecommitdiff
path: root/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild
blob: 386d0d709c9b989fa40541e5639e476f7f092416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python2_7 )
_PYTHON_ALLOW_PY27=1
inherit git-r3 python-single-r1

DESCRIPTION="PDF file size optimizer"
HOMEPAGE="https://github.com/pts/pdfsizeopt"
EGIT_REPO_URI="https://github.com/pts/pdfsizeopt.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="${PYTHON_DEPS}
	app-text/ghostscript-gpl
	media-gfx/tif22pnm
	media-gfx/sam2p
"
BDEPEND="${PYTHON_DEPS}"

src_prepare() {
	default
	python_fix_shebang mksingle.py
}

src_compile() {
	./mksingle.py
}

src_install() {
	newbin pdfsizeopt.single pdfsizeopt
}