Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/obs-studio/
Date: Sun, 03 Jul 2016 13:09:27
Message-Id: 1467549653.ffbceb3c1d0887b5db7995fa850ed04a26aca212.monsieurp@gentoo
1 commit: ffbceb3c1d0887b5db7995fa850ed04a26aca212
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 16 21:18:05 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 12:40:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffbceb3c
7
8 media-video/obs-studio: New package.
9
10 OBS Studio provides a simple to use Qt5 user interface for video and
11 audio capturing, including live-streaming them to on-line services
12 such as Twitch.tv.
13
14 Base for ebuild from https://github.com/saintdev/obs-studio-overlay.
15
16 Gentoo-Bug: https://bugs.gentoo.org/575226
17
18 Package-Manager: portage-2.2.28
19 Closes: https://github.com/gentoo/gentoo/pull/1690
20
21 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
22
23 media-video/obs-studio/Manifest | 1 +
24 media-video/obs-studio/metadata.xml | 25 ++++++++
25 media-video/obs-studio/obs-studio-0.14.2.ebuild | 83 +++++++++++++++++++++++++
26 media-video/obs-studio/obs-studio-9999.ebuild | 83 +++++++++++++++++++++++++
27 4 files changed, 192 insertions(+)
28
29 diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest
30 new file mode 100644
31 index 0000000..23cba8f
32 --- /dev/null
33 +++ b/media-video/obs-studio/Manifest
34 @@ -0,0 +1 @@
35 +DIST obs-studio-0.14.2.tar.gz 3406086 SHA256 b4076f1b92e9566f9f3c3c4cfb5e123210e149bb3cec3f9fb5d6cd6394b268b1 SHA512 17548841d81073595282cbe4f2f217a67b5a3050e5660b43affa1501cb88bfb8d2728d610e758ebc217733f7a50945b9078d28285a76fbc5fe0c104570faba32 WHIRLPOOL cc6a0e93274f8abc06af4ac802cbbf8f5195848b805642399f4daa503562ec747ce7f1791fc30cf316f2fd80d4576ab05b7c89da98f2adda971fa62ae9c1ff86
36
37 diff --git a/media-video/obs-studio/metadata.xml b/media-video/obs-studio/metadata.xml
38 new file mode 100644
39 index 0000000..2ab9134
40 --- /dev/null
41 +++ b/media-video/obs-studio/metadata.xml
42 @@ -0,0 +1,25 @@
43 +<?xml version="1.0" encoding="UTF-8"?>
44 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
45 +<pkgmetadata>
46 + <maintainer type="person">
47 + <email>chiitoo@g.o</email>
48 + <name>Jimi Huotari</name>
49 + </maintainer>
50 + <maintainer type="project">
51 + <email>proxy-maint@g.o</email>
52 + <name>Proxy Maintainers</name>
53 + </maintainer>
54 + <longdescription>
55 + A rewrite of what was formerly known as "Open Broadcaster Software",
56 + software originally designed for recording and streaming live video
57 + content, efficiently. Aims to be multi-platform, and improved upon
58 + internally.
59 + </longdescription>
60 + <use>
61 + <flag name="fdk">Enable libfdk support for AAC encoding.</flag>
62 + <flag name="imagemagick">Use ImageMagick for image loading instead of FFmpeg.</flag>
63 + </use>
64 + <upstream>
65 + <remote-id type="github">jp9000/obs-studio</remote-id>
66 + </upstream>
67 +</pkgmetadata>
68
69 diff --git a/media-video/obs-studio/obs-studio-0.14.2.ebuild b/media-video/obs-studio/obs-studio-0.14.2.ebuild
70 new file mode 100644
71 index 0000000..738501d
72 --- /dev/null
73 +++ b/media-video/obs-studio/obs-studio-0.14.2.ebuild
74 @@ -0,0 +1,83 @@
75 +# Copyright 1999-2016 Gentoo Foundation
76 +# Distributed under the terms of the GNU General Public License v2
77 +# $Id$
78 +
79 +EAPI="6"
80 +
81 +inherit cmake-utils
82 +
83 +if [[ ${PV} == *9999 ]]; then
84 + inherit git-r3
85 + EGIT_REPO_URI="https://github.com/jp9000/obs-studio.git"
86 + EGIT_SUBMODULES=()
87 +else
88 + SRC_URI="https://github.com/jp9000/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
89 + KEYWORDS="~amd64 ~x86"
90 +fi
91 +
92 +DESCRIPTION="Software for Recording and Streaming Live Video Content"
93 +HOMEPAGE="https://obsproject.com"
94 +
95 +LICENSE="GPL-2"
96 +SLOT="0"
97 +IUSE="+alsa fdk imagemagick jack pulseaudio truetype v4l"
98 +
99 +DEPEND="
100 + >=dev-libs/jansson-2.5
101 + dev-qt/qtcore:5
102 + dev-qt/qtdeclarative:5
103 + dev-qt/qtgui:5
104 + dev-qt/qtmultimedia:5
105 + dev-qt/qtnetwork:5
106 + dev-qt/qtquickcontrols:5
107 + dev-qt/qtsql:5
108 + dev-qt/qttest:5
109 + dev-qt/qtwidgets:5
110 + dev-qt/qtx11extras:5
111 + media-libs/x264:=
112 + media-video/ffmpeg:=
113 + x11-libs/libXcomposite
114 + x11-libs/libXinerama
115 + x11-libs/libXrandr
116 + alsa? ( media-libs/alsa-lib )
117 + fdk? ( media-libs/fdk-aac:= )
118 + imagemagick? ( media-gfx/imagemagick:= )
119 + jack? ( virtual/jack )
120 + pulseaudio? ( media-sound/pulseaudio )
121 + truetype? (
122 + media-libs/fontconfig
123 + media-libs/freetype
124 + )
125 + v4l? ( media-libs/libv4l )
126 +"
127 +RDEPEND="${DEPEND}"
128 +
129 +src_prepare() {
130 + CMAKE_REMOVE_MODULES_LIST=(FindFreetype)
131 +
132 + cmake-utils_src_prepare
133 +}
134 +
135 +src_configure() {
136 + local libdir="$(get_libdir)"
137 + local mycmakeargs=(
138 + -DDISABLE_ALSA="$(usex !alsa)"
139 + -DDISABLE_FREETYPE="$(usex !truetype)"
140 + -DDISABLE_JACK="$(usex !jack)"
141 + -DDISABLE_LIBFDK="$(usex !fdk)"
142 + -DDISABLE_PULSEAUDIO="$(usex !pulseaudio)"
143 + -DDISABLE_V4L2="$(usex !v4l)"
144 + -DLIBOBS_PREFER_IMAGEMAGICK="$(usex imagemagick)"
145 + -DOBS_MULTIARCH_SUFFIX="${libdir#lib}"
146 + -DUNIX_STRUCTURE=1
147 + )
148 +
149 + cmake-utils_src_configure
150 +}
151 +
152 +pkg_postinst() {
153 + if ! use alsa && ! use pulseaudio; then
154 + elog "To be able to use the audio capture features, either the"
155 + elog "'alsa' or the 'pulseaudio' USE-flag needs to be enabled."
156 + fi
157 +}
158
159 diff --git a/media-video/obs-studio/obs-studio-9999.ebuild b/media-video/obs-studio/obs-studio-9999.ebuild
160 new file mode 100644
161 index 0000000..738501d
162 --- /dev/null
163 +++ b/media-video/obs-studio/obs-studio-9999.ebuild
164 @@ -0,0 +1,83 @@
165 +# Copyright 1999-2016 Gentoo Foundation
166 +# Distributed under the terms of the GNU General Public License v2
167 +# $Id$
168 +
169 +EAPI="6"
170 +
171 +inherit cmake-utils
172 +
173 +if [[ ${PV} == *9999 ]]; then
174 + inherit git-r3
175 + EGIT_REPO_URI="https://github.com/jp9000/obs-studio.git"
176 + EGIT_SUBMODULES=()
177 +else
178 + SRC_URI="https://github.com/jp9000/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
179 + KEYWORDS="~amd64 ~x86"
180 +fi
181 +
182 +DESCRIPTION="Software for Recording and Streaming Live Video Content"
183 +HOMEPAGE="https://obsproject.com"
184 +
185 +LICENSE="GPL-2"
186 +SLOT="0"
187 +IUSE="+alsa fdk imagemagick jack pulseaudio truetype v4l"
188 +
189 +DEPEND="
190 + >=dev-libs/jansson-2.5
191 + dev-qt/qtcore:5
192 + dev-qt/qtdeclarative:5
193 + dev-qt/qtgui:5
194 + dev-qt/qtmultimedia:5
195 + dev-qt/qtnetwork:5
196 + dev-qt/qtquickcontrols:5
197 + dev-qt/qtsql:5
198 + dev-qt/qttest:5
199 + dev-qt/qtwidgets:5
200 + dev-qt/qtx11extras:5
201 + media-libs/x264:=
202 + media-video/ffmpeg:=
203 + x11-libs/libXcomposite
204 + x11-libs/libXinerama
205 + x11-libs/libXrandr
206 + alsa? ( media-libs/alsa-lib )
207 + fdk? ( media-libs/fdk-aac:= )
208 + imagemagick? ( media-gfx/imagemagick:= )
209 + jack? ( virtual/jack )
210 + pulseaudio? ( media-sound/pulseaudio )
211 + truetype? (
212 + media-libs/fontconfig
213 + media-libs/freetype
214 + )
215 + v4l? ( media-libs/libv4l )
216 +"
217 +RDEPEND="${DEPEND}"
218 +
219 +src_prepare() {
220 + CMAKE_REMOVE_MODULES_LIST=(FindFreetype)
221 +
222 + cmake-utils_src_prepare
223 +}
224 +
225 +src_configure() {
226 + local libdir="$(get_libdir)"
227 + local mycmakeargs=(
228 + -DDISABLE_ALSA="$(usex !alsa)"
229 + -DDISABLE_FREETYPE="$(usex !truetype)"
230 + -DDISABLE_JACK="$(usex !jack)"
231 + -DDISABLE_LIBFDK="$(usex !fdk)"
232 + -DDISABLE_PULSEAUDIO="$(usex !pulseaudio)"
233 + -DDISABLE_V4L2="$(usex !v4l)"
234 + -DLIBOBS_PREFER_IMAGEMAGICK="$(usex imagemagick)"
235 + -DOBS_MULTIARCH_SUFFIX="${libdir#lib}"
236 + -DUNIX_STRUCTURE=1
237 + )
238 +
239 + cmake-utils_src_configure
240 +}
241 +
242 +pkg_postinst() {
243 + if ! use alsa && ! use pulseaudio; then
244 + elog "To be able to use the audio capture features, either the"
245 + elog "'alsa' or the 'pulseaudio' USE-flag needs to be enabled."
246 + fi
247 +}