mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-04 03:42:56 +02:00
photofilmstrip: update to 4.1.1.
This commit is contained in:
parent
d77ef279ef
commit
6b702a0832
3 changed files with 50 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -187,9 +187,7 @@ class pfs_build(build):
|
@@ -153,9 +153,7 @@ class pfs_build(build):
|
||||||
build.run(self)
|
build.run(self)
|
||||||
|
|
||||||
def _make_resources(self):
|
def _make_resources(self):
|
||||||
|
|
34
srcpkgs/photofilmstrip/patches/no-msgfmt.patch
Normal file
34
srcpkgs/photofilmstrip/patches/no-msgfmt.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -16,7 +16,6 @@ from setuptools import setup, Command
|
||||||
|
from setuptools.command.build import build
|
||||||
|
from setuptools.command.sdist import sdist
|
||||||
|
|
||||||
|
-import pythongettext.msgfmt
|
||||||
|
|
||||||
|
try:
|
||||||
|
from sphinx.application import Sphinx
|
||||||
|
@@ -243,22 +242,7 @@ class pfs_build(build):
|
||||||
|
resName=imgName)
|
||||||
|
|
||||||
|
def _make_locale(self):
|
||||||
|
- for filename in os.listdir("po"):
|
||||||
|
- lang, ext = os.path.splitext(filename)
|
||||||
|
- if ext.lower() == ".po":
|
||||||
|
- moDir = os.path.join("build", "mo", lang, "LC_MESSAGES")
|
||||||
|
- moFile = os.path.join(moDir, "%s.mo" % Constants.APP_NAME)
|
||||||
|
- if not os.path.exists(moDir):
|
||||||
|
- os.makedirs(moDir)
|
||||||
|
-
|
||||||
|
- msgfmt = pythongettext.msgfmt.Msgfmt(os.path.join("po", filename))
|
||||||
|
- with open(moFile, "wb") as moFd:
|
||||||
|
- moFd.write(msgfmt.getAsFile().getbuffer())
|
||||||
|
-
|
||||||
|
- targetPath = os.path.join("share", "locale", lang, "LC_MESSAGES")
|
||||||
|
- self.distribution.data_files.append(
|
||||||
|
- (targetPath, (moFile,))
|
||||||
|
- )
|
||||||
|
+ pass
|
||||||
|
|
||||||
|
|
||||||
|
class pfs_exe(Command):
|
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'photofilmstrip'
|
# Template file for 'photofilmstrip'
|
||||||
pkgname=photofilmstrip
|
pkgname=photofilmstrip
|
||||||
version=4.0.0
|
version=4.1.1
|
||||||
revision=4
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools gst1-python3 python3-Sphinx gettext"
|
hostmakedepends="python3-setuptools gst1-python3 gettext"
|
||||||
depends="python3 gst1-python3 gst1-editing-services python3-Pillow wxPython"
|
depends="python3 gst1-python3 gst1-editing-services python3-Pillow wxPython"
|
||||||
checkdepends="$depends"
|
checkdepends="$depends"
|
||||||
short_desc="Slideshow creator with Ken Burns effect"
|
short_desc="Slideshow creator with Ken Burns effect"
|
||||||
|
@ -11,7 +11,7 @@ maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://www.photofilmstrip.org/"
|
homepage="https://www.photofilmstrip.org/"
|
||||||
distfiles="https://github.com/PhotoFilmStrip/PFS/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/PhotoFilmStrip/PFS/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=1e0ced0a25f752100a68286833d35fd976a59bafd927eb4eae54b837974578ee
|
checksum=78e58ae587f381439c2dd5337050f8715e9735f3e2a046413045800b822ee4f7
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
vsed -i -e 's/gstreamer1.0-libav/gst-libav/' \
|
vsed -i -e 's/gstreamer1.0-libav/gst-libav/' \
|
||||||
|
@ -22,3 +22,14 @@ post_patch() {
|
||||||
photofilmstrip/core/renderer/GStreamerRenderer.py \
|
photofilmstrip/core/renderer/GStreamerRenderer.py \
|
||||||
po/*.po
|
po/*.po
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
local _file _lang
|
||||||
|
for _file in po/*.po; do
|
||||||
|
_lang="${_file##*/}"
|
||||||
|
_lang="${_lang%.po}"
|
||||||
|
vmkdir "usr/share/locale/${_lang}/LC_MESSAGES"
|
||||||
|
msgfmt "$_file" \
|
||||||
|
-o "${DESTDIR}/usr/share/locale/${_lang}/LC_MESSAGES/PhotoFilmStrip.mo"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue