aboutsummaryrefslogtreecommitdiff
path: root/textproc/msort
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-01 14:05:30 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-01 14:05:30 +0000
commit112d7924ccbe2c6b9566e84b86b4ac26cf52fb73 (patch)
treeacc04edc6cdb55e572d4d1913d69607d1a7acaee /textproc/msort
parentd150412ab337009d6515c43e3ec03545b3d71ed9 (diff)
downloadports-112d7924ccbe2c6b9566e84b86b4ac26cf52fb73.tar.gz
ports-112d7924ccbe2c6b9566e84b86b4ac26cf52fb73.zip
- Add LICENSE_FILE
- Switch to new test system (note that some tests fail)
Notes
Notes: svn path=/head/; revision=402741
Diffstat (limited to 'textproc/msort')
-rw-r--r--textproc/msort/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/textproc/msort/Makefile b/textproc/msort/Makefile
index 1be250d026e6..6d16dd2d8dff 100644
--- a/textproc/msort/Makefile
+++ b/textproc/msort/Makefile
@@ -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>