commit: 05bcc21122d508fc650a1671367c53cb4f26812e Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Wed Apr 2 15:30:19 2025 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Wed Apr 2 15:30:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=05bcc211
www-apps/pleroma-fe: add 2.8.0 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> www-apps/pleroma-fe/Manifest | 1 + www-apps/pleroma-fe/pleroma-fe-2.8.0.ebuild | 51 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/www-apps/pleroma-fe/Manifest b/www-apps/pleroma-fe/Manifest index aefe33548..2481067f2 100644 --- a/www-apps/pleroma-fe/Manifest +++ b/www-apps/pleroma-fe/Manifest @@ -1 +1,2 @@ DIST pleroma-fe-2.7.0.tar.gz 4844258 BLAKE2B 39a166728df8a60d0a6844ebdb6b57b5e5cda28730e22090b045404f810775fad533102abf817bba62aa5d2848e60a99f21832bb227db0008073bb599f780a3a SHA512 9cafffaaf94e62b394511fdb671640964380f4200f7a8779fae905aa3af896ec5697a1483bdde689a1f0091a9432af39835a0381d75a0f35f9413fc806a804a3 +DIST pleroma-fe-2.8.0.tar.gz 7366499 BLAKE2B d90599faf3cd9806e63c30467e08270d76b96cf801f3085f6434e0068fb19e7e2ea66db9266618af00ddd5d0b13b3ccceca4a2db9dc0a002e80cbceb12668fd8 SHA512 3c3e64a377115572793580b6a42d2e794fb1ddd54ff2ac76b074808d6020cb3db4afaa67e04d2443de583bdd66a1656e6ff8450beb889e06b0f68178653bc599 diff --git a/www-apps/pleroma-fe/pleroma-fe-2.8.0.ebuild b/www-apps/pleroma-fe/pleroma-fe-2.8.0.ebuild new file mode 100644 index 000000000..618e326bc --- /dev/null +++ b/www-apps/pleroma-fe/pleroma-fe-2.8.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <[email protected]> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Main frontend for www-apps/pleroma, inspired by qvitter" +HOMEPAGE="https://pleroma.social/ https://git.pleroma.social/pleroma/pleroma-fe" +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma-fe" +else + SRC_URI="https://git.pleroma.social/pleroma/pleroma-fe/-/archive/${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi +LICENSE="AGPL-3 MIT ISC Apache-2.0" +SLOT="0" + +# Requires network access (https) as long as NPM dependencies aren't packaged +# said dependencies have their checksum verified via `yarn.lock` +RESTRICT="network-sandbox" + +# npm: https://bugs.gentoo.org/945533 +BDEPEND=" + net-libs/nodejs[npm] + sys-apps/yarn +" + +src_unpack() { + default + + [[ "${PV}" == *9999 ]] && git-r3_src_unpack + + cd "${S}" || die + yarn install --no-bin-links --frozen-lockfile --non-interactive || die +} + +# FIXME src_prepare: Point to the correct source repo, needed for AGPL compliance + +src_compile() { + yarn run build || die +} + +src_install() { + insinto "/opt/pleroma-fe" + doins -r dist +} + +pkg_postinst() { + elog 'You will need to add the following line in /etc/pleroma/config.exs to make use of this frontend:' + elog 'config :pleroma, :frontends, primary: %{"name" => "pleroma-fe", "ref" => "gentoo"}' +}
