commit: 208a9be49ea4a768e4f513db32f19417086d5664 Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> AuthorDate: Sat Oct 17 12:09:51 2020 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 19 02:54:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208a9be4
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 <AT> pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/17962 Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/unison/unison-2.48.15_p4.ebuild | 15 +++++++++++++++ net-misc/unison/unison-2.51.3_rc2.ebuild | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/net-misc/unison/unison-2.48.15_p4.ebuild b/net-misc/unison/unison-2.48.15_p4.ebuild index a1fb30478f4..93297eaf827 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 900baadd148..5fe71cf739a 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 }
