Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2013 00:12:01 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310578 - in head/devel/luafilesystem: . files
Message-ID:  <201301180012.r0I0C15H060610@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mandree
Date: Fri Jan 18 00:12:00 2013
New Revision: 310578
URL: http://svnweb.freebsd.org/changeset/ports/310578

Log:
  - Update to 1.5.0 [1].
  - Reset maintainer [2], awaiting submitter's feedback if he wants to
    become the new maintainer.
  - Convert header comments.
  - Add a MAKE_ARGS+= to help builds where LOCALBASE != PREFIX
  
  PR:		ports/174453 [1] [2, Kelly's reply]
  Submitted by:	Green Dog <fiziologus@gmail.com>

Added:
  head/devel/luafilesystem/files/
  head/devel/luafilesystem/files/patch-Makefile   (contents, props changed)
  head/devel/luafilesystem/files/patch-config   (contents, props changed)
Modified:
  head/devel/luafilesystem/Makefile   (contents, props changed)
  head/devel/luafilesystem/distinfo   (contents, props changed)

Modified: head/devel/luafilesystem/Makefile
==============================================================================
--- head/devel/luafilesystem/Makefile	Fri Jan 18 00:01:09 2013	(r310577)
+++ head/devel/luafilesystem/Makefile	Fri Jan 18 00:12:00 2013	(r310578)
@@ -1,41 +1,44 @@
-# New ports collection makefile for:   luafilesystem
-# Date created:                        28 Mar 2010
-# Whom:                                Kelly Hays <kelly.hays@jkhfamily.org>
-#
+# Created by: Kelly Hays <kelly.hays@jkhfamily.org>
 # $FreeBSD$
-#
 
 PORTNAME=	luafilesystem
-PORTVERSION=	1.4.2
+PORTVERSION=	1.5.0
 CATEGORIES=	devel
-MASTER_SITES=	http://luaforge.net/frs/download.php/3931/
+MASTER_SITES=	GH
 PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
 
-MAINTAINER=	kelly.hays@jkhfamily.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library to access directory structure and file attributes
 
 LICENSE=	MIT
 
 USE_LUA=	5.1
 
+USE_GITHUB=	yes
+GH_ACCOUNT=	keplerproject
+GH_PROGECT=	${PORTNAME}
+GH_TAGNAME=	v${PORTVERSION}
+GH_COMMIT=	8ff2013
+
+ALL_TARGET=	lib
+
 PLIST_FILES=	%%LUA_MODLIBDIR%%/lfs.so
 PORTDOCS=	*
 
-do-build:
-	cd ${WRKSRC}/src && \
-		${CC} -O2 -Wall -fPIC -W -Waggregate-return \
-		-Wcast-align -Wmissing-prototypes -Wnested-externs \
-		-Wshadow -Wwrite-strings -pedantic -shared \
-		-o lfs.so lfs.c -I${LUA_INCDIR}
+MAKE_ARGS+=	INCS="-I${LOCALBASE}/include/${LUA_SUBDIR}"
 
-do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/src/lfs.so ${LUA_MODLIBDIR}
+.include <bsd.port.options.mk>
 
-post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	(cd ${WRKSRC}/doc/us/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
+post-patch:
+	${REINPLACE_CMD} -e \
+		"s|%%PREFIX%%|${PREFIX}| ; \
+		s|%%MODLIBDIR%%|${LUA_MODLIBDIR}| ; \
+		s|%%INCDIR%%|${LUA_INCDIR}|" ${WRKSRC}/config
 
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR} && \
+	${CP} ${WRKSRC}/doc/us/* ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/devel/luafilesystem/distinfo
==============================================================================
--- head/devel/luafilesystem/distinfo	Fri Jan 18 00:01:09 2013	(r310577)
+++ head/devel/luafilesystem/distinfo	Fri Jan 18 00:12:00 2013	(r310578)
@@ -1,2 +1,2 @@
-SHA256 (luafilesystem-1.4.2.tar.gz) = 954d19f16d5f97cbd7b09893cbad7f42af44770930f5c1caec80d0b04547121a
-SIZE (luafilesystem-1.4.2.tar.gz) = 25408
+SHA256 (luafilesystem-1.5.0.tar.gz) = d748d796c513a3392b6e66e7ecd8477a9d3d364ddae8456d9b7502bb7c0abce8
+SIZE (luafilesystem-1.5.0.tar.gz) = 26672

Added: head/devel/luafilesystem/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/luafilesystem/files/patch-Makefile	Fri Jan 18 00:12:00 2013	(r310578)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2009-10-21 00:54:35.000000000 +0400
++++ Makefile	2012-12-15 17:30:48.000000000 +0400
+@@ -12,7 +12,7 @@
+ lib: src/lfs.so
+ 
+ src/lfs.so: $(OBJS)
+-	MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
++	$(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $T.o
+ 
+ install:
+ 	mkdir -p $(LUA_LIBDIR)

Added: head/devel/luafilesystem/files/patch-config
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/luafilesystem/files/patch-config	Fri Jan 18 00:12:00 2013	(r310578)
@@ -0,0 +1,31 @@
+--- config.orig	2009-10-21 00:54:35.000000000 +0400
++++ config	2012-12-15 17:36:31.000000000 +0400
+@@ -1,22 +1,22 @@
+ # Installation directories
+ 
+ # Default installation prefix
+-PREFIX=/usr/local
++PREFIX=%%PREFIX%%
+ 
+ # System's libraries directory (where binary libraries are installed)
+-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
++LUA_LIBDIR= %%MODLIBDIR%%
+ 
+ # Lua includes directory
+-LUA_INC= $(PREFIX)/include
++LUA_INC= %%INCDIR%%
+ 
+ # OS dependent
+ LIB_OPTION= -shared #for Linux
+ #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+ 
+-LIBNAME= $T.so.$V
++LIBNAME= $T.so
+ 
+ # Compilation directives
+ WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
+ INCS= -I$(LUA_INC)
+-CFLAGS= $(WARN) $(INCS)
+-CC= gcc
++CFLAGS+= $(WARN) $(INCS)
++CC?= gcc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301180012.r0I0C15H060610>