[140254] trunk/dports/devel/lua-luasec

devans at macports.org devans at macports.org
Mon Sep 14 09:47:56 PDT 2015


Revision: 140254
          https://trac.macports.org/changeset/140254
Author:   devans at macports.org
Date:     2015-09-14 09:47:56 -0700 (Mon, 14 Sep 2015)
Log Message:
-----------
lua-luasec: switch to github repository and update to version 0.6alpha for lua 5.3 compatibility, update descriptions, dependencies, configuration, replace dead homepage with github default.

Modified Paths:
--------------
    trunk/dports/devel/lua-luasec/Portfile
    trunk/dports/devel/lua-luasec/files/patch-Makefile.diff

Added Paths:
-----------
    trunk/dports/devel/lua-luasec/files/patch-src-Makefile.diff

Modified: trunk/dports/devel/lua-luasec/Portfile
===================================================================
--- trunk/dports/devel/lua-luasec/Portfile	2015-09-14 16:46:13 UTC (rev 140253)
+++ trunk/dports/devel/lua-luasec/Portfile	2015-09-14 16:47:56 UTC (rev 140254)
@@ -2,38 +2,46 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           github 1.0
 
+github.setup        brunoos luasec 0.6alpha luasec-
 name                lua-luasec
-version             0.4
 categories          devel
 license             MIT
 maintainers         nomaintainer
 platforms           darwin
-description         LuaSec is a binding for OpenSSL library to provide TLS/SSL communication
-long_description    LuaSec is a binding for OpenSSL library to provide TLS/SSL \
-                    communication. This version delegates to LuaSocket the TCP connection \
-                    establishment between the client and server. Then LuaSec uses this \
-                    connection to start a secure TLS/SSL session.
-homepage            http://luasec.luaforge.net/
+description         LuaSec depends on OpenSSL, and integrates with LuaSocket \
+                    to make it easy to add secure connections to any Lua \
+                    applications or scripts.
 
-master_sites        http://www.inf.puc-rio.br/~brunoos/luasec/download/
-distname            luasec-${version}
-checksums           md5     712158d60207bdbb6215fc7e07d8db24 \
-                    sha1    b7fe55fd2a75e0233c1d5bd858e48366422901d6 \
-                    rmd160  61b613ac8d767545a327adc88f1dce70ceb8f64b
+long_description    ${description} \
+                    This version includes a new X509 certificate API.
 
-patch.pre_args      -p1
-patchfiles          patch-Makefile.diff
-post-patch {
-    reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/Makefile
-}
+checksums           rmd160  1944ed72f389d85f785093d1ea12b6c4e7a2c685 \
+                    sha256  35dd386d7faf3f66b4e540fe48984eee1b7118c149429cded0971cf532c27c6f
 
+# builds with bundled copy of LuaSocket by default
+# so dependency on lua-luasocket is not necessary.
+
+depends_lib         port:lua \
+                    port:openssl
+
+patchfiles          patch-Makefile.diff \
+                    patch-src-Makefile.diff
+
 use_configure       no
+universal_variant   no
 
-depends_lib         port:lua
+set lua_version     5.3
+set lua_path        ${prefix}/share/lua/${lua_version}
+set lua_cpath       ${prefix}/lib/lua/${lua_version}
+
 build.target        macosx
-build.env           INCDIR=-I${prefix}/include LIBDIR=-L${prefix}/lib
-pre-destroot {
-    xinstall -d ${destroot}${prefix}/lib/lua/5.1
-    xinstall -d ${destroot}${prefix}/share/lua/5.1
-}
+build.env           CC="${configure.cc} [get_canonical_archflags]" \
+                    INC_PATH=-I${prefix}/include \
+                    LIB_PATH=-L${prefix}/lib \
+                    LUAPATH=${lua_path} \
+                    LUACPATH=${lua_cpath}
+
+destroot.env        LUAPATH=${lua_path} \
+                    LUACPATH=${lua_cpath}

Modified: trunk/dports/devel/lua-luasec/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-luasec/files/patch-Makefile.diff	2015-09-14 16:46:13 UTC (rev 140253)
+++ trunk/dports/devel/lua-luasec/files/patch-Makefile.diff	2015-09-14 16:47:56 UTC (rev 140254)
@@ -1,21 +1,20 @@
-diff -ur luasec-0.4.orig/Makefile luasec-0.4/Makefile
---- luasec-0.4.orig/Makefile	2009-10-15 14:59:54.000000000 +0200
-+++ luasec-0.4/Makefile	2010-01-28 11:37:40.000000000 +0100
+--- Makefile.orig	2015-08-28 12:30:26.000000000 -0700
++++ Makefile	2015-09-13 15:04:01.000000000 -0700
 @@ -1,6 +1,6 @@
  # Inform the location to intall the modules
--LUAPATH=/usr/local/share/lua/5.1
--LUACPATH=/usr/local/lib/lua/5.1
-+LUAPATH=$(DESTDIR)%%PREFIX%%/share/lua/5.1
-+LUACPATH=$(DESTDIR)%%PREFIX%%/lib/lua/5.1
+-LUAPATH  ?= /usr/share/lua/5.1
+-LUACPATH ?= /usr/lib/lua/5.1
++# LUAPATH  ?= /usr/share/lua/5.1
++# LUACPATH ?= /usr/lib/lua/5.1
  
- # Edit the lines below to inform new path, if necessary
- #
-@@ -8,7 +8,7 @@
- #LIBDIR=-L/usr/local/openssl-0.9.8/lib -R/usr/local/openssl-0.9.8/lib
+ # Compile with build-in LuaSocket's help files.
+ # Comment this lines if you will link with non-internal LuaSocket's help files
+@@ -16,7 +16,7 @@
+ LIBDIR    = -L./luasocket $(LIB_PATH)
  
  # For Mac OS X: set the system version
 -MACOSX_VERSION=10.4
 +MACOSX_VERSION=10.5
  
- DEFS=-DBUFFER_DEBUG
- 
+ #----------------------
+ # Do not edit this part

Added: trunk/dports/devel/lua-luasec/files/patch-src-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-luasec/files/patch-src-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/lua-luasec/files/patch-src-Makefile.diff	2015-09-14 16:47:56 UTC (rev 140254)
@@ -0,0 +1,27 @@
+--- src/Makefile.orig	2015-08-28 12:30:26.000000000 -0700
++++ src/Makefile	2015-09-14 06:21:19.000000000 -0700
+@@ -21,8 +21,7 @@
+ MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
+ 
+ INSTALL  = install
+-CC       = cc
+-LD       = $(MYENV) cc
++LD       = $(MYENV) $(CC)
+ CFLAGS  += $(MYCFLAGS)
+ LDFLAGS += $(MYLDFLAGS)
+ 
+@@ -31,10 +30,10 @@
+ all:
+ 
+ install: $(CMOD) $(LMOD)
+-	$(INSTALL) -d $(LUAPATH)/ssl $(LUACPATH)
+-	$(INSTALL) $(CMOD) $(LUACPATH)
+-	$(INSTALL) -m644 $(LMOD) $(LUAPATH)
+-	$(INSTALL) -m644 https.lua $(LUAPATH)/ssl
++	$(INSTALL) -d $(DESTDIR)$(LUAPATH)/ssl $(DESTDIR)$(LUACPATH)
++	$(INSTALL) $(CMOD) $(DESTDIR)$(LUACPATH)
++	$(INSTALL) -m644 $(LMOD) $(DESTDIR)$(LUAPATH)
++	$(INSTALL) -m644 https.lua $(DESTDIR)$(LUAPATH)/ssl
+ 
+ linux:
+ 	@$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)" EXTRA="$(EXTRA)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150914/a998185f/attachment.html>


More information about the macports-changes mailing list