From b24bd25253fe093f722ab576d29fdc41d04cb1ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 2 Aug 2019 19:14:55 +0100 Subject: gentoo resync : 02.08.2019 --- media-video/photofilmstrip/Manifest | 3 + ...tofilmstrip-3.7.1-disable-docs-by-default.patch | 15 +++++ .../photofilmstrip/photofilmstrip-3.7.1.ebuild | 67 ++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 media-video/photofilmstrip/files/photofilmstrip-3.7.1-disable-docs-by-default.patch create mode 100644 media-video/photofilmstrip/photofilmstrip-3.7.1.ebuild (limited to 'media-video/photofilmstrip') diff --git a/media-video/photofilmstrip/Manifest b/media-video/photofilmstrip/Manifest index c82d434ea943..37fb4adc3b5a 100644 --- a/media-video/photofilmstrip/Manifest +++ b/media-video/photofilmstrip/Manifest @@ -1,5 +1,8 @@ AUX photofilmstrip-2.1.0-PIL_modules_imports_fix.patch 3432 BLAKE2B 05626efec54a20a1e5be19a3128a50a2e32164f36ebc3f86b74bf0dbab9d5d296a435dfc25ff5b35f5aa0817dcfd16b8a8868768073156db3cc8d267d4630e94 SHA512 d37c31f89d421014023a1b9bb7be1a78731a056a6332e2d1040e1bdc90c7e5652e53b8708e23f68e5ae289063c27e7a05d7c8369845a36d8665297babd23f68a AUX photofilmstrip-2.1.0-PIL_tostring_fix.patch 1479 BLAKE2B ce193bc77c20f755bfe3f8777a9371a152ff15bb8b3d0ce2f0003eb449f22bce943d4bd737d251d7e5212fd0776611620b1151ff9a7f7b07201db851273f57af SHA512 d08bfc7b77dd6a7e6ef38b74cb40bb9817fd272d22f598318a1313b08901fd042808cbfba25d3a748f8f9fba1c900b9c920db28cc95ac9d2424d5e3cb971ffaf +AUX photofilmstrip-3.7.1-disable-docs-by-default.patch 379 BLAKE2B 8af4a4e5ab1f407ba72dad0975a5f17e2eb245a42484dcfcb996a785dc2a49c4e5c22a5136e4dc0c375dc0dc16baeb4cc4ef60b7ec21b48b6f11fadc91383e3f SHA512 92f24eac04653e2be160872a553d96d1d0c763c50879fc124ae3dd9a3f84d7988274965f122eb4ba7709ee9f65409e7d24fda36693129cf55a8d2cd26a4bc539 DIST photofilmstrip-2.1.0.tar.gz 243163 BLAKE2B 30bc0de885a00b715377b262039b3c22425315e77c7e5ac7db377535f0dc3a7614bd83b894bcfbaf53601be140fef0e9754a3911958b9f71aec1e5d0214fe972 SHA512 e3cbf19d73d6cc16dcef23c11d84e5bfd1d0721cb72bb4d775390152be2fb20cab14912a9e0e73ef2d9dba9c041883591df2708cdeb7e7447cbcb18e750ea142 +DIST photofilmstrip-3.7.1.tar.gz 354585 BLAKE2B df1e8756677814f35a59d7f4d3585647393e37262eb80c3299805cb0811cdfb4a16c96f90aaa192469266805145db68a582671a34f2b2780b75f1e0318460bd7 SHA512 fc2284c6c52eea5d9a6415149681e26505d6e084ad31897c44cde8e2b4845584b8521b375da06fd0a59179bfa73f6aabe769caad7a8186d5f87ecacebaff24fb EBUILD photofilmstrip-2.1.0-r2.ebuild 1485 BLAKE2B a059225726d6d4d960411d9050a28695a4352f83121f0e504f5370fc0e1246ef58e5eac21a128d30caed0c0afe2bab9fe92ddd2d5a8c69b3ec0ecabd4d58c027 SHA512 d33f7b219a450b1f6517075420675c23b4176763171bbdf4b7baa37f350c9b4a3e80f4c04fc667b80f3aee69d797a97261f8ecf3776418b2b10868becab7c762 +EBUILD photofilmstrip-3.7.1.ebuild 2055 BLAKE2B bd3f762857a28ab28be20d1070539f6cc3fe6e63f111e4d4992a82d9b733a1df08bbd327387b6a5bc3381695d881394ab462644fe3510c0c5fa80f3bfe43941e SHA512 39cc395df0c5dc2de391e1d54d4e77656839502c4e9109e63f2d582b11b80cea54d3e0d6b2b74e1b3be6117d6f7f55627f7dfa13ffbb49938e5b5de72488b247 MISC metadata.xml 683 BLAKE2B 517c2479c9ce8b3d78afd530cd6f97fcd6fefc73aaffc889584729035151d40fdd5cfe8efcf285aa5e6f3522af8825dab0e214cd5f252bb69da3f5c2b6f17c44 SHA512 58801972ef5326f757ce11964e47267df3b199f36290d0d81d3fecc97f59f678a110c107082d8d8bdebd54fc7268dd75a463a089aa22361157f4770f0d6b7251 diff --git a/media-video/photofilmstrip/files/photofilmstrip-3.7.1-disable-docs-by-default.patch b/media-video/photofilmstrip/files/photofilmstrip-3.7.1-disable-docs-by-default.patch new file mode 100644 index 000000000000..78dd6697ca72 --- /dev/null +++ b/media-video/photofilmstrip/files/photofilmstrip-3.7.1-disable-docs-by-default.patch @@ -0,0 +1,15 @@ +diff -Naur a/setup.py b/setup.py +--- a/setup.py 2019-07-29 20:46:23.212292642 +0300 ++++ b/setup.py 2019-07-29 20:47:47.426300796 +0300 +@@ -20,10 +20,7 @@ + from distutils.dir_util import remove_tree + from distutils.sysconfig import get_python_lib + +-try: +- from sphinx.application import Sphinx +-except ImportError: +- Sphinx = None ++Sphinx = None + + try: + import py2exe diff --git a/media-video/photofilmstrip/photofilmstrip-3.7.1.ebuild b/media-video/photofilmstrip/photofilmstrip-3.7.1.ebuild new file mode 100644 index 000000000000..a8f65086077e --- /dev/null +++ b/media-video/photofilmstrip/photofilmstrip-3.7.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6} ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 eutils xdg-utils + +DESCRIPTION="Movie slideshow creator using Ken Burns effect" +HOMEPAGE="https://www.photofilmstrip.org/en/ https://github.com/PhotoFilmStrip" +SRC_URI="https://github.com/PhotoFilmStrip/PFS/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND="dev-python/gst-python[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/wxpython:4.0[${PYTHON_USEDEP}] + media-plugins/gst-plugins-jpeg:1.0 + x11-libs/wxGTK:*[X]" +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +PATCHES=( "${FILESDIR}/${P}-disable-docs-by-default.patch" ) + +src_prepare() { + default + + # fix 'unexpected path' QA warning on einstalldocs + sed -i 's|"share", "doc", "photofilmstrip"|"share", "doc", "'${PF}'"|g' setup.py || + die "Fixing unexpected path failed." + + # build html docs + if use doc; then + sed -i 's/Sphinx = None/from sphinx.application import Sphinx/g' -i setup.py || + die "Failed to enable building docs with sphinx." + fi + + # fix a QA issue with .desktop file + sed -i '/Version=/d' data/photofilmstrip.desktop || die "Failed to update .desktop file." +} + +python_install_all() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + doman docs/manpage/*.1 + distutils-r1_python_install_all +} + +pkg_postinst() { + xdg_icon_cache_update + + optfeature "additional rendering formats" media-plugins/gst-plugins-bad + optfeature "additional rendering formats" media-plugins/gst-plugins-good + optfeature "additional rendering formats" media-plugins/gst-plugins-ugly + optfeature "ogg/theora support" media-libs/gst-plugins-base[theora] + optfeature "h264 (MKV/MP4) support" media-plugins/gst-plugins-x264 + optfeature "h265 (MKV) support" media-plugins/gst-plugins-x265 + optfeature "MPEG 1/2 (DVD) support" media-plugins/gst-plugins-mpeg2enc +} + +pkg_postrm() { + xdg_icon_cache_update +} -- cgit v1.2.3