public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg2theora/, media-video/ffmpeg2theora/files/
@ 2020-09-26 12:51 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2020-09-26 12:51 UTC (permalink / raw
  To: gentoo-commits

commit:     20c0969abc918f14a74b0586556a1fb5f9181be7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 26 12:20:27 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 26 12:50:39 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c0969a

media-video/ffmpeg2theora: Port to py3

Closes: https://bugs.gentoo.org/735546
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ...ra-0.30.ebuild => ffmpeg2theora-0.30-r1.ebuild} | 27 ++++++++++++++--------
 .../files/ffmpeg2theora-0.29-underlinking.patch    |  4 ++--
 2 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/media-video/ffmpeg2theora/ffmpeg2theora-0.30.ebuild b/media-video/ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild
similarity index 69%
rename from media-video/ffmpeg2theora/ffmpeg2theora-0.30.ebuild
rename to media-video/ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild
index 49c6e4674e0..0e9cd2e06d0 100644
--- a/media-video/ffmpeg2theora/ffmpeg2theora-0.30.ebuild
+++ b/media-video/ffmpeg2theora/ffmpeg2theora-0.30-r1.ebuild
@@ -1,8 +1,10 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit eutils toolchain-funcs scons-utils
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+inherit python-any-r1 scons-utils toolchain-funcs
 
 DESCRIPTION="A simple converter to create Ogg Theora files"
 HOMEPAGE="http://www.v2v.cc/~j/ffmpeg2theora/"
@@ -19,30 +21,35 @@ RDEPEND="
 	>=media-libs/libogg-1.1
 	>=media-libs/libtheora-1.1[encode]
 	kate? ( >=media-libs/libkate-0.3.7 )"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
 	virtual/pkgconfig"
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.29-swr.patch
+	"${FILESDIR}"/${PN}-0.29-underlinking.patch
+)
+
 src_prepare() {
-	epatch \
-		"${FILESDIR}"/${PN}-0.29-swr.patch \
-		"${FILESDIR}"/${PN}-0.29-underlinking.patch
+	default
+	2to3 -n -w --no-diffs SConstruct || die
 }
 
 src_configure() {
-	myesconsargs=(
+	SCONSARGS=(
 		APPEND_CCFLAGS="${CFLAGS}"
 		APPEND_LINKFLAGS="${LDFLAGS}"
 		prefix=/usr
 		mandir=PREFIX/share/man
 		libkate=$(usex kate 1 0)
-		)
+	)
 }
 
 src_compile() {
-	escons
+	escons "${SCONSARGS[@]}"
 }
 
 src_install() {
-	escons destdir="${D}" install
+	escons "${SCONSARGS[@]}" destdir="${D}" install
 	dodoc AUTHORS ChangeLog README subtitles.txt TODO
 }

diff --git a/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch b/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch
index dc877603913..791e39d8774 100644
--- a/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch
+++ b/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch
@@ -6,8 +6,8 @@ v = pow(v, g) * 255.0;    // mplayer's vf_eq2.c multiplies with 256 here, strang
 
 For build failure and log, see Gentoo bug #504698
 
---- SConstruct
-+++ SConstruct
+--- a/SConstruct
++++ b/SConstruct
 @@ -206,9 +206,8 @@
    if env['crossmingw']:
        env.Append(CCFLAGS=['-Wl,-subsystem,windows'])


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-26 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-26 12:51 [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg2theora/, media-video/ffmpeg2theora/files/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox