parent
							
								
									d4fe71de24
								
							
						
					
					
						commit
						78c776c1fa
					
				@ -1 +0,0 @@
 | 
			
		||||
EBUILD riot-web-9999.ebuild 1762 BLAKE2B 01eaf55d44ffb5c327cbdb406445373a019949a8887f5e9f6b75bcbef3755bbd0c299c335d85ffaa108a808291f9e45c6ec7e25e01c0836ad28e56c9150bf238 SHA512 26779f6e3d7fcb1f996af08e75d535da1f9f7db0168d8c0bfd19b693331e4e39e20466d952bbdb5c29fbabdbaa66eac1fc173b9bf403bbafdc1891209692fa41
 | 
			
		||||
@ -1,82 +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
 | 
			
		||||
	echo PV=9999
 | 
			
		||||
	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"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
LICENSE="Apache-2.0"
 | 
			
		||||
SLOT="0"
 | 
			
		||||
IUSE="+emoji"
 | 
			
		||||
REQUIRED_USE=""
 | 
			
		||||
 | 
			
		||||
DEPEND="sys-devel/binutils:*
 | 
			
		||||
	net-libs/nodejs
 | 
			
		||||
	sys-apps/yarn
 | 
			
		||||
	x11-libs/libXScrnSaver
 | 
			
		||||
	net-print/cups
 | 
			
		||||
	dev-libs/nss
 | 
			
		||||
	gnome-base/gconf
 | 
			
		||||
	emoji? ( >=media-fonts/noto-emoji-20180823 )"
 | 
			
		||||
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"
 | 
			
		||||
 | 
			
		||||
	"${S}"/node_modules/.bin/electron-builder --linux --x64 || die "Bundling failed"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
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
	
	Block a user