1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

- Add LICENSE_FILE

- Switch to new test system (note that some tests fail)
This commit is contained in:
Dmitry Marakasov 2015-12-01 14:05:30 +00:00
parent d150412ab3
commit 112d7924cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402741

View File

@ -11,11 +11,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Sorting files in sophisticated ways
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libtre.so:${PORTSDIR}/textproc/libtre \
libuninum.so:${PORTSDIR}/devel/libuninum \
libutf8proc.so:${PORTSDIR}/textproc/utf8proc
RUN_DEPENDS= iwidgets>=0:${PORTSDIR}/x11-toolkits/iwidgets
TEST_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
CONFIGURE_ENV= ac_cv_lib_tre_regwcomp=yes
CPPFLAGS+= -I${LOCALBASE}/include
@ -23,20 +25,13 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= INCLUDES="-I${LOCALBASE}/include"
GNU_CONFIGURE= yes
USES= gettext tk:wrapper,run
TEST_TARGET= test
TEST_ENV= LC_ALL=C
PLIST_FILES= bin/msg bin/msort man/man1/msort.1.gz
.ifdef(MAINTAINER_MODE)
BUILD_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
post-patch:
${REINPLACE_CMD} -e "s|bash|${LOCALBASE}/bin/bash|g" ${WRKSRC}/RegressionTests/Makefile
${REINPLACE_CMD} -e "s|msort|../&|g" ${WRKSRC}/RegressionTests/RunTests.sh \
${WRKSRC}/RegressionTests/RunLocaleTests.sh
test: build
@(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test)
.endif
@${REINPLACE_CMD} -e "s|bash|${LOCALBASE}/bin/bash|g" ${WRKSRC}/RegressionTests/Makefile
@${REINPLACE_CMD} -e "s|msort|../&|g" ${WRKSRC}/RegressionTests/RunTests.sh \
.include <bsd.port.mk>