pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/lua-copas Update net/lua-copas to version 2.0.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c492fd9193bf
branches:  trunk
changeset: 364815:c492fd9193bf
user:      alnsn <alnsn%pkgsrc.org@localhost>
date:      Tue Jul 04 22:35:03 2017 +0000

description:
Update net/lua-copas to version 2.0.2.
  + Added: copas.running flag
  + Fixed: fix for http request #53 (Peter Melnichenko)
  + Added: extra parameter keep_open for the removeserver()
    method (Hisham Muhammad)
  + Change: tweaked makefile with a DESTDIR variable (Richard
    Leitner)

diffstat:

 net/lua-copas/Makefile               |  21 +++++++++++++++++++--
 net/lua-copas/distinfo               |  12 ++++++------
 net/lua-copas/patches/patch-Makefile |  24 +++++++++++++++---------
 3 files changed, 40 insertions(+), 17 deletions(-)

diffs (89 lines):

diff -r 60eacf7931eb -r c492fd9193bf net/lua-copas/Makefile
--- a/net/lua-copas/Makefile    Tue Jul 04 21:57:20 2017 +0000
+++ b/net/lua-copas/Makefile    Tue Jul 04 22:35:03 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2016/06/05 10:06:28 alnsn Exp $
+# $NetBSD: Makefile,v 1.4 2017/07/04 22:35:03 alnsn Exp $
 
-DISTNAME=      copas-2.0.1
+DISTNAME=      copas-2.0.2
 PKGNAME=       ${DISTNAME:S/copas/${LUA_PKGPREFIX}-copas/}
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=keplerproject/}
@@ -17,6 +17,23 @@
 DEPENDS+=      ${LUA_PKGPREFIX}-sec>=0.6:../../security/lua-sec
 
 MAKE_ENV+=     LUA_LDIR=${LUA_LDIR:Q}
+MAKE_ENV+=     LUA_INTERPRETER=${LUA_INTERPRETER:Q}
+
+NO_BUILD=      yes
+TEST_TARGET=   test
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}/copas
+
+INSTALL_COPAS_FILES=   ${WRKSRC}/src/copas/ftp.lua
+INSTALL_COPAS_FILES+=  ${WRKSRC}/src/copas/smtp.lua
+INSTALL_COPAS_FILES+=  ${WRKSRC}/src/copas/http.lua
+INSTALL_COPAS_FILES+=  ${WRKSRC}/src/copas/limit.lua
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/src/copas.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
+       for f in ${INSTALL_COPAS_FILES}; do \
+               ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/${LUA_LDIR}/copas/ ; \
+       done
 
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 60eacf7931eb -r c492fd9193bf net/lua-copas/distinfo
--- a/net/lua-copas/distinfo    Tue Jul 04 21:57:20 2017 +0000
+++ b/net/lua-copas/distinfo    Tue Jul 04 22:35:03 2017 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+$NetBSD: distinfo,v 1.2 2017/07/04 22:35:03 alnsn Exp $
 
-SHA1 (copas-2.0.1.tar.gz) = 2bf0e5a975277408af7506d97e22fd0163245bed
-RMD160 (copas-2.0.1.tar.gz) = d2ed098bc9652353544380b65ffad4c64b5c258c
-SHA512 (copas-2.0.1.tar.gz) = 3bc472c056beab4c2cf8c1733ca2b1e7fcce9866b89dc738060263456b6fe7521956cf6ca614276f99fdf42d278422dbbb0ef42f11f211c16632f04cb518ecc5
-Size (copas-2.0.1.tar.gz) = 47927 bytes
-SHA1 (patch-Makefile) = eb313622d41a9ea58540c359ce07f5664e6a23b9
+SHA1 (copas-2.0.2.tar.gz) = e14afc3577e25e4612ea7e17223216194c981f7d
+RMD160 (copas-2.0.2.tar.gz) = 9693f624911ae99bae47271dc0816fa1c28b0629
+SHA512 (copas-2.0.2.tar.gz) = dd83a513fbddb2f0164c3573b417623f5cc556413c4937be7e362f4c1667bad83391143e1bf609480726730ce488c4080e810f2ce12a98a7abb5293993c10182
+Size (copas-2.0.2.tar.gz) = 51660 bytes
+SHA1 (patch-Makefile) = 9399d8d450eb5466c8271072db2a4ee33f359e90
diff -r 60eacf7931eb -r c492fd9193bf net/lua-copas/patches/patch-Makefile
--- a/net/lua-copas/patches/patch-Makefile      Tue Jul 04 21:57:20 2017 +0000
+++ b/net/lua-copas/patches/patch-Makefile      Tue Jul 04 22:35:03 2017 +0000
@@ -1,17 +1,23 @@
-$NetBSD: patch-Makefile,v 1.1.1.1 2016/06/04 23:15:22 alnsn Exp $
+$NetBSD: patch-Makefile,v 1.2 2017/07/04 22:35:03 alnsn Exp $
 
---- Makefile.orig      2016-02-16 21:08:28.000000000 +0000
+--- Makefile.orig      2017-06-22 19:39:05.000000000 +0000
 +++ Makefile
-@@ -2,8 +2,10 @@
+@@ -3,15 +3,15 @@
+ DESTDIR ?= 
  
  # Default prefix
--PREFIX = /usr/local
-+#PREFIX = /usr/local
+-PREFIX  ?= /usr/local
++#Â#PREFIX  ?= /usr/local
  
  # System's lua directory (where Lua libraries are installed)
--LUA_DIR= $(PREFIX)/share/lua/5.1
-+LUA_DIR= $(DESTDIR)$(PREFIX)/$(LUA_LDIR)
-+
-+all:
+-LUA_DIR ?= $(PREFIX)/share/lua/5.1
++LUA_DIR ?= $(DESTDIR)$(PREFIX)/$(LUA_LDIR)
+ 
+ PKGPATH=-e "package.path='src/?.lua;'..package.path"
+ 
+ # Lua interpreter
+-LUA=lua
++LUA=${LUA_INTERPRETER}
  
  install:
+       mkdir -p $(DESTDIR)$(LUA_DIR)/copas



Home | Main Index | Thread Index | Old Index