From fe28d03f57758cda2de39c70a65d8a91359772f8 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 8 Feb 2020 07:26:57 +0100 Subject: app-text/pylize: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-text/pylize/pylize-1.3b-r1.ebuild | 46 -------------------------------- app-text/pylize/pylize-1.3b-r2.ebuild | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 46 deletions(-) delete mode 100644 app-text/pylize/pylize-1.3b-r1.ebuild create mode 100644 app-text/pylize/pylize-1.3b-r2.ebuild (limited to 'app-text') diff --git a/app-text/pylize/pylize-1.3b-r1.ebuild b/app-text/pylize/pylize-1.3b-r1.ebuild deleted file mode 100644 index 799e97bf41da..000000000000 --- a/app-text/pylize/pylize-1.3b-r1.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# 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" - 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 -} diff --git a/app-text/pylize/pylize-1.3b-r2.ebuild b/app-text/pylize/pylize-1.3b-r2.ebuild new file mode 100644 index 000000000000..1dc2b94a9c30 --- /dev/null +++ b/app-text/pylize/pylize-1.3b-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# 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=" + $(python_gen_cond_dep ' + dev-python/empy[${PYTHON_MULTI_USEDEP}] + dev-python/pillow[${PYTHON_MULTI_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" + 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 +} -- cgit v1.2.3-65-gdbad