commit:     2d8b83cd850d59ee200ac458bb9a3ef9cd7eca19
Author:     Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail <DOT> 
com>
AuthorDate: Wed May 24 17:34:08 2023 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Wed May 24 18:03:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2d8b83cd

media-video/avisynth+: new package, add 9999

Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger <AT> gmail.com>

 media-video/avisynth+/avisynth+-9999.ebuild        | 50 ++++++++++++++++++++++
 .../files/avisynth+-9999-return-type-warning.patch | 12 ++++++
 media-video/avisynth+/metadata.xml                 | 11 +++++
 3 files changed, 73 insertions(+)

diff --git a/media-video/avisynth+/avisynth+-9999.ebuild 
b/media-video/avisynth+/avisynth+-9999.ebuild
new file mode 100644
index 000000000..43c72c7d2
--- /dev/null
+++ b/media-video/avisynth+/avisynth+-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+       SCM="git-r3"
+       EGIT_REPO_URI="https://github.com/AviSynth/AviSynthPlus.git";
+fi
+
+inherit cmake-multilib ${SCM}
+
+DESCRIPTION="A powerful nonlinear scripting language for video"
+HOMEPAGE="https://github.com/AviSynth/AviSynthPlus";
+if [ "${PV#9999}" != "${PV}" ] ; then
+       SRC_URI=""
+else # TODO release
+       SRC_URI=""
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+if [ "${PV#9999}" = "${PV}" ] ; then
+       KEYWORDS="~amd64"
+fi
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+PATCHES=(
+       "${FILESDIR}/avisynth+-9999-return-type-warning.patch"
+)
+
+MULTILIB_WRAPPED_HEADERS=(
+       /usr/include/avisynth/avs/arch.h
+)
+
+pkg_postinst() {
+       elog "Integration with some packages can be achieved by setting 
environment"
+       elog "variables and re-emerging the package:"
+       elog ""
+       elog "media-video/ffmpeg:"
+       elog "  - add \"--enable-avisynth\" to EXTRA_FFMPEG_CONF"
+       elog ""
+       elog "media-libs/ffmpegsource:"
+       elog "  - add \"--enable-avisynth\" to EXTRA_ECONF"
+       elog "  - add \"-I/usr/include/avisynth\" to CXXFLAGS"
+}

diff --git 
a/media-video/avisynth+/files/avisynth+-9999-return-type-warning.patch 
b/media-video/avisynth+/files/avisynth+-9999-return-type-warning.patch
new file mode 100644
index 000000000..c4f7d8571
--- /dev/null
+++ b/media-video/avisynth+/files/avisynth+-9999-return-type-warning.patch
@@ -0,0 +1,12 @@
+--- avisynth+-9999/avs_core/core/parser/script.cpp.orig        2023-05-24 
19:09:20.896164496 +0200
++++ avisynth+-9999/avs_core/core/parser/script.cpp     2023-05-24 
19:11:50.755632346 +0200
+@@ -1941,6 +1941,9 @@
+ 
+     return PROCESS_32_ON_32;
+   }
++#else
++  else
++    return PROCESS_UNKNOWN;
+ #endif
+ }
+ 

diff --git a/media-video/avisynth+/metadata.xml 
b/media-video/avisynth+/metadata.xml
new file mode 100644
index 000000000..462ddc7c1
--- /dev/null
+++ b/media-video/avisynth+/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>falbrechtskirchin...@gmail.com</email>
+    <name>Florian Albrechtskirchinger</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="github">AviSynth/AviSynthPlus</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to