net-im/riot-web: version bump to 1.3.2

mhiretskiy
Alexander Tratsevskiy 5 years ago
parent 042041bcb3
commit 9f3c393dc3

@ -1,2 +1 @@
DIST riot-web-1.2.3.tar.gz 1509272 BLAKE2B 188215bc30aec2aa5d9292d537d189190c458c0a83125df5c3d33756bc2f749e45c85080ab52d3724f11a40668a77f660a4162e563750932acef49f40c73088f SHA512 7866d36aa7208e088b980f55c125d44df2ef2d7907d65e64403df94df83367071ce4bf1e4e198893973cbad7e6f8e1b28d4838e2860777f120ec6986f462ddc2
DIST riot-web-1.3.0.tar.gz 1509966 BLAKE2B 9889fc8ffbb2c0e7e7b5ccade953ecf3e417397b2a6e3b4da292a6a27c785cbe7756b7443c83bf95fcb6c9fb0baeeb2ecc17498fff3e8893b093467acbf9ef90 SHA512 1dd113eb98edb43bb7b13ca4c0ca11e2e26ce0a093177282f31eb1746387f568a3c22e56d7d00659f7b8021a27d35b41f66a73343ff40624fb523f6094c837b2
DIST riot-web-1.3.2.tar.gz 1514480 BLAKE2B 2cb8430d4f358d3ac163015a67bcadb043e57f36f0b2e08565b9b79581a2ff82f820953877ff75195fccd64448f3fb080c4a2ff939200423d21a6a598a4a69aa SHA512 dca928d44f6bb8e4f194d1d9fca1c53a7233fafd163b3ad8408b81a919142854001b871ba5f16953608ed8aa5b2040436df712444dad0f5edbebbbf168708ff0

@ -1,91 +0,0 @@
# 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() {
if use x86; then
# Currently, by default v8 has a memory limit of 512MB on 32-bit systems,
# and 1.4GB on 64-bit systems.
NODE_OPTIONS="--max_old_space_size=1536" yarn run build || die "Build failed"
else
yarn run build || die "Build failed"
fi
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…
Cancel
Save