diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-video/photofilmstrip |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-video/photofilmstrip')
5 files changed, 212 insertions, 0 deletions
diff --git a/media-video/photofilmstrip/Manifest b/media-video/photofilmstrip/Manifest new file mode 100644 index 000000000000..59bd79ae9be8 --- /dev/null +++ b/media-video/photofilmstrip/Manifest @@ -0,0 +1,7 @@ +AUX photofilmstrip-2.1.0-PIL_modules_imports_fix.patch 3432 SHA256 163d5124a8cc1cf524ebd18ca15f7d4ab6a62d7128c606b777401ad651b7f600 SHA512 d37c31f89d421014023a1b9bb7be1a78731a056a6332e2d1040e1bdc90c7e5652e53b8708e23f68e5ae289063c27e7a05d7c8369845a36d8665297babd23f68a WHIRLPOOL 8a8a753d86b935503f8114a4cbd82c6094650b5f0189a899e9933c2d331db108c47a38139a8120d756d2fd2416cfd47e2bc6bf1373710443dc89341afb4c80e2 +AUX photofilmstrip-2.1.0-PIL_tostring_fix.patch 1479 SHA256 a14c910a25dda90fa4d9a1fc8c3ec735274c136845d7423e86e3cc2570f79d84 SHA512 d08bfc7b77dd6a7e6ef38b74cb40bb9817fd272d22f598318a1313b08901fd042808cbfba25d3a748f8f9fba1c900b9c920db28cc95ac9d2424d5e3cb971ffaf WHIRLPOOL a666343d8a31ca4e478a8f7b974a5dd17167b6f89eb2b788ea207deee089895e8dd401fb92909b59f0e71b82b26aa3a0bdb7e9b70bc17babe612f2cb1504b9c2 +DIST photofilmstrip-2.1.0.tar.gz 243163 SHA256 6889ea2f909a6f5115ddcf14b9b69a7c3cee2bb0277e5093ece750b3018882d5 SHA512 e3cbf19d73d6cc16dcef23c11d84e5bfd1d0721cb72bb4d775390152be2fb20cab14912a9e0e73ef2d9dba9c041883591df2708cdeb7e7447cbcb18e750ea142 WHIRLPOOL 6bf4626e705a296a58ef13d463100c773e274a582b235935bb9aeb6d0aaef1ec052ed51084513ec94a93fe3ef426d9999ae7ec00b9e91855d202d0fa692ac117 +EBUILD photofilmstrip-2.1.0-r2.ebuild 1485 SHA256 088980a75f8c07ebaed3e406670fd66a01a88f5f642d62769ce9a8950605a4ec SHA512 d33f7b219a450b1f6517075420675c23b4176763171bbdf4b7baa37f350c9b4a3e80f4c04fc667b80f3aee69d797a97261f8ecf3776418b2b10868becab7c762 WHIRLPOOL 7f5b370c6d2cf728ab93a2a2bc16dae3d0285d20f58bbb6d0497cacad1d5d7ff4404f5312b82d861456c314e826c59090d562245b86104d7f4aa9d05604f6a01 +MISC ChangeLog 3386 SHA256 c19ffc09e801841f67156a5e7fe252fde6a45136b25d9c23273343542da5001c SHA512 d22b905830bcd7547adb5b5b95fb4397d9508f7e067135b829b1bf1671db5547983de9ebda13465fee67f063485f79b6b0f5072f45d730515760332a19d29d86 WHIRLPOOL fdf2d440afb3bf55064ce02e4d1bcd33ab52ae0096f0a4b3568fc83e83d41be867f855858b974deee6eab60ee9b28b3d678fba926d4a0d859ea4eb6d55dffc98 +MISC ChangeLog-2015 948 SHA256 245d897ae53b9ff3fd92942c97e5236b55bd1fa677beb1b073148a8a68c0ee8c SHA512 64dbf92c2ebffe10876fae2645e1cbba91fb6b02fb3ca75678975a6ec728776b85a577f6c47c2c84853b57dbfd7e190f82be8f7e4a42561b38ba13f0310b12ee WHIRLPOOL 536074effc4ab0ca842bf0cb2cc6a5f2fbd3352054cc5b7ff82fb453a0e65bc199573a20c10b6352a9fda30b0df7287e83cd7b2a4c78399c59cb2de8dc8b73a8 +MISC metadata.xml 683 SHA256 eebd70738f4bda6f3f1d51fb94e419b67dd8590c34ba9992f38aef5a01b1d56c SHA512 58801972ef5326f757ce11964e47267df3b199f36290d0d81d3fecc97f59f678a110c107082d8d8bdebd54fc7268dd75a463a089aa22361157f4770f0d6b7251 WHIRLPOOL c228b10206c0b29912e514d8705389cdba6127eb73a95c6c1d937bd2e4ed65ee356b16fa30c40d7e0b30ecfc0bd0b5d5107e61ba395953fef334b2277978e5ad diff --git a/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_modules_imports_fix.patch b/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_modules_imports_fix.patch new file mode 100644 index 000000000000..989459775413 --- /dev/null +++ b/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_modules_imports_fix.patch @@ -0,0 +1,91 @@ +--- photofilmstrip-2.1.0-orig/photofilmstrip/core/__init__.py ++++ photofilmstrip-2.1.0/photofilmstrip/core/__init__.py +@@ -22,47 +22,47 @@ + # WA: py2exe and PIL + import os + if os.name == "nt": +- import Image ++ import PIL.Image as Image + +- import ArgImagePlugin +- import BmpImagePlugin +- import BufrStubImagePlugin +- import CurImagePlugin +- import DcxImagePlugin +- import EpsImagePlugin +- import FitsStubImagePlugin +- import FliImagePlugin +- import FpxImagePlugin +- import GbrImagePlugin +- import GifImagePlugin +- import GribStubImagePlugin +- import Hdf5StubImagePlugin +- import IcnsImagePlugin +- import IcoImagePlugin +- import ImImagePlugin +- import ImtImagePlugin +- import IptcImagePlugin +- import JpegImagePlugin +- import McIdasImagePlugin +- import MicImagePlugin +- import MpegImagePlugin +- import MspImagePlugin +- import PalmImagePlugin +- import PcdImagePlugin +- import PcxImagePlugin +- import PdfImagePlugin +- import PixarImagePlugin +- import PngImagePlugin +- import PpmImagePlugin +- import PsdImagePlugin +- import SgiImagePlugin +- import SpiderImagePlugin +- import SunImagePlugin +- import TgaImagePlugin +- import TiffImagePlugin +- import WmfImagePlugin +- import XbmImagePlugin +- import XpmImagePlugin +- import XVThumbImagePlugin ++ import PIL.ArgImagePlugin as ArgImagePlugin ++ import PIL.BmpImagePlugin as BmpImagePlugin ++ import PIL.BufrStubImagePlugin as BufrStubImagePlugin ++ import PIL.CurImagePlugin as CurImagePlugin ++ import PIL.DcxImagePlugin as DcxImagePlugin ++ import PIL.EpsImagePlugin as EpsImagePlugin ++ import PIL.FitsStubImagePlugin as FitsStubImagePlugin ++ import PIL.FliImagePlugin as FliImagePlugin ++ import PIL.FpxImagePlugin as FpxImagePlugin ++ import PIL.GbrImagePlugin as GbrImagePlugin ++ import PIL.GifImagePlugin as GifImagePlugin ++ import PIL.GribStubImagePlugin as GribStubImagePlugin ++ import PIL.Hdf5StubImagePlugin as Hdf5StubImagePlugin ++ import PIL.IcnsImagePlugin as IcnsImagePlugin ++ import PIL.IcoImagePlugin as IcoImagePlugin ++ import PIL.ImImagePlugin as ImImagePlugin ++ import PIL.ImtImagePlugin as ImtImagePlugin ++ import PIL.IptcImagePlugin as IptcImagePlugin ++ import PIL.JpegImagePlugin as JpegImagePlugin ++ import PIL.McIdasImagePlugin as McIdasImagePlugin ++ import PIL.MicImagePlugin as MicImagePlugin ++ import PIL.MpegImagePlugin as MpegImagePlugin ++ import PIL.MspImagePlugin as MspImagePlugin ++ import PIL.PalmImagePlugin as PalmImagePlugin ++ import PIL.PcdImagePlugin as PcdImagePlugin ++ import PIL.PcxImagePlugin as PcxImagePlugin ++ import PIL.PdfImagePlugin as PdfImagePlugin ++ import PIL.PixarImagePlugin as PixarImagePlugin ++ import PIL.PngImagePlugin as PngImagePlugin ++ import PIL.PpmImagePlugin as PpmImagePlugin ++ import PIL.PsdImagePlugin as PsdImagePlugin ++ import PIL.SgiImagePlugin as SgiImagePlugin ++ import PIL.SpiderImagePlugin as SpiderImagePlugin ++ import PIL.SunImagePlugin as SunImagePlugin ++ import PIL.TgaImagePlugin as TgaImagePlugin ++ import PIL.TiffImagePlugin as TiffImagePlugin ++ import PIL.WmfImagePlugin as WmfImagePlugin ++ import PIL.XbmImagePlugin as XbmImagePlugin ++ import PIL.XpmImagePlugin as XpmImagePlugin ++ import PIL.XVThumbImagePlugin as XVThumbImagePlugin + Image._initialized=2 + # WA: end diff --git a/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_tostring_fix.patch b/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_tostring_fix.patch new file mode 100644 index 000000000000..dc29c9c8e14f --- /dev/null +++ b/media-video/photofilmstrip/files/photofilmstrip-2.1.0-PIL_tostring_fix.patch @@ -0,0 +1,35 @@ +Gentoo-Bug: https://bugs.gentoo.org/584128 + +--- a/photofilmstrip/core/ProjectFile.py ++++ b/photofilmstrip/core/ProjectFile.py +@@ -196,7 +196,7 @@ + def __ThumbToQuery(self, picId, pic): + pilThumb = PILBackend.GetThumbnail(pic, height=120) + thumbWidth, thumbHeight = pilThumb.size +- thumbData = buffer(pilThumb.tostring()) ++ thumbData = buffer(pilThumb.tobytes()) + + query = "INSERT INTO `thumbnail` (" \ + "picture_id, width, height, data" \ +--- a/photofilmstrip/core/renderer/CairoRenderer.py ++++ b/photofilmstrip/core/renderer/CairoRenderer.py +@@ -121,7 +121,7 @@ + def _PilToCairo(self, pilImg): + pilImg = pilImg.copy() + w, h = pilImg.size +- data = pilImg.convert('RGBA').tostring() ++ data = pilImg.convert('RGBA').tobytes() + buff = array.array('B', data) + cairoImage = cairo.ImageSurface.create_for_data(buff, cairo.FORMAT_ARGB32, w, h) + # cairoImage = cairo.ImageSurface.create_for_data(buff, cairo.FORMAT_RGB24, w, h) +--- a/photofilmstrip/core/renderer/PyGameRenderer.py ++++ b/photofilmstrip/core/renderer/PyGameRenderer.py +@@ -100,7 +100,7 @@ + def _PilToPyGame(self, pilImg): + mode = pilImg.mode + assert mode in "RGB", "RGBA" +- return pygame.image.fromstring(pilImg.tostring(), pilImg.size, mode) ++ return pygame.image.frombytes(pilImg.tobytes(), pilImg.size, mode) + + + # def CropAndResize(self, ctx, rect): diff --git a/media-video/photofilmstrip/metadata.xml b/media-video/photofilmstrip/metadata.xml new file mode 100644 index 000000000000..e317c382d289 --- /dev/null +++ b/media-video/photofilmstrip/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> +PhotoFilmStrip creates movies out of your pictures in just three steps. +There are several output possibilities for VCD, SVCD, DVD up to FULL-HD. +First select your photos, customize the motion path of the Ken Burns effect and +render the video. Comments of the pictures are generated into a subtitle file. +Furthermore an audio file can be specified to setup the background music for the +slideshow. +</longdescription> + <upstream> + <remote-id type="sourceforge">photostoryx</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild b/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild new file mode 100644 index 000000000000..d20fa98d7060 --- /dev/null +++ b/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 + +DESCRIPTION="Movie slideshow creator using Ken Burns effect" +HOMEPAGE="http://www.photofilmstrip.org" +SRC_URI="mirror://sourceforge/photostoryx/${PN}/${PV}/${P}.tar.gz" +LICENSE="GPL-2+" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="cairo sdl" + +RDEPEND=" + dev-python/wxpython:3.0[cairo?,${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + media-video/mplayer[encode] + sdl? ( dev-python/pygame[${PYTHON_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +# Fix bug #472774 (https://bugs.gentoo.org/show_bug.cgi?id=472774) +PATCHES=( + "${FILESDIR}/${P}-PIL_modules_imports_fix.patch" + "${FILESDIR}/${P}-PIL_tostring_fix.patch" +) + +DOCS=( CHANGES COPYING README ) + +src_prepare() { + # Remove unneeded icon resources update needing running X + # Fix app doc/help files paths + sed -i \ + -e '/self\._make_resources\(\)/d' \ + -e "s:\(os\.path\.join(\"share\", \"doc\", \"\)photofilmstrip:\1${PF}:" \ + setup.py || die + + sed -i \ + -e "s:\"photofilmstrip\":\"${PF}\":" \ + photofilmstrip/gui/HelpViewer.py || die + + # Fix desktop file entry + sed -i \ + -e '/^Version.*/d' \ + data/photofilmstrip.desktop || die + + distutils-r1_src_prepare +} + +src_install() { + doman docs/manpage/* + + # Do not compress the apps help files + docompress -x /usr/share/doc/${PF}/${PN}.hh{c,k,p} + + distutils-r1_src_install +} |