Commit e32ff59c authored by Jerzy Kołosowski's avatar Jerzy Kołosowski
Browse files

riot update

parent f073dd95
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
DIST riot-web-0.16.4.tar.gz 1052135 SHA256 cf5d3132f9e4cc7539f239ed67a7b3949b9b0aa89dc3272f6ef4b8318ca74aac SHA512 5af2e158980ace52b435831e7e5f93894eba599dee441eba64d05d09a10f235e5f93a648367b173938e8616c2dbf12dee636ecfe05c06f52d9c7762b80cdf904 WHIRLPOOL 61ab6ab5f93a7fb5799f2bfb2addafab7d6b41ceb3e64b69307234cec3500fc987d9239936b8a1e53ed1fb57d31db9b2f14aa7a6005d7893d3829c9352ccae5e
EBUILD riot-web-0.16.4.ebuild 1487 SHA256 86ceadafa45b0de97044169ccbf3be8f80d9e6b51b5020d52ea972b436810b10 SHA512 efb23a39cbe8224a77d4a96a4a61d52d2d97de12c5cdddca786c03d675d0d3b238b658be08d451e748aa8c0e8701afc1a0bc608ec13eece7b5cd3981710047fb WHIRLPOOL cd8a54c14e0cec443f207312a291adee9ff44673be4da39d8d8aa40a2801ed1723f977ba68e770bd0788c4c127fa0306c800e934bba14165d674a576af16d8d5
MISC metadata.xml 361 SHA256 757f2fd22ce3d431d5b0fa13099a2c3105f64774b3bd1bf01ee59bc530a475e5 SHA512 5f1b13f360c4410c833a461ee81ec0f39f8b6ec74575d36779b6bb78b3ed2f9b2abd82260eb61dc825e1452692ac99de58f838877eb7e66b3c6a852b472a3d95 WHIRLPOOL 774dcc8c70974c23128cd78f4cbdf69cf4e906a7c09b5c03faf9f57b5615b2589ed92c709be8444abe920c5347144ee4bd7cec568c5722de574ea060b48e8647
+11 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
	<maintainer type="person">
		<email>bart.ribbers@openmailbox.org</email>
		<description>Primary maintainer</description>
	</maintainer>
	<use>
		<flag name='websocket'>Adds (experimental) websocket support</flag>
	</use>
</pkgmetadata>
+74 −0
Original line number Diff line number Diff line
# Copyright 1999-2017 Gentoo Foundation
# 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
		sys-apps/yarn
		x11-libs/libXScrnSaver"
RDEPEND="${DEPEND}"

QA_PREBUILT="
		opt/Riot/libffmpeg.so
		opt/Riot/libnode.so
		opt/Riot/riot-web"

src_prepare() {
	default

	if [[ ${PV} == "9999" ]]; then
		${S}/scripts/fetch-develop.deps.sh
	fi

	rm ${S}/package-lock.json

	yarn install || die "Yarn module installation failed"

	cp ${S}/config.sample.json ${S}/config.json
}

src_compile() {
	npm run build

	yarn run build || die "Building failed"
	yarn run install:electron || die "Installing Electron failed"

	if use abi_x86_32; then
		${S}/node_modules/.bin/build -l --ia32
	elif use abi_x86_64; then
		${S}/node_modules/.bin/build -l --x64
	fi
}

src_install() {
	ar x ${S}/electron_app/dist/riot-web*.deb
	tar xvf data.tar.xz

	insinto /
	doins -r usr
	doins -r opt
	fperms +x /opt/Riot/${PN}
	dosym /opt/Riot/${PN} /usr/bin/${PN}
}