summaryrefslogtreecommitdiff
path: root/app-text/pylize
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/pylize
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/pylize')
-rw-r--r--app-text/pylize/Manifest6
-rw-r--r--app-text/pylize/files/pylize-pillow.patch13
-rw-r--r--app-text/pylize/metadata.xml13
-rw-r--r--app-text/pylize/pylize-1.3b-r1.ebuild46
4 files changed, 78 insertions, 0 deletions
diff --git a/app-text/pylize/Manifest b/app-text/pylize/Manifest
new file mode 100644
index 000000000000..8ab61dfa3b04
--- /dev/null
+++ b/app-text/pylize/Manifest
@@ -0,0 +1,6 @@
+AUX pylize-pillow.patch 375 SHA256 bc0418683b27603039f51268ad929ff223be901d321d47d4936f7dc461c34cd2 SHA512 5e6beeb1a0192328039d581eeaf568e606a1fa002f8d91ddb397e27d873e23834fda67cd88a5afb24563a515cb37c234ed2d8c913472ce9fccd431249be852dc WHIRLPOOL e4028c39276230ebbd2356034d00e1935789478628a466e72a695e399a570aef65b18ac8b340111ca71939a0a603dcf3cedf28e11e3266e32559cb536d8c337e
+DIST pylize-1.3b.tar.bz2 70979 SHA256 8de876e2581a556e23d538b3ed5b970929a51c236b24c1fd5161c26c8c42bb44 SHA512 271be57bdebb605566a7ee0340d34247f8ede4df7ba729c85c23f6df1ca24cadb25c870cce5b1ac35544205d90e716742cd31e150b9a8f98b2dcfae441a76454 WHIRLPOOL cc81f7000fedf10d3aae1922c3334bd00575a45c0a17bcdcb899e6b5229c621637b3f7815e5af8c08303ffa57d7db9073be675419fd8e9afe0e70e4eecf7f679
+EBUILD pylize-1.3b-r1.ebuild 1029 SHA256 1614e75d718bb6ef92ed190fd3057e6bf55c94728484e3d7123cee836619f338 SHA512 dada782c5b6a0f6d146d20ad26ddbaef46cd7476c8c5fa5143904855178676fbe028a22ef01c213af2ae052c7c8b6e227ed506a49dbb8f4e3931708264346fe2 WHIRLPOOL a4e9de360feb1d615aa7b2592e334431966b8a935010b915d947a789a650fd9cba3e2ddc298f2a40e78129e2b93bad30aac9a2008863d72d4ac05890eb300b24
+MISC ChangeLog 2745 SHA256 bf8feda8f92422f51917b2c83d80ef8f8db36e1d968c9abf40eba0eb66864620 SHA512 1b5d7bd243b714b51aa8909ec72149afa67b32b370ba7b167b2b591b3bdce0efabd36ca40f6ec5875ca54e308e82fe527307a2c7208e8c16f71cdc7630cbedab WHIRLPOOL bc3a1b66621e641f708dd6b5fd3fa9be47d2f3525028e1885525a7e032ed5663313c0536013db5d19431fb091bf98c2e2858d6607cfb46f0f680e5dbd79caab0
+MISC ChangeLog-2015 2588 SHA256 d8e14b229cb622993894d26584b77719af26d3bfef7005df4fa5f9718a974673 SHA512 a6610e6d2f56e3b701a50f180836ee8c3a8ce4a9a2629f682429d1c9196fa634cfa96069fa5d8e43656d93d75b4a9a1b723ff40129c8f4b2ad1f5b1948e22c82 WHIRLPOOL cf7db8d73b3c51f20479e7382625cc29611497f301a6d51dad726f7717d5c0a09832311ca10d9a50696ab7d275b2dcdabece9c6d35ef62b1c9c2bea50a097df6
+MISC metadata.xml 547 SHA256 7df7fab4b323b5d44170766224a4edae0e4953875b537d184a972b70a683f61d SHA512 bf43543c0b0c4f90940d0a5b40c342d9151673418994e074421e723ed8242fa742cc06b93cf846bf8b860b997faa68b4f0f978d274434bb33b77c3e9cddec435 WHIRLPOOL 8c92bade04ec2b29ad7b18f17a78e145c064ecb60ded2f209d51c404272a0e54f44a51540cc292296ff1d0b2bb7ab1fbd1b1a5341bdd7dfd7a248524635ee9aa
diff --git a/app-text/pylize/files/pylize-pillow.patch b/app-text/pylize/files/pylize-pillow.patch
new file mode 100644
index 000000000000..0b454b0b1712
--- /dev/null
+++ b/app-text/pylize/files/pylize-pillow.patch
@@ -0,0 +1,13 @@
+Change PIL imports for Pillow compat
+https://bugs.gentoo.org/show_bug.cgi?id=471502
+--- a/pylize.in
++++ b/pylize.in
+@@ -113,7 +113,7 @@
+ def mkLogoLink(meta):
+ if meta.has_key('logo'):
+ try:
+- import Image
++ from PIL import Image
+ if os.path.exists(meta['logo']):
+ i = Image.open(meta['logo'])
+ else:
diff --git a/app-text/pylize/metadata.xml b/app-text/pylize/metadata.xml
new file mode 100644
index 000000000000..cd617926fcf3
--- /dev/null
+++ b/app-text/pylize/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+pylize is a Python script that generates a set of HTML files that
+make up an on-screen presentation from a master file. The HTML files
+can be viewed with any CSS-aware browser. The master file contains
+the text for all the slides and some additional information like
+title, author etc. pylize can also create a template master file for
+you
+</longdescription>
+</pkgmetadata>
diff --git a/app-text/pylize/pylize-1.3b-r1.ebuild b/app-text/pylize/pylize-1.3b-r1.ebuild
new file mode 100644
index 000000000000..a82f173bad45
--- /dev/null
+++ b/app-text/pylize/pylize-1.3b-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Python HTML Slideshow Generator using HTML and CSS"
+HOMEPAGE="http://www.chrisarndt.de/en/software/pylize/"
+SRC_URI="http://www.chrisarndt.de/en/software/pylize/download/${P}.tar.bz2"
+
+IUSE="doc"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+DEPEND="dev-python/empy[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-pillow.patch" )
+
+python_configure() {
+ set -- "${PYTHON}" configure.py
+ echo "$@"
+ "$@" || die
+}
+
+python_compile_all() {
+ if use doc; then
+ emake -C doc PYTHON="${PYTHON}" PYLIZE="../pylize" || die
+ fi
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_optimize "${ED%/}/usr/share/pylize"
+}
+
+python_install_all() {
+ local DOCS=( Changelog README README.empy TODO )
+ use doc && local HTML_DOCS=( doc/. )
+ distutils-r1_python_install_all
+}