dev-python/stapler: new ebuild.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 4 Jan 2018 14:30:42 +0000 (15:30 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 4 Jan 2018 15:07:54 +0000 (16:07 +0100)
stapler is a suite of tools for PDF files manipulation. It makes use of
the PyPDF2 library to provide a (somewhat) lighter alternative to pdftk.

See https://github.com/hellerbarde/stapler.

Bug: https://bugs.gentoo.org/562568

Package-Manager: Portage-2.3.13, Repoman-2.3.3
Reviewed-by: James Le Cuirot <chewi@gentoo.org>
dev-python/stapler/Manifest [new file with mode: 0644]
dev-python/stapler/metadata.xml [new file with mode: 0644]
dev-python/stapler/stapler-0.4_p20160424.ebuild [new file with mode: 0644]

diff --git a/dev-python/stapler/Manifest b/dev-python/stapler/Manifest
new file mode 100644 (file)
index 0000000..a0862fa
--- /dev/null
@@ -0,0 +1 @@
+DIST stapler-0.4_p20160424.tar.gz 34318 BLAKE2B 081f32c4eb30a8f26f0c64784c8ec05b621f1c4051e1c76f501f3efa32f6d59aaf7be8318455d379c2d933aa34b5d9d5abc230c575e2eca926f18a4af35a7013 SHA512 b93bf0f253ee6214aeabde2d4c636d2544d446c90fa473e6ee5698936c2605d64c6f6e672ef99387f79458d7e52005e7e2eb76db0c5e2271fadd1603418e2cd6
diff --git a/dev-python/stapler/metadata.xml b/dev-python/stapler/metadata.xml
new file mode 100644 (file)
index 0000000..19496d9
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>python@gentoo.org</email>
+               <name>Gentoo Python Project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">hellerbarde/stapler</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/dev-python/stapler/stapler-0.4_p20160424.ebuild b/dev-python/stapler/stapler-0.4_p20160424.ebuild
new file mode 100644 (file)
index 0000000..3cc72cc
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+# Commit Date: 26th Apr 2016
+COMMIT="7c153e6a8f52573ff886ebf0786b64e17699443a"
+
+DESCRIPTION="Suite of tools for PDF files manipulation written in Python"
+HOMEPAGE="https://github.com/hellerbarde/stapler"
+SRC_URI="https://github.com/hellerbarde/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-python/PyPDF2[${PYTHON_USEDEP}]
+       dev-python/more-itertools[${PYTHON_USEDEP}]"
+
+DEPEND="
+       ${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${PN}-${COMMIT}"