[89853] trunk/dports/devel

and.damore at macports.org and.damore at macports.org
Mon Feb 13 02:56:32 PST 2012


Revision: 89853
          http://trac.macports.org/changeset/89853
Author:   and.damore at macports.org
Date:     2012-02-13 02:56:30 -0800 (Mon, 13 Feb 2012)
Log Message:
-----------
new port: lua-rings, Lua library to create new Lua state. Needed for WSAPI

Added Paths:
-----------
    trunk/dports/devel/lua-rings/
    trunk/dports/devel/lua-rings/Portfile
    trunk/dports/devel/lua-rings/files/
    trunk/dports/devel/lua-rings/files/patch-config.diff

Added: trunk/dports/devel/lua-rings/Portfile
===================================================================
--- trunk/dports/devel/lua-rings/Portfile	                        (rev 0)
+++ trunk/dports/devel/lua-rings/Portfile	2012-02-13 10:56:30 UTC (rev 89853)
@@ -0,0 +1,35 @@
+# $Id$
+PortSystem          1.0
+
+PortGroup           github 1.0 
+github.setup        keplerproject rings 1.2.3
+github.tarball_from downloads
+
+name                lua-rings
+version             1.2.2
+license             MIT
+categories          devel
+maintainers         and.damore openmaintainer
+platforms           darwin
+description         Multiple Lua States
+long_description    Rings is a library which provides a way to create new Lua states from \
+					within Lua. It also offers a simple way to communicate between the \
+					creator (master) and the created (slave) states.
+
+depends_lib         port:lua
+checksums           md5     cba2e8a961fa4f76ebf4972c6044e824 \
+                    sha1    788234fb446ee2415fd4be894eb4ad65ef9b2662 \
+                    rmd160  3ff0989ec77c39f3711e97af2886e548254f6af1
+
+# package configure script is not from autotools and only searches for lua binary prefix
+# we patch it and force it to ${prefix}
+patchfiles          patch-config.diff
+post-patch {
+    reinplace   "s|%PREFIX%|${prefix}|"             ${worksrcpath}/config
+    reinplace "s|%COMPILER%|${configure.compiler}|" ${worksrcpath}/config
+}
+
+# it is needed to manually set flags env variable as well
+build.env-append    CFLAGS="${configure.cflags}" \
+                    LDFLAGS="${configure.ldflags} -llua -lm" 
+


Property changes on: trunk/dports/devel/lua-rings/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/lua-rings/files/patch-config.diff
===================================================================
--- trunk/dports/devel/lua-rings/files/patch-config.diff	                        (rev 0)
+++ trunk/dports/devel/lua-rings/files/patch-config.diff	2012-02-13 10:56:30 UTC (rev 89853)
@@ -0,0 +1,38 @@
+--- config.orig	2012-02-13 11:48:55.000000000 +0100
++++ config	2012-02-13 11:51:37.000000000 +0100
+@@ -1,27 +1,27 @@
+ # Installation directories
+ 
+ # Default prefix
+-PREFIX = /usr/local
++PREFIX = %PREFIX%
+ 
+ # System's libraries directory (where binary libraries are installed)
+-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
++LUA_LIBDIR= $(DESTDIR)$(PREFIX)/lib/lua/5.1
+ 
+ # System's lua directory (where Lua libraries are installed)
+-LUA_DIR= $(PREFIX)/share/lua/5.1
++LUA_DIR= $(DESTDIR)$(PREFIX)/share/lua/5.1
+ 
+ # Lua includes directory
+ LUA_INC= $(PREFIX)/include
+ 
+ # OS dependent
+-LIB_OPTION= -shared #for Linux
+-#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
++#LIB_OPTION= -shared #for Linux
++LIB_OPTION= $(LDFLAGS) -bundle -undefined dynamic_lookup
+ 
+ LIBNAME= $T.so.$V
+ 
+ # Compilation directives
+-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
++WARN= -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
+ INCS= -I$(LUA_INC)
+-CFLAGS= $(WARN) $(INCS)
+-CC= gcc
++CFLAGS+= $(WARN) $(INCS)
++CC= %COMPILER%
+ 
+ # $Id: config,v 1.7 2007/10/29 22:51:39 carregal Exp $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120213/c6ae8dc6/attachment.html>


More information about the macports-changes mailing list