Github messages for voidlinux
 help / color / mirror / Atom feed
From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gst-plugins-ugly1: enable GPL plugins, New package: photofilmstrip.
Date: Sat, 29 Jul 2023 19:23:03 +0200	[thread overview]
Message-ID: <20230729172303.APqfZefIdvWRs4DtCJVBfh6afM7SoOr6FBcsvBMQRqw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45314@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

There is an updated pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages photofilmstrip
https://github.com/void-linux/void-packages/pull/45314

gst-plugins-ugly1: enable GPL plugins, New package: photofilmstrip.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45314.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-photofilmstrip-45314.patch --]
[-- Type: text/x-diff, Size: 3988 bytes --]

From 9905b363aa939ee4af21814a28aa223c50e20e5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Sun, 30 Jul 2023 00:15:27 +0700
Subject: [PATCH 1/2] gst-plugins-ugly1: build GPL plugins

---
 srcpkgs/gst-plugins-ugly1/template | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gst-plugins-ugly1/template b/srcpkgs/gst-plugins-ugly1/template
index 85ae64bc7a0a5..0319cd51076fd 100644
--- a/srcpkgs/gst-plugins-ugly1/template
+++ b/srcpkgs/gst-plugins-ugly1/template
@@ -1,9 +1,11 @@
 # Template file for 'gst-plugins-ugly1'
 pkgname=gst-plugins-ugly1
 version=1.22.2
-revision=1
+revision=2
 build_style=meson
-configure_args="-Damrnb=disabled -Damrwbdec=disabled -Dsidplay=disabled"
+configure_args="-Damrnb=disabled -Damrwbdec=disabled -Dsidplay=disabled
+ -Dgpl=enabled -Dx264=enabled -Da52dec=enabled -Dmpeg2dec=enabled
+ -Dcdio=enabled"
 # XXX add required pkgs for the amr, sid plugins.
 hostmakedepends="pkg-config intltool python3"
 makedepends="glib-devel libxml2-devel gst-plugins-base1-devel
@@ -12,7 +14,7 @@ makedepends="glib-devel libxml2-devel gst-plugins-base1-devel
 depends="orc>=0.4.18 gst-plugins-base1>=${version}"
 short_desc="GStreamer plugins from the ugly set (1.x)"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-2.1-or-later"
+license="LGPL-2.1-or-later, GPL-2.0-or-later"
 homepage="https://gstreamer.freedesktop.org"
 distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
 checksum=8f30f44db0bd063709bf6fbe55138e3a98af0abcb61c360f35582bbe10e80691

From 3991db51400b0cd53298831913c1704fdf292c78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Sun, 30 Jul 2023 00:13:28 +0700
Subject: [PATCH 2/2] New package: photofilmstrip-4.0.0

---
 .../photofilmstrip/patches/no-img2py.patch    | 13 ++++++++++
 srcpkgs/photofilmstrip/template               | 24 +++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 srcpkgs/photofilmstrip/patches/no-img2py.patch
 create mode 100644 srcpkgs/photofilmstrip/template

diff --git a/srcpkgs/photofilmstrip/patches/no-img2py.patch b/srcpkgs/photofilmstrip/patches/no-img2py.patch
new file mode 100644
index 0000000000000..8f6014c2708a8
--- /dev/null
+++ b/srcpkgs/photofilmstrip/patches/no-img2py.patch
@@ -0,0 +1,13 @@
+--- a/setup.py
++++ b/setup.py
+@@ -187,9 +187,7 @@ class pfs_build(build):
+         build.run(self)
+ 
+     def _make_resources(self):
+-        try:
+-            from wx.tools.img2py import img2py
+-        except ImportError:
++        if True:
+             log.warn("Cannot update image resources! Using images.py from source")
+             return
+ 
diff --git a/srcpkgs/photofilmstrip/template b/srcpkgs/photofilmstrip/template
new file mode 100644
index 0000000000000..d2050ac4c64c8
--- /dev/null
+++ b/srcpkgs/photofilmstrip/template
@@ -0,0 +1,24 @@
+# Template file for 'photofilmstrip'
+pkgname=photofilmstrip
+version=4.0.0
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools gst1-python3 python3-Sphinx gettext"
+depends="python3 gst1-python3 gst1-editing-services python3-Pillow wxPython4"
+checkdepends="$depends"
+short_desc="Slideshow creator with Ken Burns effect"
+maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
+license="GPL-2.0-or-later"
+homepage="https://www.photofilmstrip.org/"
+distfiles="https://github.com/PhotoFilmStrip/PFS/archive/refs/tags/v${version}.tar.gz"
+checksum=1e0ced0a25f752100a68286833d35fd976a59bafd927eb4eae54b837974578ee
+
+post_patch() {
+	vsed -i -e 's/gstreamer1.0-libav/gst-libav/' \
+		-e 's/gstreamer1.0-plugins-base/gst-plugins-base1/' \
+		-e 's/gstreamer1.0-plugins-good/gst-plugins-good1/' \
+		-e 's/gstreamer1.0-plugins-bad/gst-plugins-bad1/' \
+		-e 's/gstreamer1.0-plugins-ugly/gst-plugins-ugly1/' \
+		photofilmstrip/core/renderer/GStreamerRenderer.py \
+		po/*.po
+}

  reply	other threads:[~2023-07-29 17:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-29 17:18 [PR PATCH] " sgn
2023-07-29 17:23 ` sgn [this message]
2023-07-30 15:03 ` [PR PATCH] [Merged]: " sgn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230729172303.APqfZefIdvWRs4DtCJVBfh6afM7SoOr6FBcsvBMQRqw@z \
    --to=sgn@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).