Lines 2-8
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= mle |
3 |
PORTNAME= mle |
4 |
DISTVERSIONPREFIX= v |
4 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSION= 1.4.3 |
5 |
DISTVERSION= 1.5.0 |
6 |
CATEGORIES= editors |
6 |
CATEGORIES= editors |
7 |
|
7 |
|
8 |
MAINTAINER= as@php.net |
8 |
MAINTAINER= as@php.net |
Lines 12-25
LICENSE= APACHE20
Link Here
|
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
13 |
|
14 |
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash |
14 |
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash |
15 |
LIB_DEPENDS= libpcre.so:devel/pcre \ |
15 |
LIB_DEPENDS= libpcre.so:devel/pcre |
16 |
libtermbox.so:devel/termbox |
|
|
17 |
TEST_DEPENDS= ${LOCALBASE}/bin/gpaste:sysutils/coreutils \ |
16 |
TEST_DEPENDS= ${LOCALBASE}/bin/gpaste:sysutils/coreutils \ |
18 |
${LOCALBASE}/bin/grep:textproc/gnugrep \ |
17 |
${LOCALBASE}/bin/grep:textproc/gnugrep \ |
19 |
bash:shells/bash \ |
18 |
bash:shells/bash \ |
20 |
gfind:misc/findutils |
19 |
gfind:misc/findutils |
21 |
|
20 |
|
22 |
USES= compiler:c11 gmake localbase:ldflags shebangfix lua:53 |
21 |
USES= compiler:c11 gmake localbase:ldflags shebangfix lua:54 |
23 |
SHEBANG_FILES= tests/func/*.sh tests/run.sh |
22 |
SHEBANG_FILES= tests/func/*.sh tests/run.sh |
24 |
USE_GITHUB= yes |
23 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= adsr |
24 |
GH_ACCOUNT= adsr |
Lines 28-37
PLIST_FILES= bin/mle
Link Here
|
28 |
TEST_TARGET= test |
27 |
TEST_TARGET= test |
29 |
|
28 |
|
30 |
post-patch: |
29 |
post-patch: |
31 |
@${REINPLACE_CMD} -e 's|lua5.3|lua53|g' ${WRKSRC}/mle.h |
30 |
@${REINPLACE_CMD} -e 's|lua5.4|lua54|g' ${WRKSRC}/mle.h |
32 |
@${REINPLACE_CMD} -e 's|lua5.3|lua-5.3|g' ${WRKSRC}/Makefile |
31 |
@${REINPLACE_CMD} -e 's|lua5.4|lua-5.4|g' ${WRKSRC}/Makefile |
|
|
32 |
@${REINPLACE_CMD} -e 's|-O0|-O2|g' ${WRKSRC}/Makefile |
33 |
|
33 |
|
34 |
# Tests. |
34 |
# Fix shell commands in tests |
35 |
@${REINPLACE_CMD} -e 's|find|gfind|g' \ |
35 |
@${REINPLACE_CMD} -e 's|find|gfind|g' \ |
36 |
-e 's|grep|${LOCALBASE}/bin/grep|g' \ |
36 |
-e 's|grep|${LOCALBASE}/bin/grep|g' \ |
37 |
${WRKSRC}/tests/run.sh \ |
37 |
${WRKSRC}/tests/run.sh \ |
Lines 39-44
post-patch:
Link Here
|
39 |
@${REINPLACE_CMD} -e 's|p a s t e|g p a s t e|g' \ |
39 |
@${REINPLACE_CMD} -e 's|p a s t e|g p a s t e|g' \ |
40 |
${WRKSRC}/tests/func/test_lua.sh |
40 |
${WRKSRC}/tests/func/test_lua.sh |
41 |
|
41 |
|
|
|
42 |
# Remove assertion that relies on UTF-8 codeset (fixed upstream) |
43 |
@${REINPLACE_CMD} -e '/0wv/d' \ |
44 |
${WRKSRC}/tests/unit/test_bline_insert.c |
45 |
|
46 |
# Remove assertions that rely on GNU tooling output |
47 |
@${REINPLACE_CMD} -e '/shell_line/d' \ |
48 |
${WRKSRC}/tests/func/test_multi_cursor.sh |
49 |
@${REINPLACE_CMD} -e '/byte_count/d' \ |
50 |
${WRKSRC}/tests/func/test_coarse_undo.sh |
51 |
|
42 |
do-install: |
52 |
do-install: |
43 |
${INSTALL_PROGRAM} ${WRKSRC}/mle ${STAGEDIR}${PREFIX}/bin |
53 |
${INSTALL_PROGRAM} ${WRKSRC}/mle ${STAGEDIR}${PREFIX}/bin |
44 |
|
54 |
|