From owner-svn-ports-all@FreeBSD.ORG Fri Jan 10 09:01:17 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1236FDF4; Fri, 10 Jan 2014 09:01:17 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D8D5A1638; Fri, 10 Jan 2014 09:01:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0A91GxG011820; Fri, 10 Jan 2014 09:01:16 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0A91GMC011819; Fri, 10 Jan 2014 09:01:16 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201401100901.s0A91GMC011819@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 10 Jan 2014 09:01:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r339334 - 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.17 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: Fri, 10 Jan 2014 09:01:17 -0000 Author: bapt Date: Fri Jan 10 09:01:16 2014 New Revision: 339334 URL: http://svnweb.freebsd.org/changeset/ports/339334 Log: Use lua 5.2 Modified: head/devel/lua-lunit/Makefile Modified: head/devel/lua-lunit/Makefile ============================================================================== --- head/devel/lua-lunit/Makefile Fri Jan 10 08:50:56 2014 (r339333) +++ head/devel/lua-lunit/Makefile Fri Jan 10 09:01:16 2014 (r339334) @@ -5,53 +5,39 @@ PORTNAME= lunit PORTVERSION= 0.5 CATEGORIES= devel MASTER_SITES= http://www.mroth.net/${PORTNAME}/ -PKGNAMEPREFIX= lua- +PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} MAINTAINER= sergey.dyatko@gmail.com COMMENT= Unit Testing Framework for Lua LICENSE= MIT -USE_LUA= 5.1 +OPTIONS_DEFINE= DOCS EXAMPLES + +USES= lua + +NO_BUILD= yes DOCFILES= DOCUMENTATION README EXAMPLES= example.lua LUNIT_FILES= lunit-console.lua lunit-tests.lua lunit.lua -NO_BUILD= yes - OPTIONS_DEFINE= DOCS EXAMPLES -NO_STAGE= yes -.include - -.if ${ARCH} == "amd64" -CFLAGS+= -fPIC -.endif - -pre-install: +post-patch: ${REINPLACE_CMD} -e 's|"lua"|"${LUA_CMD}"|g' ${WRKSRC}/lunit do-install: - ${MKDIR} ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${PREFIX}/bin - + ${INSTALL_SCRIPT} ${WRKSRC}/lunit ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR} .for lunit_part in ${LUNIT_FILES} - ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${LUA_MODSHAREDIR} + ${INSTALL_DATA} ${WRKSRC}/${lunit_part} ${STAGEDIR}${LUA_MODSHAREDIR} .endfor - -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${DOCFILES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${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 + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/example.lua ${STAGEDIR}${EXAMPLESDIR} .include