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: Thu, 22 Feb 2024 16:57:53 +0000 (UTC)	[thread overview]
Message-ID: <1708621063.0ab08c716c958cf2e61bb5154b2b740879c6b20a.gonegrier.duarte@gentoo> (raw)

commit:     0ab08c716c958cf2e61bb5154b2b740879c6b20a
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Feb 22 16:27:39 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Feb 22 16:57:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0ab08c71

media-video/obs-streamfx: add 0.11.0
* since the version detection dosent work without .git repo
* and the version override seems to be broken upstream
* all ebuild use the git version and then change to the version tag

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 .../obs-streamfx/obs-streamfx-0.11.0.ebuild        | 40 +++++++++++
 .../obs-streamfx/obs-streamfx-0.12.0.9999.ebuild   | 78 ++--------------------
 media-video/obs-streamfx/obs-streamfx-9999.ebuild  | 75 +--------------------
 3 files changed, 48 insertions(+), 145 deletions(-)

diff --git a/media-video/obs-streamfx/obs-streamfx-0.11.0.ebuild b/media-video/obs-streamfx/obs-streamfx-0.11.0.ebuild
new file mode 100644
index 0000000000..0aac7561c6
--- /dev/null
+++ b/media-video/obs-streamfx/obs-streamfx-0.11.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake git-r3
+
+M_PV="0.11.0"
+
+DESCRIPTION="OBS® Studio plugin which adds many new effects."
+HOMEPAGE="https://github.com/Xaymar/obs-StreamFX"
+
+EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
+EGIT_BRANCH="${M_PV}"
+
+KEYWORDS="~amd64"
+
+LICENSE="GPL-2"
+SLOT="0"
+RDEPEND="
+	media-video/obs-studio
+"
+
+src_prepare() {
+	default
+
+	#fix CMakeLists.txt libdir
+	sed -i 's|"lib/obs-plugins/"|"${CMAKE_INSTALL_LIBDIR}/obs-plugins/"|g' "${S}/CMakeLists.txt"
+	cmake_src_prepare
+}
+
+src_configure() {
+
+	local mycmakeargs+=(
+		-DSTRUCTURE_PACKAGEMANAGER=TRUE
+		-DPACKAGE_NAME="obs-streamfx"
+	)
+
+	cmake_src_configure
+}

diff --git a/media-video/obs-streamfx/obs-streamfx-0.12.0.9999.ebuild b/media-video/obs-streamfx/obs-streamfx-0.12.0.9999.ebuild
index 1f8ade5e91..0ac624011e 100644
--- a/media-video/obs-streamfx/obs-streamfx-0.12.0.9999.ebuild
+++ b/media-video/obs-streamfx/obs-streamfx-0.12.0.9999.ebuild
@@ -3,48 +3,18 @@
 
 EAPI=8
 
-inherit cmake
-
-CMAKE_CLANG_COMMIT="7e577af2e963e3dfcce611942fce305c70583b2a"
-CMAKE_VERSION_COMMIT="3bef96bafab04161991c2cd98a1ed51f6362d670"
-NHOHMANN_JSON_COMMIT="db78ac1d7716f56fc9f1b030b715f872f93964e4"
-MSVC_REDIST_HELPER_COMMIT="aa4665ccf68a382f1c2b115fb6c9668b6a8bd64d"
-NVIDIA_MAXINE_AR_SDK_COMMIT="ca10ac3b3984357aab84b3c6319d35c82d49e836"
-NVIDIA_MAXINE_VFX_SDK_COMMIT="f63d9d1dbd14c905d56648817f132d3eb9a8690d"
-NVIDIA_MAXINE_AFX_SDK_COMMIT="4d4ed8d8aca914f4dbf8570f1626cf4108e19bb4"
-OBS_STUDIO_COMMIT="abb80571351438bebd018a45d896b26f95881fbe"
+inherit cmake git-r3
 
 #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"
-	EGIT_BRANCH="${M_PV}"
-#else
-#	SRC_URI="
-#			https://github.com/Xaymar/obs-StreamFX/archive/refs/tags/${M_PV}.tar.gz -> ${PN}-${M_PV}.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_COMMIT}.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
-#	"
+
+EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
+EGIT_BRANCH="${M_PV}"
+
 #	KEYWORDS="~amd64"
-#fi
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -52,43 +22,6 @@ RDEPEND="
 	media-video/obs-studio
 "
 
-if [[ ${PV} != 9999 ]]; then
-	S="${WORKDIR}/obs-StreamFX-${M_PV}"
-fi
-
-src_unpack() {
-	default
-
-	if [[ ${PV} != 9999 ]]; then
-		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"
-
-	else
-		git-r3_src_unpack
-	fi
-}
-
 src_prepare() {
 	default
 
@@ -102,7 +35,6 @@ src_configure() {
 	local mycmakeargs+=(
 		-DSTRUCTURE_PACKAGEMANAGER=TRUE
 		-DPACKAGE_NAME="obs-streamfx"
-		#$([[ ${PV} != "9999" ]] && echo "-DVERSION=${M_PV}")
 	)
 
 	cmake_src_configure

diff --git a/media-video/obs-streamfx/obs-streamfx-9999.ebuild b/media-video/obs-streamfx/obs-streamfx-9999.ebuild
index e06f2c4f4a..d30ea84efe 100644
--- a/media-video/obs-streamfx/obs-streamfx-9999.ebuild
+++ b/media-video/obs-streamfx/obs-streamfx-9999.ebuild
@@ -3,47 +3,15 @@
 
 EAPI=8
 
-inherit cmake
-
-CMAKE_CLANG_COMMIT="7e577af2e963e3dfcce611942fce305c70583b2a"
-CMAKE_VERSION_COMMIT="3bef96bafab04161991c2cd98a1ed51f6362d670"
-NHOHMANN_JSON_COMMIT="db78ac1d7716f56fc9f1b030b715f872f93964e4"
-MSVC_REDIST_HELPER_COMMIT="aa4665ccf68a382f1c2b115fb6c9668b6a8bd64d"
-NVIDIA_MAXINE_AR_SDK_COMMIT="ca10ac3b3984357aab84b3c6319d35c82d49e836"
-NVIDIA_MAXINE_VFX_SDK_COMMIT="f63d9d1dbd14c905d56648817f132d3eb9a8690d"
-NVIDIA_MAXINE_AFX_SDK_COMMIT="4d4ed8d8aca914f4dbf8570f1626cf4108e19bb4"
-OBS_STUDIO_COMMIT="abb80571351438bebd018a45d896b26f95881fbe"
+inherit cmake git-r3
 
 #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 -> ${PN}-${M_PV}.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_COMMIT}.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
+
+EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -51,43 +19,6 @@ RDEPEND="
 	media-video/obs-studio
 "
 
-if [[ ${PV} != 9999 ]]; then
-	S="${WORKDIR}/obs-StreamFX-${M_PV}"
-fi
-
-src_unpack() {
-	default
-
-	if [[ ${PV} != 9999 ]]; then
-		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"
-
-	else
-		git-r3_src_unpack
-	fi
-}
-
 src_prepare() {
 	default
 


             reply	other threads:[~2024-02-22 16:57 UTC|newest]

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