aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/invidious/Manifest2
-rw-r--r--www-apps/invidious/invidious-2022.11.02.ebuild174
2 files changed, 0 insertions, 176 deletions
diff --git a/www-apps/invidious/Manifest b/www-apps/invidious/Manifest
index 792182fad..c3d76a3a3 100644
--- a/www-apps/invidious/Manifest
+++ b/www-apps/invidious/Manifest
@@ -1,6 +1,4 @@
-DIST invidious-2022.11.02.tar.gz 3261663 BLAKE2B 066842f388aa34323d489634243ae93a7fdfaddab19a9860bd9f9747fd3579a7d0707d3ffc3d72f9379e35303bffb0bd8f755c1b209ae7976bf71ac0e7512920 SHA512 37fde6ea59a2dc90ad153b7f36718f2bacd9bb9282de7a7b1e878c9d694f6d2a6db00458acbb0d9178020840ecdb6ff0d2a30e1a7dfa4520fac7b4323e643e58
DIST invidious-2022.11.22.tar.gz 3265662 BLAKE2B a1375c90530519b321cf995ec44dedc4a41c680fac128355622d23ba9356bc393b158372cb83a98cbc1746b83379ea4b55ce34a0cf815cc393d36556cf51806f SHA512 48a360541f922e057d5db930e97b2735a93e136a0d8164c2c4da5ff5dc381bd29653dfb2e62db00915f5b9c1000b6f29c9bc150e5bcccff8c09c334e2314023d
-DIST invidious-mocks-c401dd9.tar.gz 122433 BLAKE2B 9dd4e619071cd014dc83859c9f112a5af586d8c26c4b2f04764310c3e9459d9eb5f1ffe30d6e997b4366663179e69731eb95ff98260d79c435c3414dd126fe4b SHA512 8ed4303bf7ca15a035feb0b5d908e62cb428c6c125c4b22233196217c7ef68f7957999094609adb48ac6ee3f5e612dd2ea715ea4dfd93cba6639db1f78f302aa
DIST invidious-mocks-dfd53ea.tar.gz 175523 BLAKE2B 701aa1e569c7e463dde0a15dfe8263a617f9da0cc59cc44e22d4a4dd293d61098b45608a56f33670821f46f8307725dc1b014e70ed6545a3f8da719640e5451e SHA512 a52cb2883fed1d37e3d46a29a5f5014c7751c886f94d44a69ea8c1ec94c9f9235f2f1943f9786f2538f2b6be686ef35fd35d73fa8737a62a5ae10d0a759e04d1
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-2022.11.02.ebuild b/www-apps/invidious/invidious-2022.11.02.ebuild
deleted file mode 100644
index b3fe821aa..000000000
--- a/www-apps/invidious/invidious-2022.11.02.ebuild
+++ /dev/null
@@ -1,174 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit check-reqs multiprocessing shards systemd
-
-COMMIT="09942dee6621e7047a63dffcc61b3bbf78cef2c6"
-MOCKS_COMMIT="c401dd9203434b561022242c24b0c200d72284c0"
-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/libpcre:3
- 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-pg
- dev-crystal/crystal-sqlite3
- ~dev-crystal/kemal-1.1.2
- dev-crystal/kilt
- dev-crystal/protodec
- test? (
- dev-crystal/spectator
- )
-"
-
-DOCS=( {CHANGELOG,README}.md TRANSLATION )
-
-CHECKREQS_MEMORY="2G"
-
-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_configure() {
- local mycrystalargs=(
- -Dskip_videojs_download
- -Ddisable_quic
- )
- shards_src_configure
-}
-
-src_compile() {
- ecrystal build src/invidious.cr --verbose --threads=$(makeopts_jobs)
-
- if use doc; then
- ecrystal docs
- HTML_DOCS=( docs/. )
- fi
-
- return 0
-}
-
-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}
-}