mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
www-apps/pleroma-fe: new package, add 2.5.0, 9999
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
1
www-apps/pleroma-fe/Manifest
Normal file
1
www-apps/pleroma-fe/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pleroma-fe-2.5.0.tar.gz 4676267 BLAKE2B 8ffd3cd219a5f232d977dfb2bbac5b0d3f7d8ba2a850cbb09ea3e240c7337d0d97ddd4a039eae16786e5fa8da47f795daa0275c391a31136bb5f86a1e1502326 SHA512 0adca3c547de1b520269974d228ea7de6a16fa1ea8798e87d121d4ea86325bae21ea889b887e4fc21de0d7d4cbcabe82f2ff8948b80249d1345c4cf3a0e81cb2
|
||||
8
www-apps/pleroma-fe/metadata.xml
Normal file
8
www-apps/pleroma-fe/metadata.xml
Normal 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>
|
||||
55
www-apps/pleroma-fe/pleroma-fe-2.5.0.ebuild
Normal file
55
www-apps/pleroma-fe/pleroma-fe-2.5.0.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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_prepare() {
|
||||
default
|
||||
|
||||
# https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1854
|
||||
sed -i \
|
||||
-e '/git rev-parse/,/^$/d' \
|
||||
-e 's|let commitHash = .*|let commitHash = "'${PV}'";\n|' \
|
||||
build/webpack.prod.conf.js || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
yarn run build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/opt/pleroma-fe"
|
||||
doins -r dist
|
||||
}
|
||||
55
www-apps/pleroma-fe/pleroma-fe-9999.ebuild
Normal file
55
www-apps/pleroma-fe/pleroma-fe-9999.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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_prepare() {
|
||||
default
|
||||
|
||||
# https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1854
|
||||
sed -i \
|
||||
-e '/git rev-parse/,/^$/d' \
|
||||
-e 's|let commitHash = .*|let commitHash = "'${PV}'";\n|' \
|
||||
build/webpack.prod.conf.js || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
yarn run build || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/opt/pleroma-fe"
|
||||
doins -r dist
|
||||
}
|
||||
Reference in New Issue
Block a user