diff --git a/editors/microsoft-edit/Makefile b/editors/microsoft-edit/Makefile index f906ef712df5..97ea85cf8af0 100644 --- a/editors/microsoft-edit/Makefile +++ b/editors/microsoft-edit/Makefile @@ -1,34 +1,40 @@ PORTNAME= microsoft-edit DISTVERSIONPREFIX= v DISTVERSION= 1.0.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 USE_GITHUB= yes GH_ACCOUNT= microsoft GH_PROJECT= edit BUILD_DEPENDS= rust-nightly>0:lang/rust-nightly CARGO_BUILDDEP= no PORTDOCS= CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md OPTIONS_DEFINE= DOCS -PLIST_FILES= bin/edit bin/msedit +PLIST_FILES= bin/edit \ + bin/msedit \ + share/man/man1/edit.1.gz \ + share/man/man1/msedit.1.gz post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} post-install: - ${LN} -sf ${PREFIX}/bin/edit ${STAGEDIR}/${PREFIX}/bin/msedit + ${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 .include diff --git a/editors/microsoft-edit/files/patch-assets_manpage_edit.1 b/editors/microsoft-edit/files/patch-assets_manpage_edit.1 new file mode 100644 index 000000000000..0ddc19019708 --- /dev/null +++ b/editors/microsoft-edit/files/patch-assets_manpage_edit.1 @@ -0,0 +1,29 @@ +--- assets/manpage/edit.1.orig 2025-05-27 16:45:04 UTC ++++ assets/manpage/edit.1 +@@ -0,0 +1,26 @@ ++.TH EDIT 1 "version 1.0" "May 2025" ++.SH NAME ++edit \- a simple text editor ++.SH SYNOPSIS ++\fBedit\fP [\fIOPTIONS\fP]... [\fIARGUMENTS\fP]... ++.SH DESCRIPTION ++edit is a simple text editor inspired by MS-DOS edit. ++.SH EDITING ++Edit is an interactive mode-less editor. Use Alt-F to access the menus. ++.SH ARGUMENTS ++.TP ++\fIFILE[:LINE[:COLUMN]]\fP ++The file to open, optionally with line and column (e.g., \fBfoo.txt:123:45\fP). ++.SH OPTIONS ++.TP ++\fB\-h\fP, \fB\-\-help\fP ++Print the help message. ++.TP ++\fB\-v\fP, \fB\-\-version\fP ++Print the version number. ++.SH COPYRIGHT ++Copyright (c) Microsoft Corporation. ++.br ++Licensed under the MIT License. ++.SH SEE ALSO ++https://github.com/microsoft/edit