dev-python/olefile: initial import, needed for dev-python/pillow
authorSébastien Fabbro <bicatali@gentoo.org>
Tue, 11 Jul 2017 18:22:05 +0000 (18:22 +0000)
committerSébastien Fabbro <bicatali@gentoo.org>
Tue, 11 Jul 2017 20:20:15 +0000 (20:20 +0000)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-python/olefile/Manifest [new file with mode: 0644]
dev-python/olefile/metadata.xml [new file with mode: 0644]
dev-python/olefile/olefile-0.44.ebuild [new file with mode: 0644]

diff --git a/dev-python/olefile/Manifest b/dev-python/olefile/Manifest
new file mode 100644 (file)
index 0000000..ccefb55
--- /dev/null
@@ -0,0 +1 @@
+DIST olefile-0.44.tar.gz 57903 SHA256 021fbed5c539881d7f1360fb27e942fdfa7c78006bed39e6cd6f3dd9e7bd68da SHA512 92b6ad1bced5b2c8e5332a01e5a2e59527ec2303046d0babd665b0f02fe56966574eff56619de168c50f1ea40df2e61ce589ee61b634222146d049b129514c65 WHIRLPOOL 518a1a29fd3390f816db85a2de4918aa2f81b9d6402faf1c6b410c88a13402139e560d3564da60c75bfd6eba93f5351d8d69581b5e643d259fb421edae9a18e6
diff --git a/dev-python/olefile/metadata.xml b/dev-python/olefile/metadata.xml
new file mode 100644 (file)
index 0000000..f67f501
--- /dev/null
@@ -0,0 +1,12 @@
+<?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>Python</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">olefile</remote-id>
+    <remote-id type="github">python-imaging/Pillow</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-python/olefile/olefile-0.44.ebuild b/dev-python/olefile/olefile-0.44.ebuild
new file mode 100644 (file)
index 0000000..5770e4e
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_{3,4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python package to parse, read and write Microsoft OLE2 files"
+HOMEPAGE="https://www.decalage.info/olefile"
+SRC_URI="https://github.com/decalage2/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+python_compile_all() {
+       if use doc; then
+          emake -C doc html
+          HTML_DOCS=( doc/_build/html/. )
+       fi
+
+}