Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137413215
D21689.id62377.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D21689.id62377.diff
View Options
Index: head/editors/Makefile
===================================================================
--- head/editors/Makefile
+++ head/editors/Makefile
@@ -188,6 +188,7 @@
SUBDIR += mg
SUBDIR += micro
SUBDIR += mined
+ SUBDIR += mle
SUBDIR += morla
SUBDIR += mousepad
SUBDIR += mp
Index: head/editors/mle/Makefile
===================================================================
--- head/editors/mle/Makefile
+++ head/editors/mle/Makefile
@@ -0,0 +1,56 @@
+# Created by: Adam Saponara <as@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@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>
Index: head/editors/mle/distinfo
===================================================================
--- head/editors/mle/distinfo
+++ head/editors/mle/distinfo
@@ -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
Index: head/editors/mle/pkg-descr
===================================================================
--- head/editors/mle/pkg-descr
+++ head/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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 24, 5:34 AM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26049693
Default Alt Text
D21689.id62377.diff (3 KB)
Attached To
Mode
D21689: New port: editors/mle: Small, flexible, terminal-based text editor
Attached
Detach File
Event Timeline
Log In to Comment