From owner-svn-ports-head@freebsd.org Wed Aug 15 19:34:25 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62ACB106DC5D; Wed, 15 Aug 2018 19:34:25 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17AD5768D6; Wed, 15 Aug 2018 19:34:19 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EDD9F6E7B; Wed, 15 Aug 2018 19:34:18 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7FJYIgc028398; Wed, 15 Aug 2018 19:34:18 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7FJYIFB028396; Wed, 15 Aug 2018 19:34:18 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201808151934.w7FJYIFB028396@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 15 Aug 2018 19:34:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477276 - in head/devel/lua-bitop: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel/lua-bitop: . files X-SVN-Commit-Revision: 477276 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2018 19:34:25 -0000 Author: sunpoet Date: Wed Aug 15 19:34:18 2018 New Revision: 477276 URL: https://svnweb.freebsd.org/changeset/ports/477276 Log: Fix CFLAGS and test - Bump PORTREVISION for package change PR: 230205 Submitted by: Andrew Gierth Added: head/devel/lua-bitop/files/ head/devel/lua-bitop/files/extra-patch-bittest.lua (contents, props changed) Modified: head/devel/lua-bitop/Makefile Modified: head/devel/lua-bitop/Makefile ============================================================================== --- head/devel/lua-bitop/Makefile Wed Aug 15 19:34:12 2018 (r477275) +++ head/devel/lua-bitop/Makefile Wed Aug 15 19:34:18 2018 (r477276) @@ -3,26 +3,34 @@ PORTNAME= bitop PORTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://bitop.luajit.org/download/ \ LOCAL/sunpoet -DISTNAME= LuaBitOp-${PORTVERSION} PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} +DISTNAME= LuaBitOp-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Bitwise operations on numbers LICENSE= MIT -CFLAGS+= -DLUA_NUMBER_LONG_LONG -I${LUA_INCDIR} +CFLAGS+= -I${LUA_INCDIR} MAKE_ARGS= CC=${CC} LUA=${LUA_CMD} TEST_TARGET= test USES?= gmake lua -PLIST_FILES= %%LUA_MODLIBDIR%%/bit.so +PLIST_FILES= ${LUA_MODLIBDIR}/bit.so +.include + +.if ${LUA_VER_STR} >= 53 +CFLAGS+= -DLUA_NUMBER_DOUBLE +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bittest.lua +.endif + do-install: ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/ ${INSTALL_LIB} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}/ -.include +.include Added: head/devel/lua-bitop/files/extra-patch-bittest.lua ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lua-bitop/files/extra-patch-bittest.lua Wed Aug 15 19:34:18 2018 (r477276) @@ -0,0 +1,13 @@ +--- bittest.lua.orig 2012-05-08 19:15:00 UTC ++++ bittest.lua +@@ -8,6 +8,10 @@ local vb = { + 0x7fffffff, 0x80000000, 0xffffffff + } + ++local function tostring(n) ++ return type(n) == "string" and n or string.format("%.11g", n) ++end ++ + local function cksum(name, s, r) + local z = 0 + for i=1,#s do z = (z + string.byte(s, i)*i) % 2147483629 end