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