Add element 1.7.2
and remove riot
This commit is contained in:
2
net-im/element-web/Manifest
Normal file
2
net-im/element-web/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST element-web-1.7.2.tar.gz 1177081 BLAKE2B 5e63cee397498f191425c8462ac9584f945f9866e084dd0a144a13af7996d2e6cdb65a3e280e53b75e93e68f41ab5b02be80e17a46f0cca23cfd552bb6d9a797 SHA512 10efa93716d7e7d6db2cbb3ac753b975fcf2df7e36121c6546e67528a1b45e5403f3f7454dcaeb622424caa26914e89d4f1ae2296bd35b812362043ab78dab47
|
||||
EBUILD element-web-1.7.2.ebuild 2146 BLAKE2B e560d1f4039b630bc788cd344231223b842e5fe9f5f4bfeb856a1d017e9a841683f105dcc588e1804dbd5fccd67fdca4a4bb5c8a9c16db9a16dd22a571ad358a SHA512 ec9dec6367b04aacf33b6117d46b453380bd9e653260083bc5821b23f328aae8c0b663fb4ac053696f921c7499d8a202148a1596114ff05ec2868651d0b989f2
|
||||
106
net-im/element-web/element-web-1.7.2.ebuild
Normal file
106
net-im/element-web/element-web-1.7.2.ebuild
Normal file
@@ -0,0 +1,106 @@
|
||||
# Copyright 1999-2020 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NETWORK ACCESS
|
||||
#
|
||||
# this ebuild requires internet access! because javascript packaging.
|
||||
#
|
||||
# to allow network access just for this package:
|
||||
#
|
||||
# * /etc/portage/env/networkaccess:
|
||||
# FEATURES="${FEATURES} -network-sandbox"
|
||||
#
|
||||
# * /etc/portage/package.env/package.env:
|
||||
# net-im/element-web networkaccess
|
||||
#
|
||||
# this avoids disabling `network-sandbox` globally.
|
||||
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="A glossy Matrix collaboration client for the web"
|
||||
HOMEPAGE="https://element.io/"
|
||||
|
||||
MY_PV="${PV/_rc/-rc.}"
|
||||
MY_P="$PN-$MY_PV"
|
||||
TMP_P="riot-web-$MY_PV"
|
||||
S="${WORKDIR}/${TMP_P}"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
SCM="git-r3"
|
||||
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/vector-im/riot-web.git"
|
||||
EGIT_BRANCH="develop"
|
||||
else
|
||||
SRC_URI="https://github.com/vector-im/riot-web/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
# TODO: inherit from webapp
|
||||
inherit eutils desktop ${SCM}
|
||||
|
||||
|
||||
LICENSE="Apache-2.0 MIT BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
REQUIRED_USE=""
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/cairo
|
||||
x11-libs/pango
|
||||
media-libs/fontconfig
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/yarn
|
||||
"
|
||||
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
yarn install || die "yarn module installation failed"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
pushd ${S}/node_modules/
|
||||
rm -rf matrix-js-sdk
|
||||
git clone https://github.com/matrix-org/matrix-js-sdk --branch develop
|
||||
pushd matrix-js-sdk
|
||||
yarn install
|
||||
popd
|
||||
popd
|
||||
fi
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
pushd ${S}/node_modules/
|
||||
rm -rf matrix-react-sdk
|
||||
git clone https://github.com/matrix-org/matrix-react-sdk --branch develop
|
||||
pushd matrix-react-sdk
|
||||
yarn install
|
||||
popd
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
src_compile() {
|
||||
yarn run build || die "build failed"
|
||||
}
|
||||
|
||||
|
||||
src_install() {
|
||||
insinto usr/share/webapps/${PN}
|
||||
dodoc LICENSE*
|
||||
doins -r webapp/*
|
||||
|
||||
insinto etc/webapps/${PN}
|
||||
doins config.sample.json
|
||||
dosym /etc/webapps/${PN}/config.json usr/share/webapps/${PN}/config.json
|
||||
|
||||
newicon res/themes/element/img/logos/element-logo.svg element.svg
|
||||
}
|
||||
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "element-web only contains a static webapp"
|
||||
einfo "for the electron-executable, please install element-desktop"
|
||||
}
|
||||
Reference in New Issue
Block a user