summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2020-10-17 14:09:51 +0200
committerSam James <sam@gentoo.org>2020-10-19 02:54:37 +0000
commit208a9be49ea4a768e4f513db32f19417086d5664 (patch)
treed7a0cb468f6f490ffe6f85a3f9c6f622c2fd4dc1
parentdev-util/dwarves: stabilize 1.17 on ppc64 (diff)
downloadgentoo-208a9be49ea4a768e4f513db32f19417086d5664.tar.gz
gentoo-208a9be49ea4a768e4f513db32f19417086d5664.tar.bz2
gentoo-208a9be49ea4a768e4f513db32f19417086d5664.zip
net-misc/unison: .desktop file, menu icon
Closes: https://bugs.gentoo.org/360161 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/17962 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--net-misc/unison/unison-2.48.15_p4.ebuild15
-rw-r--r--net-misc/unison/unison-2.51.3_rc2.ebuild16
2 files changed, 30 insertions, 1 deletions
diff --git a/net-misc/unison/unison-2.48.15_p4.ebuild b/net-misc/unison/unison-2.48.15_p4.ebuild
index a1fb30478f44..93297eaf8275 100644
--- a/net-misc/unison/unison-2.48.15_p4.ebuild
+++ b/net-misc/unison/unison-2.48.15_p4.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit desktop xdg-utils
+
DESCRIPTION="Two-way cross-platform file synchronizer"
HOMEPAGE="https://www.seas.upenn.edu/~bcpierce/unison/"
SRC_URI="https://github.com/bcpierce00/unison/archive/v${PV/_p/v}.tar.gz -> ${P/_p/v}.tar.gz"
@@ -72,6 +74,10 @@ 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}
+ fi
# No manual.pdf or manual.html available for this version
# if use doc; then
# DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
@@ -85,4 +91,13 @@ pkg_postinst() {
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
+ if use gtk; then
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ 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 900baadd1480..5fe71cf739a4 100644
--- a/net-misc/unison/unison-2.51.3_rc2.ebuild
+++ b/net-misc/unison/unison-2.51.3_rc2.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit desktop xdg-utils
+
DESCRIPTION="Two-way cross-platform file synchronizer"
HOMEPAGE="https://www.seas.upenn.edu/~bcpierce/unison/"
SRC_URI="https://github.com/bcpierce00/unison/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -64,7 +66,10 @@ 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}
+ fi
# No docs for release candidates
#if use doc; then
# DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
@@ -79,4 +84,13 @@ pkg_postinst() {
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
+ if use gtk; then
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use gtk; then
+ xdg_icon_cache_update
+ fi
}