ports/161002: [patch] devel/lua-alien: update to 0.5.1

h h aakuusta at gmail.com
Sun Sep 25 08:00:21 UTC 2011


>Number:         161002
>Category:       ports
>Synopsis:       [patch] devel/lua-alien: update to 0.5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 25 08:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     h h
>Release:        FreeBSD 9.0-BETA2 amd64
>Organization:
>Environment:
>Description:
- update
- better handle -fstack-protector in CFLAGS
- website moved to github
- move LICENSE to silence its portlint warning
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: devel/lua-alien/Makefile
===================================================================
RCS file: /a/.csup/ports/devel/lua-alien/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- devel/lua-alien/Makefile	19 Oct 2010 00:15:33 -0000	1.5
+++ devel/lua-alien/Makefile	25 Sep 2011 07:38:17 -0000
@@ -6,25 +6,37 @@
 #
 
 PORTNAME=	alien
-PORTVERSION=	0.5.0
+PORTVERSION=	0.5.1
 CATEGORIES=	devel
-MASTER_SITES=	http://alien.luaforge.net/
+MASTER_SITES=	http://nodeload.github.com/mascarenhas/alien/tarball/
 PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
+DISTFILES=	${DISTVERSION}
+DIST_SUBDIR=	lua-${PORTNAME}
 
 MAINTAINER=	swell.k at gmail.com
 COMMENT=	Lua -> C FFI
 
+LICENSE=	MIT
+
 LIB_DEPENDS=	ffi.5:${PORTSDIR}/devel/libffi
 
-LICENSE=	MIT
 USE_LUA=	5.1
 
+WRKSRC=		${WRKDIR}/${GITHUB_USER}-${PORTNAME}-${GITHUB_SRC_SUFX}
 CFLAGS+=	-I${LOCALBASE}/include -I${LUA_INCDIR} \
-		-DBSD -fPIC #-fno-stack-protector
+		-DBSD -fPIC
 LDFLAGS+=	-L${LOCALBASE}/lib -L${LUA_LIBDIR} -llua -shared
 MAKE_ENV+=	LIB_OPTION="${LDFLAGS}" LIB_EXT=".so" LUA="${LUA_CMD}"
 TESTS_EXCLUDE=	tests/alien tests/alien.lua
 
+GITHUB_USER=	mascarenhas
+GITHUB_SRC_SUFX=e667d5d
+
+.if ${CFLAGS:M-fstack-prot*}
+MAKE_ENV+=	__MAKE_CONF= # inherit CFLAGS only once
+CFLAGS+=	-fno-stack-protector
+.endif
+
 # add lua prefix to directories
 .for p in data: docs:doc/ examples:examples/
 ${p:C/:.*//:U}DIR_REL=	share/${p:C/.*://}${LUA_PKGNAMEPREFIX}${PORTNAME}
Index: devel/lua-alien/distinfo
===================================================================
RCS file: /a/.csup/ports/devel/lua-alien/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- devel/lua-alien/distinfo	3 Jul 2011 14:56:23 -0000	1.2
+++ devel/lua-alien/distinfo	25 Sep 2011 07:20:25 -0000
@@ -1,2 +1,2 @@
-SHA256 (alien-0.5.0.tar.gz) = a8ab957f1ced1242f4264a3d8b6ef4617a045900ea60b9e57a6abb0a6bd043c3
-SIZE (alien-0.5.0.tar.gz) = 766042
+SHA256 (lua-alien/0.5.1) = 5dadc6067f2495da2b78d0ba1fb27d8e33117c138dc76ae4cb500c9b9cd1a26b
+SIZE (lua-alien/0.5.1) = 775968
Index: devel/lua-alien/pkg-descr
===================================================================
RCS file: /a/.csup/ports/devel/lua-alien/pkg-descr,v
retrieving revision 1.1
diff -u -p -r1.1 pkg-descr
--- devel/lua-alien/pkg-descr	26 Aug 2010 10:49:27 -0000	1.1
+++ devel/lua-alien/pkg-descr	25 Sep 2011 06:34:46 -0000
@@ -1,4 +1,4 @@
 Alien lets a Lua application call load dynamic libraries and call C
 functions in a portable way, using libffi.
 
-WWW: http://alien.luaforge.net/
+WWW: http://mascarenhas.github.com/alien
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list