editors/mg: add -static slave installed as /rescue/mg

When recovering from a broken rtld(1) one may want a visual editor that
feels like Emacs. ee(1) isn't under /rescue, and its Emacs keys support
lacks even C-x C-c (save-buffers-kill-emacs).
This commit is contained in:
Jan Beich 2020-11-18 10:04:26 +00:00
parent 0af533d213
commit c2b8c5a018
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555627
3 changed files with 23 additions and 3 deletions

View File

@ -192,6 +192,7 @@
SUBDIR += linux-sublime3 SUBDIR += linux-sublime3
SUBDIR += madedit SUBDIR += madedit
SUBDIR += mg SUBDIR += mg
SUBDIR += mg-static
SUBDIR += micro SUBDIR += micro
SUBDIR += mined SUBDIR += mined
SUBDIR += mle SUBDIR += mle

View File

@ -0,0 +1,19 @@
# $FreeBSD$
PORTEPOCH= 0 # don't bump accidentally
PKGNAMESUFFIX= -static
COMMENT= Small, fast Emacs-like editor (rescue(8) version)
MASTERDIR= ${.CURDIR}/../mg
CONFIGURE_ARGS= --enable-static
PLIST_FILES= /rescue/${PORTNAME}
OPTIONS_EXCLUDE=DOCS
do-install:
${MKDIR} ${STAGEDIR}${PLIST_FILES:[1]:H}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PLIST_FILES:[1]}
.include "${MASTERDIR}/Makefile"

View File

@ -3,18 +3,18 @@
PORTNAME= mg PORTNAME= mg
PORTVERSION= 6.7 PORTVERSION= 6.7
PORTEPOCH= 1 PORTEPOCH?= 1
CATEGORIES= editors CATEGORIES= editors
MASTER_SITES= https://github.com/ibara/mg/releases/download/mg-${PORTVERSION}/ MASTER_SITES= https://github.com/ibara/mg/releases/download/mg-${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Small, fast Emacs-like editor COMMENT?= Small, fast Emacs-like editor
LICENSE= PD LICENSE= PD
USES= ncurses USES= ncurses
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
PLIST_FILES= bin/mg \ PLIST_FILES?= bin/mg \
man/man1/mg.1.gz man/man1/mg.1.gz
PORTDOCS= README-Mg README.md tutorial PORTDOCS= README-Mg README.md tutorial