parent
1637e1b24a
commit
ca8170a5a7
@ -1 +1,2 @@
|
||||
DIST riot-web-1.0.8.tar.gz 1479259 BLAKE2B b0fbd1197bf41fb08229a7a232272890b51e96f3ce5eff89eb6d0ab7ad7e7d8ce5fa28adbd9baf76adadf2c8a274a3148d0f740d4d258bea32869e93d10a18d6 SHA512 da142f97f517dfdf3c473e3650ade2922a5b9d3c2389e5339e12fe732209f9d2570de487b40e5572e9b9a460ea667b994fb583a6b1ae5c859461138d5864d222
|
||||
DIST riot-web-1.1.0.tar.gz 1482735 BLAKE2B 244d2df5eb6c07ba4364380bdd09e0c3c3c87595c652da62a11d751de26140f8ab96f469a75e8cde686a0998084cae8bf4080d285f98bce366517a8d3289be9e SHA512 3aa24e725a9e16a9868100e5c550fb8bdd4d191431d246481b790a3c52cd3476dfc99f863d8a63643b52e0d5d57af81f871a0cb8fd8efeb355ec92a9f5b3b498
|
||||
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2019 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 gnome2-utils
|
||||
|
||||
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
|
||||
sys-apps/yarn
|
||||
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
|
||||
|
||||
yarn install || die "Yarn module installation failed"
|
||||
|
||||
cp "${S}"/config.sample.json "${S}"/config.json
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
yarn run build || die "Build failed"
|
||||
|
||||
if use abi_x86_32; then
|
||||
"${S}"/node_modules/.bin/build --linux --ia32 || die "Bundling failed"
|
||||
elif use abi_x86_64; then
|
||||
"${S}"/node_modules/.bin/build --linux --x64 || die "Bundling failed"
|
||||
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}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
Loading…
Reference in new issue