diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-27 21:15:29 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-27 21:15:57 +0200 |
commit | a251ff927e7105c54a9c9401a63027e8f9cdb2cf (patch) | |
tree | 770950ba40f16398b63f2cd5cfdd46f6b9e95a46 /net-misc/teamviewer | |
parent | virtual/rust: ~ppc keyworded (diff) | |
download | gentoo-a251ff927e7105c54a9c9401a63027e8f9cdb2cf.tar.gz gentoo-a251ff927e7105c54a9c9401a63027e8f9cdb2cf.tar.bz2 gentoo-a251ff927e7105c54a9c9401a63027e8f9cdb2cf.zip |
net-misc/teamviewer: make docs available for TeamViewer
While here, fix installation of icons.
Closes: https://bugs.gentoo.org/778617
Closes: https://github.com/gentoo/gentoo/pull/20425
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'net-misc/teamviewer')
-rw-r--r-- | net-misc/teamviewer/teamviewer-15.17.6-r1.ebuild (renamed from net-misc/teamviewer/teamviewer-15.17.6.ebuild) | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/net-misc/teamviewer/teamviewer-15.17.6.ebuild b/net-misc/teamviewer/teamviewer-15.17.6-r1.ebuild index f1cc5dc99df9..c9a4dd15708f 100644 --- a/net-misc/teamviewer/teamviewer-15.17.6.ebuild +++ b/net-misc/teamviewer/teamviewer-15.17.6-r1.ebuild @@ -3,13 +3,14 @@ EAPI=7 -MY_PN=${PN}${PV/\.*} +MY_MAJOR="$(ver_cut 1)" +MY_P="${PN}${MY_MAJOR}" inherit desktop systemd xdg DESCRIPTION="All-In-One Solution for Remote Access and Support over the Internet" HOMEPAGE="https://www.teamviewer.com" -SRC_URI="amd64? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_amd64.tar.xz ) - x86? ( https://dl.tvcdn.de/download/linux/version_${PV/\.*}x/${PN}_${PV}_i386.tar.xz )" +SRC_URI="amd64? ( https://dl.tvcdn.de/download/linux/version_${MY_MAJOR}x/${PN}_${PV}_amd64.tar.xz ) + x86? ( https://dl.tvcdn.de/download/linux/version_${MY_MAJOR}x/${PN}_${PV}_i386.tar.xz )" LICENSE="TeamViewer MIT" SLOT="0" @@ -34,7 +35,7 @@ RDEPEND=" RESTRICT="bindist mirror" # Silence QA messages -QA_PREBUILT="opt/${MY_PN}/*" +QA_PREBUILT="opt/${MY_P}/*" S="${WORKDIR}"/teamviewer @@ -49,7 +50,7 @@ src_prepare() { } src_install() { - local dst="/opt/${MY_PN}" # install destination + local dst="/opt/${MY_P}" # install destination # Quirk: # Remove Intel 80386 32-bit ELF binary 'libdepend' present in all @@ -63,6 +64,7 @@ src_install() { doins -r tv_bin # Set permissions for executables and libraries + local exe for exe in $(find tv_bin -type f -executable -or -name '*.so'); do fperms 755 ${dst}/${exe} done @@ -78,32 +80,34 @@ src_install() { insinto /usr/share/polkit-1/actions doins tv_bin/script/com.teamviewer.TeamViewer.policy + local size for size in 16 24 32 48 256; do - newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png TeamViewer.png + newicon -s ${size} tv_bin/desktop/teamviewer_${size}.png teamviewer.png done - # Install documents (NOTE: using 'dodoc -r doc' instead of loop will - # have the undesired result of installing subdirectory 'doc' in /usr/ - # share/doc/teamviewer-<version>) - for doc in $(find doc -type f); do - dodoc ${doc} - done + dodoc -r doc + + # Make docs available in expected location + dosym ../../usr/share/doc/${PF}/doc ${dst}/doc + + # We need to keep docs uncompressed, bug #778617 + docompress -x /usr/share/doc/${PF}/* - keepdir /etc/${MY_PN} - dosym ../../etc/${MY_PN} ${dst}/config + keepdir /etc/${MY_P} + dosym ../../etc/${MY_P} ${dst}/config # Create directory and symlink for log files (NOTE: according to Team- # Viewer devs, all paths are hard-coded in the binaries; therefore # using the same path as the DEB/RPM archives, i.e. '/var/log/teamviewer # <major-version>') - keepdir /var/log/${MY_PN} - dosym ../../var/log/${MY_PN} ${dst}/logfiles + keepdir /var/log/${MY_P} + dosym ../../var/log/${MY_P} ${dst}/logfiles dodir /opt/bin dosym ${dst}/tv_bin/teamviewerd /opt/bin/teamviewerd dosym ${dst}/tv_bin/script/teamviewer /opt/bin/teamviewer - make_desktop_entry teamviewer "TeamViewer ${SLOT}" TeamViewer + make_desktop_entry teamviewer "TeamViewer ${MY_MAJOR}" teamviewer } pkg_postinst() { |