public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Gonçalo Negrier Duarte" <gonegrier.duarte@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/obs-streamfx/
Date: Sun,  3 Dec 2023 16:46:32 +0000 (UTC)	[thread overview]
Message-ID: <1701621939.4cd1adcdb96749a5e4efe5ad32ff776003e06657.gonegrier.duarte@gentoo> (raw)

commit:     4cd1adcdb96749a5e4efe5ad32ff776003e06657
Author:     Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
AuthorDate: Fri Dec  1 23:14:41 2023 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Dec  3 16:45:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4cd1adcd

media-video/obs-streamfx: new package, add 0.12.0, 9999
* add beta 0.12.0
* dont add stable 0.11.1 and older since requires to download libobs during cmake

Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>

 media-video/obs-streamfx/Manifest                  |   9 ++
 media-video/obs-streamfx/metadata.xml              |  16 ++++
 .../obs-streamfx/obs-streamfx-0.12.0.ebuild        | 103 +++++++++++++++++++++
 media-video/obs-streamfx/obs-streamfx-9999.ebuild  | 103 +++++++++++++++++++++
 4 files changed, 231 insertions(+)

diff --git a/media-video/obs-streamfx/Manifest b/media-video/obs-streamfx/Manifest
new file mode 100644
index 0000000000..8642dbfc8b
--- /dev/null
+++ b/media-video/obs-streamfx/Manifest
@@ -0,0 +1,9 @@
+DIST MAXINE-AFX-SDK-4d4ed8d8aca914f4dbf8570f1626cf4108e19bb4.tar.gz 31726703 BLAKE2B 399fbe7d3f5ab3d55831edd6d4820254a1f17e27dc422cf6eab86e278f31f5e8ac3c031cbbfa534cda10154cc5954e94e8049aa16fac7d2c8a12190426b91f70 SHA512 500de1780a6d31452581dc77690e4e7e24562d8371b23bc499ce3a42e977876471785842851b844cc4633e793afb230c2d528b7b20fea882e7964fba760ac8b9
+DIST MAXINE-AR-SDK-MAXINE-AR-SDK.tar.gz 36525210 BLAKE2B c176652e8ee57fe0c26518fe4de94393cb607c56eddf3d09fb844ae01ed87cbf286b2b4cde3b2d4bd31a2db2f050998a60e21cef09e15c4d329f957b347160a9 SHA512 09aff505d536780dd051925aab35704799faa3aa7651713068985431010ea02a7c16d007e33a326047a433ea0c345cfed9f3ede61e13c9fc0635a4e66e625383
+DIST MAXINE-VFX-SDK-3df6c37852afad9f15ee0b85e51b5b49e611cfc0.tar.gz 35162815 BLAKE2B fc33f80ea2bc33e9ce0babf787d403de8186ebc7dc497413458b509e047fa21f05d68fd7e010b457706ff931a43bf1b7f452708bf2b34fc9154ef2f783c756ff SHA512 a20fa0eac9576d25f409bcbdae0c5ade275037196b1fe3eaaf52c7e9da62a39faccebb43d8fdae7a643b44bbef53a0c23ce9cdbe6864205c83840158998f948c
+DIST cmake-clang-d2f9e3234313a7434dead5b957301ebbdddf13d7.tar.gz 1954 BLAKE2B dc79d54950bff2094930f6ee8095605f62e358d1d5088c804242d6b11b6b61a0e9dfd5efc4b5dc62f7c9d91416093bc6613bd2815c6566ab7f1605f5655743e1 SHA512 144b2f1c07e05bbd1d3c3f21a28014b2a54f53bb2dfe0b7460a028320fd7c4934fff1239020896d95ee0e66d07dfc4bf01efa6e86c72d2bb04294be618748812
+DIST cmake-version-3bef96bafab04161991c2cd98a1ed51f6362d670.tar.gz 11195 BLAKE2B 9a5e11a8dd7e7bf97bf26f0c5ca1e0cf3908bf5ea38e413c71eb3e867c2d98b9144127e12c82bd52d58bfabb4405d7a2f360725f1cd7f16da9db7024c6421185 SHA512 1dbcebafd97b5f961db69a2c865f612bfa8e055652a5777291d3c4f1f025bb8244c83099a2917e67ae0cd959c4e7afd243d0c3834ea3254d90114a13b6d6a805
+DIST json-e4643d1f1b03fc7a1d7b65f17e012ca93680cad8.tar.gz 7026075 BLAKE2B 5c04615b72f05c78c0ef30052e831f0864f3658a329e44ad51494872517e46cecce6dc0e5b59d7a94e8cad1e0ce998dc9708e12eb8c811073111f7f0a70fa218 SHA512 58bbc45b85afa7d95a37a46a95d8d278959f1f1fc9b43847e1881a42abfef347b6b0414e36b833652bc799b5a045d7cb7a90a12f9246bf2b7fda19b4842e64f6
+DIST msvc-redist-helper-7587246671340b683a0b8f06fb369d6574d8274f.tar.gz 11132 BLAKE2B 7caa2a510d84103203ed5e15b2544d4f956c3a21e2632ae61a216ca03b27bf0aff2981c8462e9dab1e0c4f3cd7a0b291426000e5f7dbac406bd3205b63518289 SHA512 389c25e63b56136ad1d940db408cb9a5d2c7caeb73cef0591601ec4f6d5af40bb7451bfcbc79ae116ab5a3eae68e4bb1cbd81bc36e7d50cc47b26dc62893a4a4
+DIST obs-streamfx-0.12.0.tar.gz 13008288 BLAKE2B 83b3d0ff385c02b38adea4ed7f74aa14b24618e84d14d5208ed193d4e64ee5d6b5949bb2b3f03c4b8dd511ed3a53f4104c6c973e9586141868b8bc08d93aa9d6 SHA512 87dc270b72d7d09b4ce734ea14d1638ba328a3bbb662a1cc4f11811ebe66f9a998053fcae8bc4d2d017baffb304f00d7821b5d046667c3d9645930a8f751f537
+DIST obs-studio-34ef67e212f24a085a63705a0ab81e3401c8eca4.tar.gz 15852743 BLAKE2B ecf4090d8c00948a06d8fb0fcf711e7c1e06a8713a7fcc1ff108add5c8bc8d0ccf833db4e01ac6e2eb0b1d406b547d505e108176ae4e5eaa48f8866122fb6b12 SHA512 634fc28090031cb05a6418cef7fdf462600dcb833b28a450f1858ba00bc7d3a70817f9bd45d7c14b441c4d01add780e9eb29adfa103df529c0403a120402f8b5

diff --git a/media-video/obs-streamfx/metadata.xml b/media-video/obs-streamfx/metadata.xml
new file mode 100644
index 0000000000..07241812e1
--- /dev/null
+++ b/media-video/obs-streamfx/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+	<maintainer type="person">
+		<email>adel.ks@zegrapher.com</email>
+		<name>Adel KARA SLIMANE</name>
+	</maintainer>
+	<maintainer type="person">
+		<email>gonegrier.duarte@gmail.com</email>
+		<name>Gonçalo Negrier Duarte</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">Xaymar/obs-StreamFX</remote-id>
+		<bugs-to>https://github.com/Xaymar/obs-StreamFX/issues</bugs-to>
+	</upstream>
+</pkgmetadata>

diff --git a/media-video/obs-streamfx/obs-streamfx-0.12.0.ebuild b/media-video/obs-streamfx/obs-streamfx-0.12.0.ebuild
new file mode 100644
index 0000000000..63bf14be36
--- /dev/null
+++ b/media-video/obs-streamfx/obs-streamfx-0.12.0.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+CMAKE_CLANG_COMMIT="d2f9e3234313a7434dead5b957301ebbdddf13d7"
+CMAKE_VERSION_COMMIT="3bef96bafab04161991c2cd98a1ed51f6362d670"
+NHOHMANN_JSON_COMMIT="e4643d1f1b03fc7a1d7b65f17e012ca93680cad8"
+MSVC_REDIST_HELPER_COMMIT="7587246671340b683a0b8f06fb369d6574d8274f"
+NVIDIA_MAXINE_AR_SDK_COMMIT="c4154fa68fc2f91a26f2475e3cf98f64c50483b7"
+NVIDIA_MAXINE_VFX_SDK_COMMIT="3df6c37852afad9f15ee0b85e51b5b49e611cfc0"
+NVIDIA_MAXINE_AFX_SDK_COMMIT="4d4ed8d8aca914f4dbf8570f1626cf4108e19bb4"
+OBS_STUDIO_COMMIT="34ef67e212f24a085a63705a0ab81e3401c8eca4"
+
+#remove when stable release (make life easy later because of new submodules)
+M_PV="0.12.0b366"
+
+DESCRIPTION="OBS® Studio plugin which adds many new effects."
+HOMEPAGE="https://github.com/Xaymar/obs-StreamFX"
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
+else
+	SRC_URI="
+			https://github.com/Xaymar/obs-StreamFX/archive/refs/tags/${M_PV}.tar.gz -> ${P}.tar.gz
+			https://github.com/Xaymar/cmake-clang/archive/${CMAKE_CLANG_COMMIT}.tar.gz -> cmake-clang-${CMAKE_CLANG_COMMIT}.tar.gz
+			https://github.com/Xaymar/cmake-version/archive/${CMAKE_VERSION_COMMIT}.tar.gz -> cmake-version-${CMAKE_VERSION_COMMIT}.tar.gz
+			https://github.com/nlohmann/json/archive/${NHOHMANN_JSON_COMMIT}.tar.gz -> json-${NHOHMANN_JSON_COMMIT}.tar.gz
+			https://github.com/Xaymar/msvc-redist-helper/archive/${MSVC_REDIST_HELPER_COMMIT}.tar.gz -> msvc-redist-helper-${MSVC_REDIST_HELPER_COMMIT}.tar.gz
+			https://github.com/NVIDIA/MAXINE-AR-SDK/archive/${NVIDIA_MAXINE_AR_SDK_COMMIT}.tar.gz -> MAXINE-AR-SDK-${NVIDIA-MAXINE-AR-SDK}.tar.gz
+			https://github.com/NVIDIA/MAXINE-VFX-SDK/archive/${NVIDIA_MAXINE_VFX_SDK_COMMIT}.tar.gz -> MAXINE-VFX-SDK-${NVIDIA_MAXINE_VFX_SDK_COMMIT}.tar.gz
+			https://github.com/NVIDIA/MAXINE-AFX-SDK/archive/${NVIDIA_MAXINE_AFX_SDK_COMMIT}.tar.gz -> MAXINE-AFX-SDK-${NVIDIA_MAXINE_AFX_SDK_COMMIT}.tar.gz
+			https://github.com/obsproject/obs-studio/archive/${OBS_STUDIO_COMMIT}.tar.gz -> obs-studio-${OBS_STUDIO_COMMIT}.tar.gz
+	"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+RDEPEND="
+	media-video/obs-studio
+"
+
+if [[ ${PV} != 9999 ]]; then
+	S="${WORKDIR}/obs-StreamFX-${M_PV}"
+fi
+
+src_unpack() {
+	default
+
+	if [[ ${PV} == 9999 ]]; then
+		git-r3_src_unpack
+	else
+		rm -d "${S}/cmake/clang"
+		mv cmake-clang-${CMAKE_CLANG_COMMIT} "${S}/cmake/clang"
+
+		rm -d "${S}/cmake/version"
+		mv cmake-version-${CMAKE_VERSION_COMMIT} "${S}/cmake/version"
+
+		rm -d "${S}/third-party/nlohmann-json"
+		mv json-${NHOHMANN_JSON_COMMIT} "${S}/third-party/nlohmann-json"
+
+		rm -d "${S}/third-party/msvc-redist-helper"
+		mv msvc-redist-helper-${MSVC_REDIST_HELPER_COMMIT} "${S}/third-party/msvc-redist-helper"
+
+		rm -d "${S}/third-party/nvidia-maxine-ar-sdk"
+		mv MAXINE-AR-SDK-${NVIDIA_MAXINE_AR_SDK_COMMIT} "${S}/third-party/nvidia-maxine-ar-sdk"
+
+		rm -d "${S}/third-party/nvidia-maxine-vfx-sdk"
+		mv MAXINE-VFX-SDK-${NVIDIA_MAXINE_VFX_SDK_COMMIT} "${S}/third-party/nvidia-maxine-vfx-sdk"
+
+		rm -d "${S}/third-party/nvidia-maxine-afx-sdk"
+		mv MAXINE-AFX-SDK-${NVIDIA_MAXINE_AFX_SDK_COMMIT} "${S}/third-party/nvidia-maxine-afx-sdk"
+
+		rm -d "${S}/third-party/obs-studio"
+		mv obs-studio-${OBS_STUDIO_COMMIT} "${S}/third-party/obs-studio"
+	fi
+}
+
+src_prepare() {
+	default
+
+	#fix CMakeLists.txt libdir
+	sed -i 's|"lib/obs-plugins/"|"${CMAKE_INSTALL_LIBDIR}/obs-plugins/"|g' "${S}/CMakeLists.txt"
+	if [[ ${PV} != 9999 ]]; then
+		sed -i "/Not a git repository, automatic version detection disabled./a \    set(_VERSION \"${M_PV}\")" "${S}/CMakeLists.txt"
+	fi
+
+	cmake_src_prepare
+}
+
+src_configure() {
+
+	local mycmakeargs+=(
+		-DENABLE_UPDATER=FALSE
+		-DSTRUCTURE_PACKAGEMANAGER=TRUE
+		-DPACKAGE_NAME="obs-streamfx"
+	)
+
+	cmake_src_configure
+}

diff --git a/media-video/obs-streamfx/obs-streamfx-9999.ebuild b/media-video/obs-streamfx/obs-streamfx-9999.ebuild
new file mode 100644
index 0000000000..63bf14be36
--- /dev/null
+++ b/media-video/obs-streamfx/obs-streamfx-9999.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+CMAKE_CLANG_COMMIT="d2f9e3234313a7434dead5b957301ebbdddf13d7"
+CMAKE_VERSION_COMMIT="3bef96bafab04161991c2cd98a1ed51f6362d670"
+NHOHMANN_JSON_COMMIT="e4643d1f1b03fc7a1d7b65f17e012ca93680cad8"
+MSVC_REDIST_HELPER_COMMIT="7587246671340b683a0b8f06fb369d6574d8274f"
+NVIDIA_MAXINE_AR_SDK_COMMIT="c4154fa68fc2f91a26f2475e3cf98f64c50483b7"
+NVIDIA_MAXINE_VFX_SDK_COMMIT="3df6c37852afad9f15ee0b85e51b5b49e611cfc0"
+NVIDIA_MAXINE_AFX_SDK_COMMIT="4d4ed8d8aca914f4dbf8570f1626cf4108e19bb4"
+OBS_STUDIO_COMMIT="34ef67e212f24a085a63705a0ab81e3401c8eca4"
+
+#remove when stable release (make life easy later because of new submodules)
+M_PV="0.12.0b366"
+
+DESCRIPTION="OBS® Studio plugin which adds many new effects."
+HOMEPAGE="https://github.com/Xaymar/obs-StreamFX"
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
+else
+	SRC_URI="
+			https://github.com/Xaymar/obs-StreamFX/archive/refs/tags/${M_PV}.tar.gz -> ${P}.tar.gz
+			https://github.com/Xaymar/cmake-clang/archive/${CMAKE_CLANG_COMMIT}.tar.gz -> cmake-clang-${CMAKE_CLANG_COMMIT}.tar.gz
+			https://github.com/Xaymar/cmake-version/archive/${CMAKE_VERSION_COMMIT}.tar.gz -> cmake-version-${CMAKE_VERSION_COMMIT}.tar.gz
+			https://github.com/nlohmann/json/archive/${NHOHMANN_JSON_COMMIT}.tar.gz -> json-${NHOHMANN_JSON_COMMIT}.tar.gz
+			https://github.com/Xaymar/msvc-redist-helper/archive/${MSVC_REDIST_HELPER_COMMIT}.tar.gz -> msvc-redist-helper-${MSVC_REDIST_HELPER_COMMIT}.tar.gz
+			https://github.com/NVIDIA/MAXINE-AR-SDK/archive/${NVIDIA_MAXINE_AR_SDK_COMMIT}.tar.gz -> MAXINE-AR-SDK-${NVIDIA-MAXINE-AR-SDK}.tar.gz
+			https://github.com/NVIDIA/MAXINE-VFX-SDK/archive/${NVIDIA_MAXINE_VFX_SDK_COMMIT}.tar.gz -> MAXINE-VFX-SDK-${NVIDIA_MAXINE_VFX_SDK_COMMIT}.tar.gz
+			https://github.com/NVIDIA/MAXINE-AFX-SDK/archive/${NVIDIA_MAXINE_AFX_SDK_COMMIT}.tar.gz -> MAXINE-AFX-SDK-${NVIDIA_MAXINE_AFX_SDK_COMMIT}.tar.gz
+			https://github.com/obsproject/obs-studio/archive/${OBS_STUDIO_COMMIT}.tar.gz -> obs-studio-${OBS_STUDIO_COMMIT}.tar.gz
+	"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+RDEPEND="
+	media-video/obs-studio
+"
+
+if [[ ${PV} != 9999 ]]; then
+	S="${WORKDIR}/obs-StreamFX-${M_PV}"
+fi
+
+src_unpack() {
+	default
+
+	if [[ ${PV} == 9999 ]]; then
+		git-r3_src_unpack
+	else
+		rm -d "${S}/cmake/clang"
+		mv cmake-clang-${CMAKE_CLANG_COMMIT} "${S}/cmake/clang"
+
+		rm -d "${S}/cmake/version"
+		mv cmake-version-${CMAKE_VERSION_COMMIT} "${S}/cmake/version"
+
+		rm -d "${S}/third-party/nlohmann-json"
+		mv json-${NHOHMANN_JSON_COMMIT} "${S}/third-party/nlohmann-json"
+
+		rm -d "${S}/third-party/msvc-redist-helper"
+		mv msvc-redist-helper-${MSVC_REDIST_HELPER_COMMIT} "${S}/third-party/msvc-redist-helper"
+
+		rm -d "${S}/third-party/nvidia-maxine-ar-sdk"
+		mv MAXINE-AR-SDK-${NVIDIA_MAXINE_AR_SDK_COMMIT} "${S}/third-party/nvidia-maxine-ar-sdk"
+
+		rm -d "${S}/third-party/nvidia-maxine-vfx-sdk"
+		mv MAXINE-VFX-SDK-${NVIDIA_MAXINE_VFX_SDK_COMMIT} "${S}/third-party/nvidia-maxine-vfx-sdk"
+
+		rm -d "${S}/third-party/nvidia-maxine-afx-sdk"
+		mv MAXINE-AFX-SDK-${NVIDIA_MAXINE_AFX_SDK_COMMIT} "${S}/third-party/nvidia-maxine-afx-sdk"
+
+		rm -d "${S}/third-party/obs-studio"
+		mv obs-studio-${OBS_STUDIO_COMMIT} "${S}/third-party/obs-studio"
+	fi
+}
+
+src_prepare() {
+	default
+
+	#fix CMakeLists.txt libdir
+	sed -i 's|"lib/obs-plugins/"|"${CMAKE_INSTALL_LIBDIR}/obs-plugins/"|g' "${S}/CMakeLists.txt"
+	if [[ ${PV} != 9999 ]]; then
+		sed -i "/Not a git repository, automatic version detection disabled./a \    set(_VERSION \"${M_PV}\")" "${S}/CMakeLists.txt"
+	fi
+
+	cmake_src_prepare
+}
+
+src_configure() {
+
+	local mycmakeargs+=(
+		-DENABLE_UPDATER=FALSE
+		-DSTRUCTURE_PACKAGEMANAGER=TRUE
+		-DPACKAGE_NAME="obs-streamfx"
+	)
+
+	cmake_src_configure
+}


             reply	other threads:[~2023-12-03 16:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-03 16:46 Gonçalo Negrier Duarte [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-30 14:16 [gentoo-commits] repo/proj/guru:dev commit in: media-video/obs-streamfx/ Gonçalo Negrier Duarte
2023-12-30 17:26 Gonçalo Negrier Duarte
2024-01-02 14:53 Gonçalo Negrier Duarte
2024-01-06 21:43 Gonçalo Negrier Duarte
2024-02-22 16:57 Gonçalo Negrier Duarte
2024-02-22 17:15 Gonçalo Negrier Duarte
2024-02-22 17:42 Julien Roy
2024-02-22 17:57 Gonçalo Negrier Duarte
2024-02-22 18:06 Gonçalo Negrier Duarte

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=1701621939.4cd1adcdb96749a5e4efe5ad32ff776003e06657.gonegrier.duarte@gentoo \
    --to=gonegrier.duarte@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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