svn commit: r512497 - in head/editors: . mle
Mateusz Piotrowski
0mp at FreeBSD.org
Sat Sep 21 14:21:46 UTC 2019
Author: 0mp
Date: Sat Sep 21 14:21:44 2019
New Revision: 512497
URL: https://svnweb.freebsd.org/changeset/ports/512497
Log:
New port: editors/mle: Small, flexible, terminal-based text editor
mle is a small, flexible, terminal-based text editor written in C.
Notable features include: full Unicode support, syntax highlighting,
scriptable rc file, macros, search and replace (PCRE), window
splitting, multiple cursors, and integration with various shell
commands.
WWW: https://github.com/adsr/mle
PR: 240523
Submitted by: as at php.net
Differential Revision: https://reviews.freebsd.org/D21689
Event: EuroBSDcon 2019
Added:
head/editors/mle/
head/editors/mle/Makefile (contents, props changed)
head/editors/mle/distinfo (contents, props changed)
head/editors/mle/pkg-descr (contents, props changed)
Modified:
head/editors/Makefile
Modified: head/editors/Makefile
==============================================================================
--- head/editors/Makefile Sat Sep 21 14:18:58 2019 (r512496)
+++ head/editors/Makefile Sat Sep 21 14:21:44 2019 (r512497)
@@ -188,6 +188,7 @@
SUBDIR += mg
SUBDIR += micro
SUBDIR += mined
+ SUBDIR += mle
SUBDIR += morla
SUBDIR += mousepad
SUBDIR += mp
Added: head/editors/mle/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/mle/Makefile Sat Sep 21 14:21:44 2019 (r512497)
@@ -0,0 +1,56 @@
+# Created by: Adam Saponara <as at php.net>
+# $FreeBSD$
+
+PORTNAME= mle
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.4.0
+CATEGORIES= editors
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+PATCH_SITES= https://gist.githubusercontent.com/adsr/0fdf41a277bb0519f60d2225b782f66a/raw/9f0b59ce57827e69ec7e9b34061416f354032663/
+PATCHFILES= foo.diff:-p1
+
+MAINTAINER= as at php.net
+COMMENT= Small, flexible, terminal-based text editor
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash
+LIB_DEPENDS= liblua-5.3.so:lang/lua53 \
+ libpcre.so:devel/pcre \
+ libtermbox.so:devel/termbox
+TEST_DEPENDS= ${LOCALBASE}/bin/gpaste:sysutils/coreutils \
+ ${LOCALBASE}/bin/grep:textproc/gnugrep \
+ bash:shells/bash \
+ gfind:misc/findutils
+
+USES= gmake localbase:ldflags shebangfix
+SHEBANG_FILES= tests/func/*.sh tests/run.sh
+USE_GITHUB= yes
+GH_ACCOUNT= adsr
+
+PLIST_FILES= bin/mle
+TEST_TARGET= test
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|lua5.3|lua53|g' ${WRKSRC}/mle.h
+ @${REINPLACE_CMD} -e 's|lua5.3|lua-5.3|g' ${WRKSRC}/Makefile
+
+ # Tests.
+ @${REINPLACE_CMD} -e 's|find|gfind|g' \
+ -e 's|grep|${LOCALBASE}/bin/grep|g' \
+ ${WRKSRC}/tests/run.sh \
+ ${WRKSRC}/tests/func/*.sh
+ @${REINPLACE_CMD} -e 's|p a s t e|g p a s t e|g' \
+ ${WRKSRC}/tests/func/test_lua.sh
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mle ${STAGEDIR}${PREFIX}/bin
+
+pre-test:
+ # Remove backup files generated by REINPLACE_CMD. Those must not exist
+ # for the tests to run properly.
+ @${FIND} ${WRKSRC}/tests -name '*.sh.bak' -delete
+
+.include <bsd.port.mk>
Added: head/editors/mle/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/mle/distinfo Sat Sep 21 14:21:44 2019 (r512497)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1569070306
+SHA256 (mle-1.4.0/adsr-mle-v1.4.0_GH0.tar.gz) = c186fd8ffa756f26e48dfef818e5e40345dab53f60e73cce92caa81b6512cd5c
+SIZE (mle-1.4.0/adsr-mle-v1.4.0_GH0.tar.gz) = 104956
+SHA256 (mle-1.4.0/foo.diff) = a55dea8c7b63d84b416cfafa7a3cbe48e7a2378de370ed5e89ffc5aff4de2b9d
+SIZE (mle-1.4.0/foo.diff) = 2360
Added: head/editors/mle/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/editors/mle/pkg-descr Sat Sep 21 14:21:44 2019 (r512497)
@@ -0,0 +1,7 @@
+mle is a small, flexible, terminal-based text editor written in C.
+Notable features include: full Unicode support, syntax highlighting,
+scriptable rc file, macros, search and replace (PCRE), window
+splitting, multiple cursors, and integration with various shell
+commands.
+
+WWW: https://github.com/adsr/mle
More information about the svn-ports-all
mailing list