Index: head/devel/tig/Makefile =================================================================== --- head/devel/tig/Makefile (revision 517986) +++ head/devel/tig/Makefile (revision 517987) @@ -1,38 +1,46 @@ # Created by: Denise H. G. # $FreeBSD$ PORTNAME= tig PORTVERSION= 2.5.0 CATEGORIES= devel MASTER_SITES= https://github.com/jonas/tig/releases/download/${DISTNAME}/ MAINTAINER= tobik@FreeBSD.org COMMENT= Text-mode interface for git LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING +TEST_DEPENDS= git:devel/git + USES= iconv gmake ncurses readline:port GNU_CONFIGURE= yes CONFIGURE_ARGS= ${ICONV_CONFIGURE_BASE} MAKE_ARGS= V=1 INSTALL_TARGET= install install-doc-man PLIST_FILES= bin/tig \ etc/tigrc \ man/man1/tig.1.gz \ man/man5/tigrc.5.gz \ man/man7/tigmanual.7.gz OPTIONS_DEFINE= GIT GIT_DESC= Install devel/git as runtime dependency GIT_RUN_DEPENDS= git:devel/git GIT_VARS_OFF= PKGMESSAGE="${.CURDIR}/pkg-message-git" post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tig + +do-test: +# Tests fail when running as part of a non-interactive Poudriere +# build, but using script(1) seems to be a good enough workaround and +# allows them to run successfully anyway. + @/usr/bin/script -q /dev/null ${GMAKE} -C ${WRKSRC} test .include