diff --git a/LICENSE b/LICENSE index 43ac389..3850127 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2019 Alexey Melnichuk +Copyright (c) 2014-2021 Alexey Melnichuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/rockspecs/lua-curl-0.3.12-1.rockspec b/rockspecs/lua-curl-0.3.12-1.rockspec new file mode 100644 index 0000000..d828cb9 --- /dev/null +++ b/rockspecs/lua-curl-0.3.12-1.rockspec @@ -0,0 +1,75 @@ +package = "Lua-cURL" +version = "0.3.12-1" + +source = { + url = "https://github.com/Lua-cURL/Lua-cURLv3/archive/v0.3.12.zip", + dir = "Lua-cURLv3-0.3.12", +} + +description = { + summary = "Lua binding to libcurl", + detailed = [[ + ]], + homepage = "https://github.com/Lua-cURL", + license = "MIT/X11" +} + +dependencies = { + "lua >= 5.1, < 5.5" +} + +external_dependencies = { + platforms = { + windows = { + CURL = { + header = "curl/curl.h", + library = "libcurl", + } + }; + unix = { + CURL = { + header = "curl/curl.h", + -- library = "curl", + } + }; + } +} + +build = { + copy_directories = {'doc', 'examples', 'test'}, + + type = "builtin", + + platforms = { + windows = { modules = { + lcurl = { + libraries = {"libcurl", "ws2_32"}, + } + }}, + unix = { modules = { + lcurl = { + libraries = {"curl"}, + } + }} + }, + + modules = { + ["cURL" ] = "src/lua/cURL.lua", + ["cURL.safe" ] = "src/lua/cURL/safe.lua", + ["cURL.utils" ] = "src/lua/cURL/utils.lua", + ["cURL.impl.cURL" ] = "src/lua/cURL/impl/cURL.lua", + + lcurl = { + sources = { + "src/l52util.c", "src/lceasy.c", "src/lcerror.c", + "src/lchttppost.c", "src/lcurl.c", "src/lcutils.c", + "src/lcmulti.c", "src/lcshare.c", "src/lcmime.c", + "src/lcurlapi.c", + }, + incdirs = { "$(CURL_INCDIR)" }, + libdirs = { "$(CURL_LIBDIR)" } + }, + } +} + + diff --git a/src/l52util.c b/src/l52util.c index 07238e5..9e312cf 100644 --- a/src/l52util.c +++ b/src/l52util.c @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/l52util.h b/src/l52util.h index 4f6254f..97348a0 100644 --- a/src/l52util.h +++ b/src/l52util.h @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lceasy.c b/src/lceasy.c index 2766bbf..ad48022 100644 --- a/src/lceasy.c +++ b/src/lceasy.c @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lceasy.h b/src/lceasy.h index 03f5ea5..c03617c 100644 --- a/src/lceasy.h +++ b/src/lceasy.h @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lcurl.c b/src/lcurl.c index 94df227..9c02daf 100644 --- a/src/lcurl.c +++ b/src/lcurl.c @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lcutils.c b/src/lcutils.c index adf895a..6a406b4 100644 --- a/src/lcutils.c +++ b/src/lcutils.c @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lcutils.h b/src/lcutils.h index d63b2b8..cfad1af 100644 --- a/src/lcutils.h +++ b/src/lcutils.h @@ -1,7 +1,7 @@ /****************************************************************************** * Author: Alexey Melnichuk * -* Copyright (C) 2014-2018 Alexey Melnichuk +* Copyright (C) 2014-2021 Alexey Melnichuk * * Licensed according to the included 'LICENSE' document * diff --git a/src/lua/cURL/impl/cURL.lua b/src/lua/cURL/impl/cURL.lua index 64d66d7..cf6fea8 100644 --- a/src/lua/cURL/impl/cURL.lua +++ b/src/lua/cURL/impl/cURL.lua @@ -1,7 +1,7 @@ -- -- Author: Alexey Melnichuk -- --- Copyright (C) 2014-2019 Alexey Melnichuk +-- Copyright (C) 2014-2021 Alexey Melnichuk -- -- Licensed according to the included 'LICENSE' document -- @@ -10,9 +10,9 @@ local module_info = { _NAME = "Lua-cURL"; - _VERSION = "0.3.12-dev"; + _VERSION = "0.3.12"; _LICENSE = "MIT"; - _COPYRIGHT = "Copyright (c) 2014-2019 Alexey Melnichuk"; + _COPYRIGHT = "Copyright (c) 2014-2021 Alexey Melnichuk"; } local function hash_id(str)