mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
0e66f42601
It looks like modernish requires /dev/tty to be available during the installation as it tries to run its install-time test suite. A solution to that is wrapping ./install.sh with script(1) to make a TTY available. Interestingly, if we replace script(1) with daemon(8), we can reproduce the error present in the pkg fallout logs.
30 lines
674 B
Makefile
30 lines
674 B
Makefile
PORTNAME= modernish
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.16.5
|
|
CATEGORIES= shells
|
|
|
|
MAINTAINER= 0mp@FreeBSD.org
|
|
COMMENT= POSIX shell feature detection and language extension library
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USE_GITHUB= yes
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} script -q /dev/stdout \
|
|
${SH} -x ./install.sh -d ${PREFIX} -D ${STAGEDIR} -n -s ${SH}
|
|
|
|
${RM} ${STAGEDIR}${DOCSDIR}/LICENSE
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR:H}
|
|
${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR}
|
|
${RLN} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}/examples
|
|
|
|
.include <bsd.port.mk>
|