Skip to content

Commit

Permalink
media-video/obs-multistream: new package, add 9999
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Strizhkin <[email protected]>
  • Loading branch information
denisstrizhkin committed Sep 19, 2024
1 parent acf2646 commit d4549e2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
11 changes: 11 additions & 0 deletions media-video/obs-multistream/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<upstream>
<remote-id type="github">streamwayin/obs-multistream</remote-id>
</upstream>
<use>
<flag name="qt">Use Qt functionality.</flag>
<flag name="obs-frontend-api">Use obs-frontend-api for UI functionality.</flag>
</use>
</pkgmetadata>
37 changes: 37 additions & 0 deletions media-video/obs-multistream/obs-multistream-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake flag-o-matic

DESCRIPTION="OBS multistream plugin"
HOMEPAGE="https://github.com/streamwayin/obs-multistream"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/streamwayin/obs-multistream.git"
fi # no latest tag

This comment has been minimized.

Copy link
@stkw0

stkw0 Sep 19, 2024

Contributor

It has a tag. See https://github.com/streamwayin/obs-multistream/releases/tag/0.1.0.0

And if it didn't, it would be better to take a snapshot than having a live ebuild


LICENSE="GPL-2"
SLOT="0"
IUSE="+obs-frontend-api +qt"
DEPEND="
!media-video/obs-multi-rtmp
"
RDEPEND="
${DEPEND}
media-video/obs-studio
"

src_configure() {
local mycmakeargs+=(
-DENABLE_FRONTEND_API=$(usex obs-frontend-api ON OFF)
-DENABLE_QT=$(usex qt ON OFF)
)

# code base is not clean
# opened bug https://github.com/sorayuki/obs-multi-rtmp/issues/378
append-cppflags -Wno-error=shadow -Wno-error=conversion -Wno-error=float-conversion -Wno-error=sign-compare

cmake_src_configure
}

2 comments on commit d4549e2

@pastalian
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason to add this fork when media-video/obs-multi-rtmp already exists? I'm curious.

@stkw0
Copy link
Contributor

@stkw0 stkw0 commented on d4549e2 Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the original seems better maintained than this fork. This ebuild seems a copy paste of the other.
If there is some important issue with the original repo we should consider masking it.

For now I will revert this commit.

Please sign in to comment.