Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2025 23:15:47 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6c782ff39a6a - main - editors/py-editor: New port: Open the default text editor
Message-ID:  <202510162315.59GNFl3j074708@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c782ff39a6af146d6b26fa8f971356e815c1521

commit 6c782ff39a6af146d6b26fa8f971356e815c1521
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-16 20:18:27 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-16 23:15:27 +0000

    editors/py-editor: New port: Open the default text editor
---
 editors/Makefile            |  1 +
 editors/py-editor/Makefile  | 23 +++++++++++++++++++++++
 editors/py-editor/distinfo  |  3 +++
 editors/py-editor/pkg-descr |  8 ++++++++
 4 files changed, 35 insertions(+)

diff --git a/editors/Makefile b/editors/Makefile
index 2315d902a115..5deb6ca781ea 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -240,6 +240,7 @@
     SUBDIR += psgml
     SUBDIR += puff
     SUBDIR += py-babi
+    SUBDIR += py-editor
     SUBDIR += py-editorconfig
     SUBDIR += py-pynvim
     SUBDIR += py-vim-bridge
diff --git a/editors/py-editor/Makefile b/editors/py-editor/Makefile
new file mode 100644
index 000000000000..80cd5febd672
--- /dev/null
+++ b/editors/py-editor/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	editor
+DISTVERSION=	1.6.6
+CATEGORIES=	editors python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Open the default text editor
+WWW=		https://github.com/rec/editor
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}runs>0:devel/py-runs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xmod>0:devel/py-xmod@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/editors/py-editor/distinfo b/editors/py-editor/distinfo
new file mode 100644
index 000000000000..19c2b320202f
--- /dev/null
+++ b/editors/py-editor/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760642616
+SHA256 (editor-1.6.6.tar.gz) = bb6989e872638cd119db9a4fce284cd8e13c553886a1c044c6b8d8a160c871f8
+SIZE (editor-1.6.6.tar.gz) = 3197
diff --git a/editors/py-editor/pkg-descr b/editors/py-editor/pkg-descr
new file mode 100644
index 000000000000..6f0a0b679076
--- /dev/null
+++ b/editors/py-editor/pkg-descr
@@ -0,0 +1,8 @@
+The editor Python library allows users to open their default text
+editor or a specified editor to edit existing files, new files, or
+temporary files. It blocks execution while the user edits the text
+and then returns the file's contents.
+
+The library determines the editor to use based on the VISUAL or
+EDITOR environment variables, or defaults to 'Notepad' on Windows
+and 'vim' otherwise.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510162315.59GNFl3j074708>