Date: Mon, 1 Apr 2013 09:50:40 GMT From: "Sergey V. Dyatko" <sergey.dyatko@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/177541: [new port] devel/lunit unit testing framework for lua written in lua Message-ID: <201304010950.r319oeuv038945@red.freebsd.org> Resent-Message-ID: <201304011000.r31A00hX020041@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177541 >Category: ports >Synopsis: [new port] devel/lunit unit testing framework for lua written in lua >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Apr 01 10:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sergey V. Dyatko >Release: >Organization: >Environment: FreeBSD laptop.minsk.domain 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r248421M: Sun Mar 17 17:45:37 UTC 2013 root@laptop.minsk.domain:/usr/obj/usr/src/sys/b450 amd64 >Description: Lunit is a unit testing framework for lua, written in lua. It provides currently 27 assert functions, 8 type checking functions and a few miscellaneous functions for usage as an easy unit testing framework. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # lunit/ # lunit/pkg-plist # lunit/pkg-descr # lunit/distinfo # lunit/Makefile # echo c - lunit/ mkdir -p lunit/ > /dev/null 2>&1 echo x - lunit/pkg-plist sed 's/^X//' >lunit/pkg-plist << '26664ac616657f1e08d55a872d62de87' Xbin/lunit X%%LUA_MODSHAREDIR%%/lunit-tests.lua X%%LUA_MODSHAREDIR%%/lunit-console.lua X%%LUA_MODSHAREDIR%%/lunit.lua X%%PORTDOCS%%%%DOCSDIR%%/DOCUMENTATION X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.lua X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% X%%PORTDOCS%%@dirrm %%DOCSDIR%% 26664ac616657f1e08d55a872d62de87 echo x - lunit/pkg-descr sed 's/^X//' >lunit/pkg-descr << '9b76e05cb82c2f1218c72aa0655fd531' XLunit is a unit testing framework for lua, written in lua. It provides currently X27 assert functions, 8 type checking functions and a few miscellaneous functions Xfor usage as an easy unit testing framework. X XWWW: http://www.mroth.net/lunit/ 9b76e05cb82c2f1218c72aa0655fd531 echo x - lunit/distinfo sed 's/^X//' >lunit/distinfo << '7e980f639d5e8eeb7f996b142d1629fe' XSHA256 (lunit-0.5.tar.gz) = 36abb8c4f8a3602c7c2b043d5b3612c2836a637ad504b58041acac1ddccb1852 XSIZE (lunit-0.5.tar.gz) = 13528 7e980f639d5e8eeb7f996b142d1629fe echo x - lunit/Makefile sed 's/^X//' >lunit/Makefile << '5c6dc22daf0f8e26cfd36f59f5acafdd' X# Created by: Sergey V. Dyatko <sergey.dyatko@gmail.com> X# $FreeBSD$ X XPORTNAME= lunit XPORTVERSION= 0.5 XCATEGORIES= devel XMASTER_SITES= http://www.mroth.net/${PORTNAME}/ X XMAINTAINER= sergey.dyatko@gmail.com XCOMMENT= Unit Testing Framework for Lua X XLICENSE= MIT X XUSE_LUA= 5.1 X XDOCFILES= DOCUMENTATION README XEXAMPLES= example.lua XLUNIT_FILES= lunit-console.lua lunit-tests.lua lunit.lua X XNO_BUILD= yes X XOPTIONS_DEFINE= DOCS EXAMPLES X X.include <bsd.port.options.mk> X X.if ${ARCH} == "amd64" XCFLAGS+= -fPIC X.endif X XLUA_MODLIBDIR= ${PREFIX}/lib/lua/${LUA_VER}/${PORTNAME} X Xpre-install: X ${REINPLACE_CMD} -e 's|"lua"|"${LUA_CMD}"|g' ${WRKSRC}/lunit X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${LOCALBASE}/bin X ${MKDIR} ${LUA_MODLIBDIR} X X.for lunit_part in ${LUNIT_FILES} X ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${LUA_MODSHAREDIR} X.endfor X X.if ${PORT_OPTIONS:MDOCS} X ${MKDIR} ${DOCSDIR} X.for f in ${DOCFILES} X ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ X.endfor X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}" X.endif X X.if ${PORT_OPTIONS:MEXAMPLES} X ${MKDIR} ${EXAMPLESDIR} X ${INSTALL_DATA} ${WRKSRC}/example.lua ${EXAMPLESDIR} X @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}" X.endif X X.include <bsd.port.mk> 5c6dc22daf0f8e26cfd36f59f5acafdd exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304010950.r319oeuv038945>