You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
3.1 KiB
104 lines
3.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
|
MULTILIB_COMPAT=( abi_x86_{32,64} )
|
||
|
MY_PN="${PN/-bin/}"
|
||
|
|
||
4 years ago
|
inherit desktop multilib-build pax-utils unpacker xdg
|
||
6 years ago
|
|
||
4 years ago
|
QA_PREBUILT="opt/gitter/pnacl/pnacl_public_x86_64_pnacl_llc_nexe
|
||
6 years ago
|
opt/gitter/pnacl/pnacl_public_x86_64_ld_nexe
|
||
|
opt/gitter/pnacl/pnacl_public_x86_64_pnacl_sz_nexe
|
||
|
opt/gitter/payload
|
||
|
opt/gitter/swiftshader/libEGL.so
|
||
|
opt/gitter/swiftshader/libGLESv2.so
|
||
|
opt/gitter/chromedriver
|
||
|
opt/gitter/lib/libnw.so
|
||
|
opt/gitter/lib/libnode.so
|
||
|
opt/gitter/lib/libffmpeg.so
|
||
|
opt/gitter/nacl_helper
|
||
|
opt/gitter/nwjc
|
||
|
opt/gitter/nacl_irt_x86_64.nexe
|
||
|
opt/gitter/Gitter"
|
||
4 years ago
|
QA_FLAGS_IGNORED="opt/gitter/minidump_stackwalk
|
||
|
opt/gitter/nacl_helper_bootstrap
|
||
|
opt/gitter/crashpad_handler
|
||
|
opt/gitter/lib/libEGL.so
|
||
|
opt/gitter/lib/libGLESv2.so"
|
||
6 years ago
|
|
||
|
DESCRIPTION="Chat and network platform"
|
||
4 years ago
|
HOMEPAGE="https://www.gitter.im"
|
||
6 years ago
|
SRC_URI="
|
||
|
amd64? ( https://update.gitter.im/linux64/${MY_PN}_${PV}_amd64.deb )
|
||
|
x86? ( https://update.gitter.im/linux32/${MY_PN}_${PV}_i386.deb )"
|
||
|
|
||
|
LICENSE="all-rights-reserved"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="-* ~amd64 ~x86"
|
||
4 years ago
|
IUSE=""
|
||
6 years ago
|
RESTRICT="bindist mirror"
|
||
|
|
||
4 years ago
|
RDEPEND="app-accessibility/at-spi2-core:2[${MULTILIB_USEDEP}]
|
||
|
dev-libs/atk:0[${MULTILIB_USEDEP}]
|
||
6 years ago
|
dev-libs/expat:0[${MULTILIB_USEDEP}]
|
||
|
dev-libs/glib:2[${MULTILIB_USEDEP}]
|
||
|
dev-libs/nspr:0[${MULTILIB_USEDEP}]
|
||
|
dev-libs/nss:0[${MULTILIB_USEDEP}]
|
||
|
media-libs/alsa-lib:0[${MULTILIB_USEDEP}]
|
||
4 years ago
|
net-print/cups:0[${MULTILIB_USEDEP}]
|
||
6 years ago
|
sys-apps/dbus:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/cairo:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
|
||
|
x11-libs/gtk+:3[${MULTILIB_USEDEP}]
|
||
4 years ago
|
x11-libs/libdrm:0[${MULTILIB_USEDEP}]
|
||
6 years ago
|
x11-libs/libX11:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libxcb:0/1.12[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXcomposite:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXcursor:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXdamage:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXext:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXfixes:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXi:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXrandr:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/libXrender:0[${MULTILIB_USEDEP}]
|
||
4 years ago
|
x11-libs/libXScrnSaver:0[${MULTILIB_USEDEP}]
|
||
6 years ago
|
x11-libs/libXtst:0[${MULTILIB_USEDEP}]
|
||
|
x11-libs/pango:0[${MULTILIB_USEDEP}]"
|
||
|
|
||
|
S="${WORKDIR}"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
local arch
|
||
|
arch="$(usex amd64 "64" "32")"
|
||
|
|
||
4 years ago
|
# Remove hardcoded paths
|
||
6 years ago
|
sed -i \
|
||
4 years ago
|
-e '/Exec/s/=.*/=gitter/' \
|
||
|
-e '/Icon/s/=.*/=gitter/' \
|
||
6 years ago
|
opt/Gitter/linux"${arch}"/gitter.desktop || die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local arch
|
||
|
arch="$(usex amd64 "64" "32")"
|
||
|
|
||
|
newicon opt/Gitter/linux"${arch}"/logo.png gitter.png
|
||
|
newicon -s 256 opt/Gitter/linux"${arch}"/logo.png gitter.png
|
||
|
domenu opt/Gitter/linux"${arch}"/gitter.desktop
|
||
|
|
||
|
insinto /opt/gitter
|
||
|
doins -r opt/Gitter/linux"${arch}"/.
|
||
4 years ago
|
fperms -R +x /opt/gitter/lib/ /opt/gitter/swiftshader/ \
|
||
|
/opt/gitter/pnacl/pnacl_public_x86_64_{ld_nexe,pnacl_llc_nexe,pnacl_sz_nexe} \
|
||
|
/opt/gitter/{Gitter,chromedriver,crashpad_handler,minidump_stackwalk,nwjc,payload} \
|
||
|
/opt/gitter/nacl_{helper,helper_bootstrap,irt_x86_64.nexe}
|
||
6 years ago
|
|
||
4 years ago
|
dosym ../../opt/gitter/Gitter /usr/bin/gitter
|
||
6 years ago
|
|
||
4 years ago
|
pax-mark -m "${ED}"/opt/gitter/Gitter
|
||
6 years ago
|
}
|