mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
* 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@gmail.com>
40 lines
826 B
Bash
40 lines
826 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
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"
|
|
|
|
EGIT_REPO_URI="https://github.com/Xaymar/obs-StreamFX.git"
|
|
|
|
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"
|
|
$([[ ${PV} != "9999" ]] && echo "-DVERSION=${M_PV}")
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|