From d241ee7943383a8ad8aacd70d5e301a6acf22c38 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 28 Jul 2020 09:41:37 -0400 Subject: Initial commit --- app-text/pdfsizeopt/metadata.xml | 8 +++++++ app-text/pdfsizeopt/pdfsizeopt-9999.ebuild | 36 ++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 app-text/pdfsizeopt/metadata.xml create mode 100644 app-text/pdfsizeopt/pdfsizeopt-9999.ebuild (limited to 'app-text') diff --git a/app-text/pdfsizeopt/metadata.xml b/app-text/pdfsizeopt/metadata.xml new file mode 100644 index 0000000..004555a --- /dev/null +++ b/app-text/pdfsizeopt/metadata.xml @@ -0,0 +1,8 @@ + + + + + alex_y_xu@yahoo.ca + Alex Xu (Hello71) + + diff --git a/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild b/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild new file mode 100644 index 0000000..0d77669 --- /dev/null +++ b/app-text/pdfsizeopt/pdfsizeopt-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +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 +} -- cgit v1.2.3-54-g00ecf