www-apps/pleroma-fe: new package, add 2.6.0, 9999

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2023-11-09 07:20:30 +01:00
parent e687f5218a
commit 3ab24edf73
4 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST pleroma-fe-2.6.0.tar.gz 4753735 BLAKE2B 21edb9d26b1c8cdc45ed9b9aa13d1b8b737112ab67f85a0c111ec0e9d29f112a4ef06312493c64bbc6be175f793e4e877f6849254de548337c470006b3779cb0 SHA512 13b17a71ab0feb7c7bb6c691f20cc8789c5589cdda642b7888cc0d16e284c32949fdda4df23ed2e610267ce898dea1b8db5620befe66cfe3c9d2a12f1e088d72

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,51 @@
# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# 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"
IUSE=""
# Requires network access (https) as long as NPM dependencies aren't packaged
# said dependencies have their checksum verified via `yarn.lock`
RESTRICT="network-sandbox"
BDEPEND="
net-libs/nodejs
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"}'
}

View File

@@ -0,0 +1,51 @@
# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# 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"
IUSE=""
# Requires network access (https) as long as NPM dependencies aren't packaged
# said dependencies have their checksum verified via `yarn.lock`
RESTRICT="network-sandbox"
BDEPEND="
net-libs/nodejs
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"}'
}