View | Details | Raw Unified | Return to bug 264337 | Differences between
and this patch

Collapse All | Expand All

(-)b/editors/mle/Makefile (-7 / +17 lines)
Lines 1-50 Link Here
1
# Created by: Adam Saponara <as@php.net>
1
# Created by: Adam Saponara <as@php.net>
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
9
COMMENT=	Small, flexible, terminal-based text editor
9
COMMENT=	Small, flexible, terminal-based text editor
10
10
11
LICENSE=	APACHE20
11
LICENSE=	APACHE20
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
26
25
27
PLIST_FILES=	bin/mle
26
PLIST_FILES=	bin/mle
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 \
38
		${WRKSRC}/tests/func/*.sh
38
		${WRKSRC}/tests/func/*.sh
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
45
pre-test:
55
pre-test:
46
	# Remove backup files generated by REINPLACE_CMD. Those must not exist
56
	# Remove backup files generated by REINPLACE_CMD. Those must not exist
47
	# for the tests to run properly.
57
	# for the tests to run properly.
48
	@${FIND} ${WRKSRC}/tests -name '*.sh.bak' -delete
58
	@${FIND} ${WRKSRC}/tests -name '*.sh.bak' -delete
49
59
50
.include <bsd.port.mk>
60
.include <bsd.port.mk>
(-)b/editors/mle/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1582636451
1
TIMESTAMP = 1654130400
2
SHA256 (adsr-mle-v1.4.3_GH0.tar.gz) = 452b14d63f7d3ccd98263baec2e4840e4093cc42d1f9cedeaf45151b89ac5ff6
2
SHA256 (adsr-mle-v1.5.0_GH0.tar.gz) = 569316485fa3775d0bb7559ac176a63adb29467c7098b14c0072c821feb6226b
3
SIZE (adsr-mle-v1.4.3_GH0.tar.gz) = 106221
3
SIZE (adsr-mle-v1.5.0_GH0.tar.gz) = 135463

Return to bug 264337