diff options
Diffstat (limited to 'net-misc/unison/unison-2.51.3_rc2.ebuild')
-rw-r--r-- | net-misc/unison/unison-2.51.3_rc2.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
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 } |