Gentoo Archives: gentoo-commits

From: Karl-Johan Karlsson <creideiki+gentoo-guru@×××××××××××.se>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/owncast/
Date: Sun, 27 Nov 2022 13:34:15
Message-Id: 1669555995.2f8adf40e23b5af839327b1be02d3821b6b506a2.creideiki+gentoo-guru@gentoo
1 commit: 2f8adf40e23b5af839327b1be02d3821b6b506a2
2 Author: Karl-Johan Karlsson <creideiki+gentoo-guru <AT> lysator <DOT> liu <DOT> se>
3 AuthorDate: Sun Nov 27 13:33:15 2022 +0000
4 Commit: Karl-Johan Karlsson <creideiki+gentoo-guru <AT> lysator <DOT> liu <DOT> se>
5 CommitDate: Sun Nov 27 13:33:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f8adf40
7
8 media-video/owncast: add 0.0.13
9
10 Signed-off-by: Karl-Johan Karlsson <creideiki+gentoo-guru <AT> lysator.liu.se>
11
12 media-video/owncast/Manifest | 3 ++
13 media-video/owncast/owncast-0.0.13.ebuild | 67 +++++++++++++++++++++++++++++++
14 2 files changed, 70 insertions(+)
15
16 diff --git a/media-video/owncast/Manifest b/media-video/owncast/Manifest
17 index de4992c48..7364fe590 100644
18 --- a/media-video/owncast/Manifest
19 +++ b/media-video/owncast/Manifest
20 @@ -1,3 +1,6 @@
21 DIST owncast-0.0.12-deps.tar.xz 71882432 BLAKE2B 525b44ba7182432fa4de7aa9b7c0b2145604ef7341d3962ac27807c2ab76445c37a80d0cdd4d9c7884c85cb3546c20564947486cd0f54bc11dce9dfd6fb83409 SHA512 0d1b3c229715119062bf310b66a5d9686d4e5c466809e26ebe801448e387c08bf7256f9f81de4c9e4f8c470ec18cb9d10bde4c99fec4c9abbc31dc279bde15ad
22 DIST owncast-0.0.12-linux-64bit.zip 19386338 BLAKE2B b891d9e414b8adc1adc750faea77012f8435be21db8ebde9c3ca91187848104326107c975edf611e337d816bc0a0eeac17b93e08e36c496a8e84f74ae8eefebe SHA512 aa51901c6bcdfb7a026b8e0a1b755511103f4c0d79f1d0592420fcb53f935670b86f7b5ea495a518374f08efe91d3416da21ec0b4256db07e32744d1a112d2c0
23 DIST owncast-0.0.12.tar.gz 10273424 BLAKE2B fee74684f6acd214dfd8627947097ae3a7d8a6f7e58a79f51899685887fc1f62009476243a9f2e7b89bd46d577442d7f61e0be9dfe767f7f4bad493076e75f56 SHA512 3fb7efac918d8af241849a9006d711392d596103bf592cf2a09818cf2c3413ef1faf6fe9990ab0d0779b501f0c6be5ad6ac820f963d62564ff1a37d6c4eee2e9
24 +DIST owncast-0.0.13-deps.tar.xz 70793580 BLAKE2B 7ee3429f06b90cbabc9a08ce756b3d21399137c0067c9fe9532e2ec7376e2a3db43a45551dddfcaba59719873599153793ff00b4ab13b75739ec68a391464203 SHA512 f7149b1e57316dc8f2b79b938dee349fa2fbcc4b95f1838049094aa7d1ac7924b8da36a5718681073a5f04560540ce53d3660d5275905d19aff5e85bb2898f36
25 +DIST owncast-0.0.13-linux-64bit.zip 19494694 BLAKE2B 5d48ff7307248716693038c561eff259c913f0498f9e1abafff691b96d23f4ef46f0c8a7be6b267b3f5c65ac2123a08a8580771ecb1bc3c12ffc2f1e1c038ddc SHA512 1728a323861eafb3e22b572905b01e18b9f78323908d12fb1355fee8473d4dfec0a4de90cac26006b5fc5d1edda38617173fcf7f071b0b04f918000740920afc
26 +DIST owncast-0.0.13.tar.gz 10282725 BLAKE2B b88f67d26fa438320debe01de2651df1625314ec5a89dde4b9d64c40296481f35fdda2e93bb268e93a0be8a5645a5a4243da1f9894c78b64054b302392779319 SHA512 3894da43330d247b460e475b19a96af23a6a115f38bef052bf6f128355d4a22053095ea67af694fb3af69086d1a750d65943295e791f3163156d76b5c9774524
27
28 diff --git a/media-video/owncast/owncast-0.0.13.ebuild b/media-video/owncast/owncast-0.0.13.ebuild
29 new file mode 100644
30 index 000000000..b088750f9
31 --- /dev/null
32 +++ b/media-video/owncast/owncast-0.0.13.ebuild
33 @@ -0,0 +1,67 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit go-module
40 +
41 +DESCRIPTION="A self-hosted live video and web chat server"
42 +HOMEPAGE="https://owncast.online/ https://github.com/owncast/owncast"
43 +
44 +LICENSE="MIT Apache-2.0 ISC BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="
49 + acct-user/owncast
50 + acct-group/owncast
51 + media-video/ffmpeg"
52 +
53 +SRC_URI="https://github.com/owncast/owncast/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
54 + https://github.com/owncast/owncast/releases/download/v${PV}/${P}-linux-64bit.zip
55 + https://www.lysator.liu.se/~creideiki/${P}-deps.tar.xz"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-0.0.12-1758-remove-websocket-origin-check.patch"
59 +)
60 +
61 +src_unpack() {
62 + go-module_src_unpack
63 +
64 + # go-module_src_unpack unpacked both the source and the binary
65 + # package. This places the binary package files in the wrong
66 + # place, but that's hopefully survivable. We need the binary
67 + # package to get the minified CSS file, which is generated using
68 + # NPM by upstream.
69 + cp "${WORKDIR}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css "${S}"/webroot/js/web_modules/tailwindcss/dist/tailwind.min.css || die
70 +}
71 +
72 +src_compile() {
73 + ego build -v -work -x \
74 + -ldflags "-s -w -X github.com/${PN}/${PN}/config.VersionNumber=${PV} -X github.com/${PN}/${PN}/config.BuildPlatform=gentoo" \
75 + -o ${PN} \
76 + github.com/${PN}/${PN} || die
77 +}
78 +
79 +src_install() {
80 + dobin ${PN}
81 +
82 + dodoc README.md
83 +
84 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
85 +
86 + diropts -m 0755 -o owncast -g owncast
87 + insopts -m 0644 -o owncast -g owncast
88 +
89 + insinto /var/lib/${PN}
90 + doins -r static webroot
91 +}
92 +
93 +pkg_postinst() {
94 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
95 + einfo "The admin interface at http://localhost:8080/admin/"
96 + einfo "has default username 'admin' and password 'abc123'."
97 + fi
98 +
99 + einfo "Hardware accelerated transcoding requires support in media-video/ffmpeg, see https://owncast.online/docs/codecs/"
100 +}