git: 5fb0b9b4a09d - main - editors/microsoft-edit: Install man page
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 May 2025 17:33:07 UTC
The branch main has been updated by nobutaka:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5fb0b9b4a09d855eaf71a54704c2daf57fa44226
commit 5fb0b9b4a09d855eaf71a54704c2daf57fa44226
Author: MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2025-05-27 17:22:21 +0000
Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2025-05-27 17:31:28 +0000
editors/microsoft-edit: Install man page
https://github.com/microsoft/edit/pull/263
Use ${RLN} instead of ${LN} (*)
Reported by: danfe and arrowd (*)
---
editors/microsoft-edit/Makefile | 10 ++++++--
.../files/patch-assets_manpage_edit.1 | 29 ++++++++++++++++++++++
2 files changed, 37 insertions(+), 2 deletions(-)
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,6 +1,7 @@
PORTNAME= microsoft-edit
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.0
+PORTREVISION= 1
CATEGORIES= editors
MAINTAINER= nobutaka@FreeBSD.org
@@ -22,13 +23,18 @@ 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 <bsd.port.mk>
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