From 121d4e1ff574f38e08c1fe1319b19172213765e1 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sat, 27 Apr 2024 14:48:46 +0500 Subject: www-apps/invidious: add 2024.04.27, drop 2024.03.08 Signed-off-by: Anna (cybertailor) Vyalkova --- www-apps/invidious/Manifest | 2 +- www-apps/invidious/invidious-2024.03.08.ebuild | 162 ------------------------- www-apps/invidious/invidious-2024.04.27.ebuild | 158 ++++++++++++++++++++++++ 3 files changed, 159 insertions(+), 163 deletions(-) delete mode 100644 www-apps/invidious/invidious-2024.03.08.ebuild create mode 100644 www-apps/invidious/invidious-2024.04.27.ebuild (limited to 'www-apps') diff --git a/www-apps/invidious/Manifest b/www-apps/invidious/Manifest index 7f814bde4..de4bfe1cd 100644 --- a/www-apps/invidious/Manifest +++ b/www-apps/invidious/Manifest @@ -1,5 +1,5 @@ -DIST invidious-2024.03.08.tar.gz 3293907 BLAKE2B 3e4b8650d57452ce0a6d1265cd391a74fbefeecdea4911126f37aec0bd3ee3e7167b086cf204858906e52cfd700e1b04d598bf9ee990a830932cb38466c1a04e SHA512 543dee1e8af07969be06589616198ece6cccace8833eeb1929c902d57ba5e7ebd13dc0cef5e1774ed98f8d85352547fc444690879a377e2f64b2781ea848f011 DIST invidious-2024.03.31.tar.gz 3293940 BLAKE2B 1d9ae4f2b3fc77db3351a383800984b15e2e619543b52484bd12aeb844c6655e23bb95b1fa0fb7d4b389a84bc986ec17de51821cfe9be5d32aab20e7f7422513 SHA512 5b3630cfbbc01f5967bcd24fd6b5c680854c4abdeb87fcbf4b181f8149e49b21f54b5140e3af0218a72f11917c813171945acfa2a16211b7697e70134e6aa65b +DIST invidious-2024.04.27.tar.gz 3286563 BLAKE2B cdbf50dcd56e5cb70384069698322c3dff3d197a7ea7e652d27ca74a37799bc808f3e57a31d8ded1ee2e4ab661151bcdb4493fcb7794e4b40a52038a163155ac SHA512 39e0a3eb44da30a6d8f862ad82f2a9f12701918ee1b7b9fca9a7a21c1e9f14e0e3cc09ce7aba5e7633774df1e813502bb946a3fb4211480ba0a99368ba43b24a 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 deleted file mode 100644 index 5fa2c7038..000000000 --- a/www-apps/invidious/invidious-2024.03.08.ebuild +++ /dev/null @@ -1,162 +0,0 @@ -# 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/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} -} diff --git a/www-apps/invidious/invidious-2024.04.27.ebuild b/www-apps/invidious/invidious-2024.04.27.ebuild new file mode 100644 index 000000000..26cc4326c --- /dev/null +++ b/www-apps/invidious/invidious-2024.04.27.ebuild @@ -0,0 +1,158 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs shards systemd + +MY_PV="2.$(ver_rs 1- '')" +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/refs/tags/v${MY_PV}.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}-${MY_PV}" + +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/kemal-1.1.0 + =dev-crystal/protodec-0.1.5 + virtual/crystal-db[postgres,sqlite] + test? ( + dev-crystal/spectator + ) +" + +DOCS=( {CHANGELOG,README}.md TRANSLATION ) + +CHECKREQS_MEMORY="2G" + +CRYSTAL_DEFINES=( -Dskip_videojs_download ) + +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} +} -- cgit v1.2.3-65-gdbad