public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: www-apps/invidious/
Date: Sun, 17 Mar 2024 18:02:01 +0000 (UTC)	[thread overview]
Message-ID: <1710692005.a9042c2f7860852837180abbf3c2bb24fda51bff.julien@gentoo> (raw)
Message-ID: <20240317180201.JIPznA7bkoPPZSuaL5TJfsW_PlkOA9wXS7MZZeAtYec@z> (raw)

commit:     a9042c2f7860852837180abbf3c2bb24fda51bff
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Mar 17 16:12:38 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Mar 17 16:13:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9042c2f

www-apps/invidious: add 2024.03.08

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 www-apps/invidious/Manifest                    |   1 +
 www-apps/invidious/invidious-2024.03.08.ebuild | 162 +++++++++++++++++++++++++
 2 files changed, 163 insertions(+)

diff --git a/www-apps/invidious/Manifest b/www-apps/invidious/Manifest
index 029005a78e..b577e8571a 100644
--- a/www-apps/invidious/Manifest
+++ b/www-apps/invidious/Manifest
@@ -1,5 +1,6 @@
 DIST invidious-2023.12.02.tar.gz 3292203 BLAKE2B 78d0ff6aafea64808a656ca6f34ef7dcac53d31deebc51972d0becc45f911f70d64daf51f45b3848689833cfd3cefb650eacfc143469112d345ba3404beff04d SHA512 b6fc3916d2e6c3024d5c5ce123f868fe05950d8ef019e71d42c5f73793a2996a6a168ba0eaef94d20e0ed25714046ba582561eeaad6c4a3942ffe8fda01a6c45
 DIST invidious-2024.02.18.tar.gz 3293879 BLAKE2B 470c60c36122c188f8371484c85401504789fdfa97570bcf1dea7c280831bcea3b40f54d4a7674746dfac6a3a571b1e7782189b3f32cf18d8aa372344fa5bf08 SHA512 ca11ce337368e3c18298c119a44395a0b95d30660dcf81d5f09bd1ec6c754b97f1e6aeaa940f0da1f12405583b23b00a7f8800193b6b12ec1f7f3ea3e66baffb
+DIST invidious-2024.03.08.tar.gz 3293907 BLAKE2B 3e4b8650d57452ce0a6d1265cd391a74fbefeecdea4911126f37aec0bd3ee3e7167b086cf204858906e52cfd700e1b04d598bf9ee990a830932cb38466c1a04e SHA512 543dee1e8af07969be06589616198ece6cccace8833eeb1929c902d57ba5e7ebd13dc0cef5e1774ed98f8d85352547fc444690879a377e2f64b2781ea848f011
 DIST invidious-mocks-11ec372.tar.gz 180392 BLAKE2B 899db54d4efdfc231d588155d52784d70a364c7382bd1652a3c384dc618435d646a50e957c1407f6ac7ade410e811438b23a16d9949e63f7791e34960bba1fc6 SHA512 7bc1aa17f555babaceca15fe51061400a6c8a9cb01ad15c5d22c155f3164aca7c6e49c8dcdbd894e1593c2c69d3ddaa201544b068510281e910b90a11a407e59
 DIST video.js-7.12.1.tgz 3511060 BLAKE2B 9ae5b1f6a0afab918b7dc3555fff2708963d4abb6c7903e13145b2d5393fb80e4ab6302c423b0ba15c805a624a23c25dd3db7865f1510c44cfc5d1d5ab1dbf54 SHA512 d0ec25eeae196e6e981d7f783fd595a90daf9e97de3723ad4cdc2e4c41282a8bd9a20a2a57631c3949ac40633811db60e2f19388fef816fe8755ad55e857917e
 DIST videojs-contrib-quality-levels-2.1.0.tgz 18770 BLAKE2B f6c4789835379380bde941d032bb0afbc49d093eb9407308094afd0b9c1f25781f57d8f8db928e318eb270927574a5fd505f08af13f0baf55897723ec489b769 SHA512 76a19019b2fd00586e731922ed9874737908847d0f00f707121ea351d47268509578ebaa9c9ace62cff7c0db6ca240dd05d45fd83bb66a79e9bb86765da49946

diff --git a/www-apps/invidious/invidious-2024.03.08.ebuild b/www-apps/invidious/invidious-2024.03.08.ebuild
new file mode 100644
index 0000000000..5fa2c7038b
--- /dev/null
+++ b/www-apps/invidious/invidious-2024.03.08.ebuild
@@ -0,0 +1,162 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit check-reqs shards systemd
+
+COMMIT="99a5e9cbc44daa4555f36b43bc4b7246aee454c9"
+MOCKS_COMMIT="11ec372f72747c09d48ffef04843f72be67d5b54"
+MOCKS_P="${PN}-mocks-${MOCKS_COMMIT:0:7}"
+DESCRIPTION="Invidious is an alternative front-end to YouTube"
+HOMEPAGE="
+	https://invidious.io/
+	https://github.com/iv-org/invidious
+"
+IV_ORG="https://github.com/iv-org"
+NPM="https://registry.npmjs.org"
+SRC_URI="
+	${IV_ORG}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
+	${NPM}/video.js/-/video.js-7.12.1.tgz
+	${NPM}/videojs-contrib-quality-levels/-/videojs-contrib-quality-levels-2.1.0.tgz
+	${NPM}/videojs-http-source-selector/-/videojs-http-source-selector-1.1.6.tgz
+	${NPM}/videojs-markers/-/videojs-markers-1.0.1.tgz
+	${NPM}/videojs-mobile-ui/-/videojs-mobile-ui-0.6.1.tgz
+	${NPM}/videojs-overlay/-/videojs-overlay-2.1.4.tgz
+	${NPM}/videojs-share/-/videojs-share-3.2.1.tgz
+	${NPM}/videojs-vr/-/videojs-vr-1.8.0.tgz
+	${NPM}/videojs-vtt-thumbnails/-/videojs-vtt-thumbnails-0.0.13.tgz
+	test? (
+		${IV_ORG}/mocks/archive/${MOCKS_COMMIT}.tar.gz -> ${MOCKS_P}.tar.gz
+	)
+"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="AGPL-3 Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="
+	dev-db/sqlite:3
+	dev-libs/boehm-gc
+	dev-libs/libevent:=
+	dev-libs/libpcre2:=
+	dev-libs/libxml2:2
+	dev-libs/libyaml
+	dev-libs/openssl:=
+	sys-libs/zlib:=
+"
+RDEPEND="${COMMON_DEPEND}
+	acct-user/invidious
+	gnome-base/librsvg
+"
+DEPEND="${COMMON_DEPEND}
+	dev-crystal/athena-negotiation
+	<dev-crystal/crystal-db-0.12.0
+	<dev-crystal/crystal-pg-0.27.0
+	dev-crystal/crystal-sqlite3
+	~dev-crystal/kemal-1.1.2
+	dev-crystal/kilt
+	>=dev-crystal/protodec-0.1.5
+	test? (
+		dev-crystal/spectator
+	)
+"
+
+DOCS=( {CHANGELOG,README}.md TRANSLATION )
+
+CHECKREQS_MEMORY="2G"
+
+CRYSTAL_DEFINES=(
+	-Dskip_videojs_download
+	-Ddisable_quic
+)
+
+src_unpack() {
+	local src depname destname js css
+
+	for src in ${A}; do
+		if [[ ${src} == "${P}.tar.gz" ]]; then
+			unpack ${src}
+		elif [[ ${src} == "${MOCKS_P}.tar.gz" ]]; then
+			unpack "${src}"
+			mkdir -p "${S}"/mocks || die
+			rmdir "${S}"/mocks || die
+			mv mocks-${MOCKS_COMMIT} "${S}"/mocks || die
+		else
+			depname="${src%-*}"
+
+			case ${depname} in
+				video.js)
+					js="video.js" ;;
+				*)
+					js="${depname}.js" ;;
+			esac
+
+			case ${depname} in
+				video.js)
+					css="video-js.css" ;;
+				videojs-markers)
+					css="videojs.markers.css" ;;
+				*)
+					css="${depname}.css" ;;
+			esac
+
+			# Create the destination directory
+			destname="${S}/assets/videojs/${depname}"
+			mkdir -p "${destname}" || die
+
+			# Create a temporary directory
+			mkdir -p "${WORKDIR}"/${depname} || die
+			cd "${WORKDIR}"/${depname} || die
+
+			# Copy assets
+			unpack ${src}
+			cd package/dist || die
+			mv ${js} ${destname} || die
+			if [[ -f ${css} ]]; then
+				mv ${css} ${destname} || die
+			fi
+
+			cd "${WORKDIR}" || die
+		fi
+	done
+}
+
+src_prepare() {
+	default
+
+	local datadir="${EPREFIX}/usr/share/invidious"
+	sed -i src/invidious.cr \
+		-e 's/\(CURRENT_BRANCH \) = .*/\1 = "master"/' \
+		-e "s/\(CURRENT_COMMIT \) = .*/\1 = \"${COMMIT:0:7}\"/" \
+		-e "s/\(CURRENT_VERSION\) = .*/\1 = \"${PV}\"/" \
+		-e "s/\(ASSET_COMMIT\) = .*/\1 = \"${COMMIT:0:7}\"/" || die
+
+	# fix paths
+	sed -i src/invidious.cr \
+		-e "s|\(public_folder\) \"assets\"|\1 \"${datadir}/assets\"|" || die
+	sed -i src/invidious/helpers/i18n.cr \
+		-e "s|File.read(\"locales/|File.read(\"${datadir}/locales/|" || die
+	sed -i src/invidious/database/base.cr \
+		-e "s|config/sql|${datadir}/\0|g" || die
+
+	rm shard.lock || die
+}
+
+src_install() {
+	dobin invidious
+	einstalldocs
+
+	insinto /usr/share/invidious
+	doins -r assets config locales
+
+	insinto /etc/invidious
+	newins config/config.example.yml config.yml
+
+	systemd_dounit "${FILESDIR}"/invidious.service
+	newinitd "${FILESDIR}"/invidious.initd ${PN}
+	newconfd "${FILESDIR}"/invidious.confd ${PN}
+}


             reply	other threads:[~2024-03-17 18:02 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-17 16:13 Julien Roy [this message]
2024-03-17 18:02 ` [gentoo-commits] repo/proj/guru:master commit in: www-apps/invidious/ Julien Roy
  -- strict thread matches above, loose matches on Subject: below --
2025-03-18 15:09 [gentoo-commits] repo/proj/guru:dev " Anna Vyalkova
2024-12-03 17:06 Anna Vyalkova
2024-12-03 17:06 Anna Vyalkova
2024-12-03 17:06 Anna Vyalkova
2024-12-03 17:06 Anna Vyalkova
2024-08-26  3:52 Anna Vyalkova
2024-04-27  9:50 Anna Vyalkova
2024-03-31 17:57 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-03-31 17:49 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-03-31 17:57 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-03-31 17:49 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-03-17 18:02 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-03-17 16:13 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-02-24 21:31 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-02-24 21:13 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2023-12-02 15:48 Federico Justus Denkena
2023-09-27 22:05 Federico Justus Denkena
2023-07-14 13:43 Anna Vyalkova
2023-07-09  2:00 Anna Vyalkova
2023-07-09  2:00 Anna Vyalkova
2023-06-22 18:23 Anna Vyalkova
2023-06-10 10:25 Anna Vyalkova
2023-05-28 11:20 Anna Vyalkova
2023-05-21 16:27 Anna Vyalkova
2023-05-09 19:30 Anna Vyalkova
2023-05-08 16:21 Anna Vyalkova
2023-04-02  0:05 Anna Vyalkova
2023-03-20  6:00 Anna Vyalkova
2023-01-26 22:46 Anna Vyalkova
2023-01-26 22:46 Anna Vyalkova
2022-12-12 20:26 Anna Vyalkova
2022-12-12 20:26 Anna Vyalkova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1710692005.a9042c2f7860852837180abbf3c2bb24fda51bff.julien@gentoo \
    --to=julien@jroy.ca \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox