From 556ae6f01b2f27948905d5acd5a8e5deb1c43b9a Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 30 Oct 2023 15:11:11 +0100 Subject: [PATCH] release 7.1.0 Updates the dev rockspec to pin to a tag, such that new rockspecs generated from it will not point to `master` but to the version tag. --- CHANGELOG.md | 13 ++++++ lua-iconv-dev-1.rockspec | 25 ++++++----- rockspecs/lua-iconv-7.1.0-1.rockspec | 62 ++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+), 10 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 rockspecs/lua-iconv-7.1.0-1.rockspec diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..538fd09 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +### 7.1.0 released 30-Oct-2023 + +* fix: rockspecs for MacOS + +* feat: `iconv.new` now returns a second value in case of errors + +--- + +### 7.0.0 released 17-Oct-2023 + +* First release from its new Lunar Modules home diff --git a/lua-iconv-dev-1.rockspec b/lua-iconv-dev-1.rockspec index 0b8c909..39f2672 100644 --- a/lua-iconv-dev-1.rockspec +++ b/lua-iconv-dev-1.rockspec @@ -1,22 +1,27 @@ --- Packs lua-iconv into a LuaRock --- rockspec based uppon the file provided by DarkGod +local package_name = "lua-iconv" +local package_version = "dev" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name -package = "lua-iconv" -version = "dev-1" +package = package_name +version = package_version.."-"..rockspec_revision source = { - url = "git+https://github.com/lunarmodules/lua-iconv", + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "dev") and "master" or nil, + tag = (package_version ~= "dev") and ("v" .. package_version) or nil, } description = { summary = "Lua binding to the iconv", detailed = [[ - Lua binding to the POSIX 'iconv' library, which converts a sequence of - characters from one codeset into a sequence of corresponding characters - in another codeset. - ]], + Lua binding to the POSIX 'iconv' library, which converts a sequence of + characters from one codeset into a sequence of corresponding characters + in another codeset. + ]], license = "MIT/X11", - homepage = "https://github.com/lunarmodules/lua-iconv/" + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, } dependencies = { diff --git a/rockspecs/lua-iconv-7.1.0-1.rockspec b/rockspecs/lua-iconv-7.1.0-1.rockspec new file mode 100644 index 0000000..246c657 --- /dev/null +++ b/rockspecs/lua-iconv-7.1.0-1.rockspec @@ -0,0 +1,62 @@ +local package_name = "lua-iconv" +local package_version = "7.1.0" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name + +package = package_name +version = package_version.."-"..rockspec_revision + +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "dev") and "master" or nil, + tag = (package_version ~= "dev") and ("v" .. package_version) or nil, +} + +description = { + summary = "Lua binding to the iconv", + detailed = [[ + Lua binding to the POSIX 'iconv' library, which converts a sequence of + characters from one codeset into a sequence of corresponding characters + in another codeset. + ]], + license = "MIT/X11", + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} + +dependencies = { + "lua >= 5.1", +} + +external_dependencies = { + ICONV = { + header = "iconv.h" + } +} + +build = { + type = "builtin", + modules = { + iconv = { + sources = {"luaiconv.c"}, + incdirs = {"$(ICONV_INCDIR)"}, + libdirs = {"$(ICONV_LIBDIR)"} + } + }, + platforms = { + cygwin = { + modules = { + iconv = { + libraries = {"iconv"} + } + } + }, + macosx = { + modules = { + iconv = { + libraries = {"iconv"} + } + } + }, + } +}