Mask dev-python/nodeenv and net-im/riot-web for x86

mhiretskiy
parent 4b75117e71
commit f71ca1c09d

@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
KEYWORDS="amd64"
RESTRICT="test"

@ -1,3 +1 @@
DIST riot-web-1.3.3.tar.gz 1514218 BLAKE2B 3d0dac145d72e339c6f7fb493fa1c44577f892dcd87b92eb0961b6e08a8de10ac49655eea0a6ece0cd9cb94315bf026a5dfaeaf8ab1997f15d955c48ee01dcfb SHA512 bfe44600935a5d29b5c57818c2c3f8b0015ec7f4a2e7e58dc1f75c753741768ec0281f94156830328d24c5835a9ee67598c47341113038431b858291989d1745
DIST riot-web-1.3.6.tar.gz 1500603 BLAKE2B 246caa3d04328a8c1c88df42f795ad0a7890abf9ae4d03734866115a249540fe4dcd93ff34a77855efb3fb7445551e60112afbfcf7259b46eb0d57e4cab2e29b SHA512 25714c13f10e5029a249809c819ac90cbba091dfcb5b8e5c19ed320b8626d695c2b367b9f3784b033797987297594b16d7d6565a2e910b802ed9c18261290676
DIST riot-web-1.5.0.tar.gz 1512020 BLAKE2B 0ab27789a7bdb8a1a909db8eefab43edcddff9c28bb86414dc4b7b6ad2e8253067484f5c1a3016553c3292b8d34ee6774e774091e9e63d72e99b2c552c2f72af SHA512 38c9141df97f82574dd3c9d2efa93aef382d66077071a7c007fb1bfc93e51fc2ab75f1ac0a6db6aa4b09d73a5100b6dc9ce6a9d2e8c90c2c2a2b368d077e5e3c
DIST riot-web-1.5.5.tar.gz 1518996 BLAKE2B ba355b75288de80b730ec2170d4841b394d0794e128eeb5de8185625a661729f051be0a2ac49e5babdea848f8a0064a3c414bb5f9e32bf760998e407c731cd70 SHA512 b8d147bd3220b842438feee1aa0bb49a223cad76d1848971ff685087945c79b170f2336119900586d2eb1e7f766738e4b3e544f6c646fae886f4ef7ff29328c7

@ -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
}

@ -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
}

@ -16,7 +16,7 @@ if [[ ${PV} == "9999" ]]; then
EGIT_BRANCH="develop"
else
SRC_URI="https://github.com/vector-im/riot-web/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86"
KEYWORDS="amd64"
fi
LICENSE="Apache-2.0"
@ -55,19 +55,9 @@ src_prepare() {
}
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
yarn run build || die "Build failed"
if use abi_x86_32; then
"${S}"/node_modules/.bin/electron-builder --linux --ia32 || die "Bundling failed"
elif use abi_x86_64; then
"${S}"/node_modules/.bin/electron-builder --linux --x64 || die "Bundling failed"
fi
"${S}"/node_modules/.bin/electron-builder --linux --x64 || die "Bundling failed"
}
src_install() {
Loading…
Cancel
Save