diff --git a/editors/microsoft-edit/Makefile b/editors/microsoft-edit/Makefile index 3b9929a2a660..9ed34e15e4a8 100644 --- a/editors/microsoft-edit/Makefile +++ b/editors/microsoft-edit/Makefile @@ -1,37 +1,38 @@ PORTNAME= microsoft-edit DISTVERSIONPREFIX= v DISTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= editors MAINTAINER= nobutaka@FreeBSD.org COMMENT= Console text editor written in Rust WWW= https://github.com/microsoft/edit LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cargo +USES= cargo desktop-file-utils USE_GITHUB= yes GH_ACCOUNT= microsoft GH_PROJECT= edit CARGO_ENV+= RUSTC_BOOTSTRAP=1 PORTDOCS= CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md OPTIONS_DEFINE= DOCS post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} post-install: ${RLN} ${STAGEDIR}${PREFIX}/bin/edit ${STAGEDIR}${PREFIX}/bin/msedit ${INSTALL_MAN} ${WRKSRC}/assets/manpage/edit.1 ${STAGEDIR}${PREFIX}/share/man/man1 ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/edit.1 ${STAGEDIR}${PREFIX}/share/man/man1/msedit.1 ${MKDIR} ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/assets/com.microsoft.edit.desktop ${STAGEDIR}${PREFIX}/share/applications/ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ${INSTALL_DATA} ${WRKSRC}/assets/edit.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/msedit.svg .include diff --git a/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop b/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop new file mode 100644 index 000000000000..2f8c62887296 --- /dev/null +++ b/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop @@ -0,0 +1,13 @@ +--- assets/com.microsoft.edit.desktop.orig 2025-06-11 21:26:27 UTC ++++ assets/com.microsoft.edit.desktop +@@ -3,8 +3,8 @@ Comment=A simple editor for simple needs + Name=Microsoft Edit + GenericName=Text Editor + Comment=A simple editor for simple needs +-Icon=edit +-Exec=edit %U ++Icon=msedit ++Exec=msedit %U + Terminal=true + MimeType=text/plain + Keywords=text;editor