summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-10-19 02:54:32 +0000
committerSam James <sam@gentoo.org>2020-10-19 02:54:37 +0000
commit1f30b3d872ddc9b335377eb547b1c4f8636c4c10 (patch)
treeb1fc69e3c047e4c705d74aeedd53a69259e9c474 /net-misc/unison
parentnet-misc/unison: .desktop file, menu icon (diff)
downloadgentoo-1f30b3d872ddc9b335377eb547b1c4f8636c4c10.tar.gz
gentoo-1f30b3d872ddc9b335377eb547b1c4f8636c4c10.tar.bz2
gentoo-1f30b3d872ddc9b335377eb547b1c4f8636c4c10.zip
net-misc/unison: don't double-name the desktop file
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/unison')
-rw-r--r--net-misc/unison/unison-2.48.15_p4.ebuild7
-rw-r--r--net-misc/unison/unison-2.51.3_rc2.ebuild7
2 files changed, 10 insertions, 4 deletions
diff --git a/net-misc/unison/unison-2.48.15_p4.ebuild b/net-misc/unison/unison-2.48.15_p4.ebuild
index 93297eaf8275..e32810067cdd 100644
--- a/net-misc/unison/unison-2.48.15_p4.ebuild
+++ b/net-misc/unison/unison-2.48.15_p4.ebuild
@@ -74,10 +74,12 @@ src_install() {
for binname in unison unison-fsmonitor; do
newbin ${binname} ${binname}-${SLOT}
done
+
if use gtk; then
newicon -s scalable ../icons/U.svg ${PN}-${SLOT}.svg
- make_desktop_entry ${PN}-${SLOT} ${PN}-${SLOT} ${PN}-${SLOT}
+ make_desktop_entry Unison "${PN} (${SLOT})" "${EPREFIX}/usr/share/${PN}/${PN}-${SLOT}.svg"
fi
+
# No manual.pdf or manual.html available for this version
# if use doc; then
# DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
@@ -90,7 +92,8 @@ pkg_postinst() {
elog "Unison now uses SLOTs, so you can specify servercmd=/usr/bin/unison-${SLOT}"
elog "in your profile files to access exactly this version over ssh."
elog "Or you can use 'eselect unison' to set the version."
- eselect unison update
+ eselect unison update || die
+
if use gtk; then
xdg_icon_cache_update
fi
diff --git a/net-misc/unison/unison-2.51.3_rc2.ebuild b/net-misc/unison/unison-2.51.3_rc2.ebuild
index 5fe71cf739a4..8b324830c1e4 100644
--- a/net-misc/unison/unison-2.51.3_rc2.ebuild
+++ b/net-misc/unison/unison-2.51.3_rc2.ebuild
@@ -66,10 +66,12 @@ src_install() {
for binname in unison unison-fsmonitor; do
newbin ${binname} ${binname}-${SLOT}
done
+
if use gtk; then
newicon -s scalable ../icons/U.svg ${PN}-${SLOT}.svg
- make_desktop_entry ${PN}-${SLOT} ${PN}-${SLOT} ${PN}-${SLOT}
+ make_desktop_entry Unison "${PN} (${SLOT})" "${EPREFIX}/usr/share/${PN}/${PN}-${SLOT}.svg"
fi
+
# No docs for release candidates
#if use doc; then
# DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
@@ -83,7 +85,8 @@ pkg_postinst() {
elog "Unison now uses SLOTs, so you can specify servercmd=/usr/bin/unison-${SLOT}"
elog "in your profile files to access exactly this version over ssh."
elog "Or you can use 'eselect unison' to set the version."
- eselect unison update
+ eselect unison update || die
+
if use gtk; then
xdg_icon_cache_update
fi