From owner-svn-ports-all@FreeBSD.ORG Thu Jun 6 22:03:21 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 95F98980; Thu, 6 Jun 2013 22:03:21 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 87FD217E6; Thu, 6 Jun 2013 22:03:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r56M3LYo020670; Thu, 6 Jun 2013 22:03:21 GMT (envelope-from mandree@svn.freebsd.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r56M3Kp8020665; Thu, 6 Jun 2013 22:03:20 GMT (envelope-from mandree@svn.freebsd.org) Message-Id: <201306062203.r56M3Kp8020665@svn.freebsd.org> From: Matthias Andree Date: Thu, 6 Jun 2013 22:03:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r320131 - head/devel/lua-lunit X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jun 2013 22:03:21 -0000 Author: mandree Date: Thu Jun 6 22:03:20 2013 New Revision: 320131 URL: http://svnweb.freebsd.org/changeset/ports/320131 Log: Add a new port devel/lua-lunit, maintained by Sergey V. Dyatko (submitter). 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. The PKGNAMEPREFIX= lua- was approved of by Sergey V. Dyatko in private mail. Further changes over his submission are: - LUA_MODLIBDIR= ${PREFIX}/lib/lua/${LUA_VER}/${PORTNAME} removed (shadows lua framework setting) - remove ${MKDIR} ${LUA_MODLIBDIR} - we don't install any files there - change installation destionation from LOCALBASE to PREFIX, and create directory first PR: ports/177541 Submitted by: Sergey V. Dyatko Added: head/devel/lua-lunit/ head/devel/lua-lunit/Makefile (contents, props changed) head/devel/lua-lunit/distinfo (contents, props changed) head/devel/lua-lunit/pkg-descr (contents, props changed) head/devel/lua-lunit/pkg-plist (contents, props changed) Added: head/devel/lua-lunit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-lunit/Makefile Thu Jun 6 22:03:20 2013 (r320131) @@ -0,0 +1,56 @@ +# Created by: Sergey V. Dyatko +# $FreeBSD$ + +PORTNAME= lunit +PORTVERSION= 0.5 +CATEGORIES= devel +MASTER_SITES= http://www.mroth.net/${PORTNAME}/ +PKGNAMEPREFIX= lua- + +MAINTAINER= sergey.dyatko@gmail.com +COMMENT= Unit Testing Framework for Lua + +LICENSE= MIT + +USE_LUA= 5.1 + +DOCFILES= DOCUMENTATION README +EXAMPLES= example.lua +LUNIT_FILES= lunit-console.lua lunit-tests.lua lunit.lua + +NO_BUILD= yes + +OPTIONS_DEFINE= DOCS EXAMPLES + +.include + +.if ${ARCH} == "amd64" +CFLAGS+= -fPIC +.endif + +pre-install: + ${REINPLACE_CMD} -e 's|"lua"|"${LUA_CMD}"|g' ${WRKSRC}/lunit + +do-install: + ${MKDIR} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${PREFIX}/bin + +.for lunit_part in ${LUNIT_FILES} + ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${LUA_MODSHAREDIR} +.endfor + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} +.for f in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}" +.endif + +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example.lua ${EXAMPLESDIR} + @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}" +.endif + +.include Added: head/devel/lua-lunit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-lunit/distinfo Thu Jun 6 22:03:20 2013 (r320131) @@ -0,0 +1,2 @@ +SHA256 (lunit-0.5.tar.gz) = 36abb8c4f8a3602c7c2b043d5b3612c2836a637ad504b58041acac1ddccb1852 +SIZE (lunit-0.5.tar.gz) = 13528 Added: head/devel/lua-lunit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-lunit/pkg-descr Thu Jun 6 22:03:20 2013 (r320131) @@ -0,0 +1,5 @@ +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. + +WWW: http://www.mroth.net/lunit/ Added: head/devel/lua-lunit/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-lunit/pkg-plist Thu Jun 6 22:03:20 2013 (r320131) @@ -0,0 +1,9 @@ +bin/lunit +%%LUA_MODSHAREDIR%%/lunit-tests.lua +%%LUA_MODSHAREDIR%%/lunit-console.lua +%%LUA_MODSHAREDIR%%/lunit.lua +%%PORTDOCS%%%%DOCSDIR%%/DOCUMENTATION +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.lua +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%