1 |
commit: b6705a7e2e9b22764b62a7ea49c31955c6353b53 |
2 |
Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 19 11:20:34 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 17:19:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6705a7e |
7 |
|
8 |
media-video/obs-studio: add version 24.0.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org> |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
media-video/obs-studio/Manifest | 1 + |
15 |
media-video/obs-studio/obs-studio-24.0.3.ebuild | 132 ++++++++++++++++++++++++ |
16 |
2 files changed, 133 insertions(+) |
17 |
|
18 |
diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest |
19 |
index cbc06a6f446..99942d9afc6 100644 |
20 |
--- a/media-video/obs-studio/Manifest |
21 |
+++ b/media-video/obs-studio/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST obs-studio-23.2.1.tar.gz 6204515 BLAKE2B bd025a1ec2809e8a0b47fba79c6a3d40feb255a03a461725501a9c7cdbc40c04b75ff714fa4b3787f876a3f524f3371119a3ea9666c3aeb003184f1eb2a63123 SHA512 aabc23d825c2ca3f40274a8e2c4935939dab4955d929c44b28cebde114e808543c1c0dc05791bb6d9f2611effb0f2cb3e20c9a653154c30a9851ea94e74c8169 |
24 |
+DIST obs-studio-24.0.3.tar.gz 6285359 BLAKE2B f799e93e9c35c22e5d7f6e4da04e30b06a3a1ad1b3bfd0a75acdbb5d1f28a717d84809a1f35a858252ff30094fa80521d752a35b5285b0a606d0d77ff88fb3cf SHA512 57cef700076457da1eee344042261e1ada6d6744fcb3033a1d4eaffb9e84dd350aa198984fba3de82d4e727706f562c7c3568d95de6859a4942d9fa6368a02ab |
25 |
|
26 |
diff --git a/media-video/obs-studio/obs-studio-24.0.3.ebuild b/media-video/obs-studio/obs-studio-24.0.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..58691bbb1db |
29 |
--- /dev/null |
30 |
+++ b/media-video/obs-studio/obs-studio-24.0.3.ebuild |
31 |
@@ -0,0 +1,132 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_REMOVE_MODULES_LIST=( FindFreetype ) |
38 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
39 |
+ |
40 |
+inherit cmake-utils python-single-r1 xdg-utils |
41 |
+ |
42 |
+if [[ ${PV} == *9999 ]]; then |
43 |
+ inherit git-r3 |
44 |
+ EGIT_REPO_URI="https://github.com/obsproject/obs-studio.git" |
45 |
+ EGIT_SUBMODULES=() |
46 |
+else |
47 |
+ SRC_URI="https://github.com/obsproject/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ KEYWORDS="~amd64 ~x86" |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="Software for Recording and Streaming Live Video Content" |
52 |
+HOMEPAGE="https://obsproject.com" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+IUSE="+alsa fdk imagemagick jack luajit nvenc pulseaudio python speex +ssl truetype v4l vlc" |
57 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
+ |
59 |
+BDEPEND=" |
60 |
+ luajit? ( dev-lang/swig ) |
61 |
+ python? ( dev-lang/swig ) |
62 |
+" |
63 |
+DEPEND=" |
64 |
+ >=dev-libs/jansson-2.5 |
65 |
+ dev-qt/qtcore:5 |
66 |
+ dev-qt/qtdeclarative:5 |
67 |
+ dev-qt/qtgui:5 |
68 |
+ dev-qt/qtmultimedia:5 |
69 |
+ dev-qt/qtnetwork:5 |
70 |
+ dev-qt/qtquickcontrols:5 |
71 |
+ dev-qt/qtsql:5 |
72 |
+ dev-qt/qtsvg:5 |
73 |
+ dev-qt/qtwidgets:5 |
74 |
+ dev-qt/qtx11extras:5 |
75 |
+ media-video/ffmpeg:=[x264] |
76 |
+ net-misc/curl |
77 |
+ x11-libs/libXcomposite |
78 |
+ x11-libs/libXinerama |
79 |
+ x11-libs/libXrandr |
80 |
+ alsa? ( media-libs/alsa-lib ) |
81 |
+ fdk? ( media-libs/fdk-aac:= ) |
82 |
+ imagemagick? ( media-gfx/imagemagick:= ) |
83 |
+ jack? ( virtual/jack ) |
84 |
+ luajit? ( dev-lang/luajit:2 ) |
85 |
+ nvenc? ( |
86 |
+ || ( |
87 |
+ <media-video/ffmpeg-4[nvenc] |
88 |
+ >=media-video/ffmpeg-4[video_cards_nvidia] |
89 |
+ ) |
90 |
+ ) |
91 |
+ pulseaudio? ( media-sound/pulseaudio ) |
92 |
+ python? ( ${PYTHON_DEPS} ) |
93 |
+ speex? ( media-libs/speexdsp ) |
94 |
+ ssl? ( net-libs/mbedtls ) |
95 |
+ truetype? ( |
96 |
+ media-libs/fontconfig |
97 |
+ media-libs/freetype |
98 |
+ ) |
99 |
+ v4l? ( media-libs/libv4l ) |
100 |
+ vlc? ( media-video/vlc:= ) |
101 |
+" |
102 |
+RDEPEND="${DEPEND}" |
103 |
+ |
104 |
+pkg_setup() { |
105 |
+ use python && python-single-r1_pkg_setup |
106 |
+} |
107 |
+ |
108 |
+src_configure() { |
109 |
+ local libdir=$(get_libdir) |
110 |
+ local mycmakeargs=( |
111 |
+ -DDISABLE_ALSA=$(usex !alsa) |
112 |
+ -DDISABLE_FREETYPE=$(usex !truetype) |
113 |
+ -DDISABLE_JACK=$(usex !jack) |
114 |
+ -DDISABLE_LIBFDK=$(usex !fdk) |
115 |
+ -DDISABLE_PULSEAUDIO=$(usex !pulseaudio) |
116 |
+ -DDISABLE_SPEEXDSP=$(usex !speex) |
117 |
+ -DDISABLE_V4L2=$(usex !v4l) |
118 |
+ -DDISABLE_VLC=$(usex !vlc) |
119 |
+ -DLIBOBS_PREFER_IMAGEMAGICK=$(usex imagemagick) |
120 |
+ -DOBS_MULTIARCH_SUFFIX=${libdir#lib} |
121 |
+ -DOBS_VERSION_OVERRIDE=${PV} |
122 |
+ -DUNIX_STRUCTURE=1 |
123 |
+ -DWITH_RTMPS=$(usex ssl) |
124 |
+ ) |
125 |
+ |
126 |
+ if use luajit || use python; then |
127 |
+ mycmakeargs+=( |
128 |
+ -DDISABLE_LUA=$(usex !luajit) |
129 |
+ -DDISABLE_PYTHON=$(usex !python) |
130 |
+ -DENABLE_SCRIPTING=yes |
131 |
+ ) |
132 |
+ else |
133 |
+ mycmakeargs+=( -DENABLE_SCRIPTING=no ) |
134 |
+ fi |
135 |
+ |
136 |
+ cmake-utils_src_configure |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ xdg_icon_cache_update |
141 |
+ |
142 |
+ if ! use alsa && ! use pulseaudio; then |
143 |
+ elog |
144 |
+ elog "For the audio capture features to be available," |
145 |
+ elog "either the 'alsa' or the 'pulseaudio' USE-flag needs to" |
146 |
+ elog "be enabled." |
147 |
+ elog |
148 |
+ fi |
149 |
+ |
150 |
+ if ! has_version "sys-apps/dbus"; then |
151 |
+ elog |
152 |
+ elog "The 'sys-apps/dbus' package is not installed, but" |
153 |
+ elog "could be used for disabling hibernating, screensaving," |
154 |
+ elog "and sleeping. Where it is not installed," |
155 |
+ elog "'xdg-screensaver reset' is used instead" |
156 |
+ elog "(if 'x11-misc/xdg-utils' is installed)." |
157 |
+ elog |
158 |
+ fi |
159 |
+} |
160 |
+ |
161 |
+pkg_postrm() { |
162 |
+ xdg_icon_cache_update |
163 |
+} |