parent
0a86bf2c22
commit
56d8385c95
@ -0,0 +1 @@
|
|||||||
|
DIST riot-web-1.0.1.tar.gz 1441665 BLAKE2B d8ed636876fed3f64566ad129f66079f566abeb455d648973ce9374c063aeb830c5dd114ec512e15d09620419dacb735193c64f3608702db47d86ce1598b9862 SHA512 29ba0ae3e9542235ec12d66595aca43d1d60aa370543be183893e3c62fa9c3c2197b997382e80f8f961d2b1ed525c33af11fa32d8a23c2414ded8585f7b7840a
|
@ -0,0 +1,76 @@
|
|||||||
|
# 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