Index: editors/Makefile =================================================================== --- editors/Makefile +++ editors/Makefile @@ -188,6 +188,7 @@ SUBDIR += mg SUBDIR += micro SUBDIR += mined + SUBDIR += mle SUBDIR += morla SUBDIR += mousepad SUBDIR += mp Index: editors/mle/Makefile =================================================================== --- /dev/null +++ editors/mle/Makefile @@ -0,0 +1,46 @@ +# Created by: Adam Saponara +# $FreeBSD$ + +PORTNAME= mle +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.0 +CATEGORIES= editors + +MAINTAINER= as@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= libpcre.so:devel/pcre \ + liblua-5.3.so:lang/lua53 \ + libtermbox.so:devel/termbox +TEST_DEPENDS= bash:shells/bash \ + gfind:misc/findutils \ + ${LOCALBASE}/bin/grep:textproc/gnugrep \ + ${LOCALBASE}/bin/gpaste:sysutils/coreutils + +USES= gmake localbase:ldflags shebangfix +SHEBANG_FILES= tests/run.sh tests/func/*.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 + @${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 + @${FIND} ${WRKSRC}/tests -name '*.sh.bak' -delete + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mle ${STAGEDIR}${PREFIX}/bin + +.include Index: editors/mle/distinfo =================================================================== --- /dev/null +++ editors/mle/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1568707613 +SHA256 (adsr-mle-v1.4.0_GH0.tar.gz) = c186fd8ffa756f26e48dfef818e5e40345dab53f60e73cce92caa81b6512cd5c +SIZE (adsr-mle-v1.4.0_GH0.tar.gz) = 104956 Index: editors/mle/pkg-descr =================================================================== --- /dev/null +++ editors/mle/pkg-descr @@ -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