107 lines
2.7 KiB
Bash
107 lines
2.7 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
inherit pax-utils xdg-utils versionator desktop multilib
|
|
|
|
PV_MAJ=$(get_major_version )
|
|
PV_MIN=$(get_version_component_range 2)
|
|
PV_SUB=$(get_version_component_range 3)
|
|
PV_DIF=$(get_version_component_range 4)
|
|
MY_PV="${PV_MAJ}.${PV_MIN}.${PV_DIF}"
|
|
|
|
DESCRIPTION="Parallels Remote Application Client"
|
|
HOMEPAGE="https://www.parallels.com/eu/products/ras/download/links/#lin"
|
|
SRC_URI="x86? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )
|
|
amd64? ( http://download.parallels.com/ras/v${PV_MAJ}/${PV}/RASClient-${MY_PV}_i386.tar.bz2 )"
|
|
|
|
LICENSE="no-source-code"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="pax_kernel multilib"
|
|
|
|
S="${WORKDIR}"
|
|
RESTRICT="mirror bindist strip" #299368
|
|
|
|
|
|
# dev-qt/qtdbus:4
|
|
# dev-qt/qtcore:4"
|
|
RDEPEND="
|
|
media-libs/libpng-compat:1.2
|
|
dev-libs/libxml2
|
|
media-libs/alsa-lib
|
|
media-libs/fontconfig
|
|
media-libs/freetype
|
|
sys-libs/zlib
|
|
net-print/cups
|
|
|| ( sys-devel/base-gcc sys-devel/gcc )
|
|
sys-apps/pcsc-lite
|
|
sys-libs/glibc
|
|
x11-libs/libICE
|
|
x11-libs/libSM
|
|
x11-libs/libX11
|
|
x11-libs/libXcursor
|
|
x11-libs/libXext
|
|
x11-libs/libXfixes
|
|
x11-libs/libXinerama
|
|
x11-libs/libXpm
|
|
x11-libs/libXrandr
|
|
x11-libs/libXrender
|
|
x11-libs/libXtst"
|
|
|
|
pkg_setup() {
|
|
# This is a binary x86 package => ABI=x86
|
|
# Please keep this in future versions
|
|
has_multilib_profile && ABI="x86"
|
|
}
|
|
|
|
src_install() {
|
|
into /opt/2X/Client/
|
|
dobin opt/2X/Client/bin/*
|
|
rm opt/2X/Client/lib/libfreetype*
|
|
dolib.so opt/2X/Client/lib/*
|
|
ln -sf $(get_libdir) "${D}/opt/2X/Client/lib"
|
|
|
|
dodoc opt/2X/Client/doc/*
|
|
|
|
doicon opt/2X/Client/share/2X.png
|
|
|
|
domenu opt/2X/Client/share/rasclient.desktop
|
|
domenu opt/2X/Client/share/tuxclient.desktop
|
|
domenu opt/2X/Client/share/rassession.desktop
|
|
|
|
insinto /usr/share/mime-info
|
|
doins opt/2X/Client/share/mime/*.{keys,mime}
|
|
|
|
insinto /usr/share/application-registry
|
|
doins opt/2X/Client/share/mime/2XSession.applications
|
|
|
|
insinto /usr/share/mime/packages/
|
|
doins opt/2X/Client/share/sharedmimeinfo/2XClient.xml
|
|
|
|
insinto /opt/2X/Client/share
|
|
doins opt/2X/Client/share/*.{conf,qm,qss,pem}
|
|
doins opt/2X/Client/share/installed
|
|
|
|
|
|
# if use pax_kernel; then
|
|
# pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
|
|
# eqawarn "You have set USE=pax_kernel meaning that you intend to run"
|
|
# eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
|
|
# eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
|
|
# eqawarn "you suspect that ${PN} is being broken by this modification,"
|
|
# eqawarn "please open a bug."
|
|
# fi
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_desktop_database_update
|
|
xdg_mimeinfo_database_update
|
|
}
|