parent
ea5c586b0c
commit
4d82300c8a
@ -1,2 +1 @@
|
||||
DIST riot-web-1.0.3.tar.gz 1445376 BLAKE2B 0eb65566a541c4d091f2fe9b5974c9b787c339ad2a0e191bc79dff2991803b4602673f2add88f62f5371d72c18b644501bcab65980c5f6397b5c4dcad61b07b3 SHA512 0e32ad05e6e0eafcaa213e7a367e402d7c37242e82e3973f0c33e3bffde2947018ad87447119c26d6c5dcadb769ad0a1a86eba250718340e06f3198ee9095b30
|
||||
DIST riot-web-1.0.7.tar.gz 1479194 BLAKE2B 560a91d9b8da114fee7b2390f3059dabf2a26ecd5c7ca70c355d27ced2a95658884e4f9d238d82d0eb0c4c92897a5303c3816ee3f55bc1d24b66f0082ff07aac SHA512 65c303cd74614b8ecb344d642c2edc61d9135de103845ba36f599b1fea3f32f707d636474334cff3fde55b7f14066d274d3ade5c45a47943e77c2a4288163e2e
|
||||
DIST riot-web-1.0.8.tar.gz 1479259 BLAKE2B b0fbd1197bf41fb08229a7a232272890b51e96f3ce5eff89eb6d0ab7ad7e7d8ce5fa28adbd9baf76adadf2c8a274a3148d0f740d4d258bea32869e93d10a18d6 SHA512 da142f97f517dfdf3c473e3650ade2922a5b9d3c2389e5339e12fe732209f9d2570de487b40e5572e9b9a460ea667b994fb583a6b1ae5c859461138d5864d222
|
||||
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A glossy Matrix collaboration client for the web"
|
||||
HOMEPAGE="https://riot.im"
|
||||
|
||||
inherit eutils
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
inherit 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${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="abi_x86_32 abi_x86_64"
|
||||
REQUIRED_USE="abi_x86_32? ( !abi_x86_64 )
|
||||
abi_x86_64? ( !abi_x86_32 )"
|
||||
|
||||
DEPEND="sys-devel/binutils:*
|
||||
net-libs/nodejs[npm]
|
||||
x11-libs/libXScrnSaver
|
||||
net-print/cups
|
||||
dev-libs/nss
|
||||
gnome-base/gconf"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/Riot/libffmpeg.so
|
||||
opt/Riot/libnode.so
|
||||
opt/Riot/riot-web"
|
||||
|
||||
DESTINATION="/" # We build and unpack a Debian installer, which already has everything in the proper directories {usr,opt}, so we just set the destination to "/"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
"${S}"/scripts/fetch-develop.deps.sh
|
||||
fi
|
||||
|
||||
npm install
|
||||
|
||||
cp "${S}"/config.sample.json "${S}"/config.json
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
npm run build || die
|
||||
|
||||
if use abi_x86_32; then
|
||||
"${S}"/node_modules/.bin/build --linux --ia32 || die
|
||||
elif use abi_x86_64; then
|
||||
"${S}"/node_modules/.bin/build --linux --x64 || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
ar x "${S}"/electron_app/dist/riot-web*.deb
|
||||
tar xvf data.tar.xz
|
||||
|
||||
mv usr/share/doc/${PN} usr/share/doc/${PF}
|
||||
gunzip usr/share/doc/${PF}/changelog.gz
|
||||
insinto ${DESTINATION}
|
||||
doins -r usr
|
||||
doins -r opt
|
||||
fperms +x /opt/Riot/${PN}
|
||||
dosym ${DESTINATION}/opt/Riot/${PN} ${DESTINATION}/usr/bin/${PN}
|
||||
}
|
Loading…
Reference in new issue