diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2021-02-20 12:27:01 +0300 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-02-20 19:56:12 +0100 |
commit | ac8c7819ed25d6ad0174456fa88113be32e10f24 (patch) | |
tree | c9775ea92f0a5a1e5bd4d6362ac55d188a399eb4 /dev-lua/luaexpat | |
parent | dev-libs/libbase58: Add missing test DEPEND on app-editors/vim-core (for xxd) (diff) | |
download | gentoo-ac8c7819ed25d6ad0174456fa88113be32e10f24.tar.gz gentoo-ac8c7819ed25d6ad0174456fa88113be32e10f24.tar.bz2 gentoo-ac8c7819ed25d6ad0174456fa88113be32e10f24.zip |
dev-lua/luaexpat: Remove masked 1.3.3 version
1.3.3 is "forked" version that cause regressions on dependencies (#746782).
Since there no activity on forked project, package switched back to
original version.
Closes: https://bugs.gentoo.org/746782
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/luaexpat')
-rw-r--r-- | dev-lua/luaexpat/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch | 33 | ||||
-rw-r--r-- | dev-lua/luaexpat/files/luaexpat-1.3.3_makefile.patch | 21 | ||||
-rw-r--r-- | dev-lua/luaexpat/files/luaexpat-1.3.3_restore_functionality.patch | 109 | ||||
-rw-r--r-- | dev-lua/luaexpat/luaexpat-1.3.0-r102.ebuild | 2 | ||||
-rw-r--r-- | dev-lua/luaexpat/luaexpat-1.3.3-r102.ebuild | 78 | ||||
-rw-r--r-- | dev-lua/luaexpat/metadata.xml | 3 |
7 files changed, 1 insertions, 246 deletions
diff --git a/dev-lua/luaexpat/Manifest b/dev-lua/luaexpat/Manifest index c8d01129c56c..5913ec63d907 100644 --- a/dev-lua/luaexpat/Manifest +++ b/dev-lua/luaexpat/Manifest @@ -1,2 +1 @@ DIST luaexpat-1.3.0.tar.gz 29567 BLAKE2B 176cb107e6047b15338ff45751af82389920e4210d40bd0b4400e549130a4983c843f7a64bb7b2fba37e36eb592e850d06efe196f8e837e79e50c8d135dbe763 SHA512 91884653310e2dc89ade6d1653875ac8607640a21853d3ccb1fd0f833812e41981fad5c40101732ec249104d2c50c9a332208d1e44423b8428065a223c60b4ae -DIST luaexpat-1.3.3.tar.gz 32099 BLAKE2B 7fdec97932db4f7d582f651b9a7215f2ef0f6e23022d4013f37e62a0ba3e257e44211266ee4cbbc84d190bf9828e0e028ab3eecf9fc6e619ae3175fd5fe23ddb SHA512 aa3f730c64cae3791fc1125302178ec2398d2380e8ec0e65ca4b29f532f181f149baaf555bf687e502b28726d3fd0baafd4f73cf26f04f625d18bbaddb043d63 diff --git a/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch b/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch deleted file mode 100644 index 7366163d9d82..000000000000 --- a/dev-lua/luaexpat/files/luaexpat-1.3.3_getcurrentbytecount.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 0926f2d705109b7d35b721344264b39c1169e0de Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fran=C3=A7ois=20Perrad?= <francois.perrad@gadz.org> -Date: Sat, 16 Feb 2019 16:08:25 +0100 -Subject: [PATCH] restore method getcurrentbytecount - -fix #3 ---- - src/lxplib.c | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/lxplib.c b/src/lxplib.c -index 7726913..35bec3c 100644 ---- a/src/lxplib.c -+++ b/src/lxplib.c -@@ -538,11 +538,18 @@ static int lxp_stop (lua_State *L) { - return 1; - } - -+static int lxp_getcurrentbytecount (lua_State* L) { -+ lxp_userdata *xpu = checkparser(L, 1); -+ lua_pushinteger(L, XML_GetCurrentByteCount(xpu->parser)); -+ return 1; -+} -+ - static const luaL_Reg lxp_meths[] = { - {"parse", lxp_parse}, - {"close", lxp_close}, - {"__gc", parser_gc}, - {"pos", lxp_pos}, -+ {"getcurrentbytecount", lxp_getcurrentbytecount}, - {"setencoding", lxp_setencoding}, - {"getcallbacks", getcallbacks}, - {"getbase", getbase}, diff --git a/dev-lua/luaexpat/files/luaexpat-1.3.3_makefile.patch b/dev-lua/luaexpat/files/luaexpat-1.3.3_makefile.patch deleted file mode 100644 index a780dddea838..000000000000 --- a/dev-lua/luaexpat/files/luaexpat-1.3.3_makefile.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/makefile b/makefile -index 1a5a145..50912f0 100644 ---- a/makefile -+++ b/makefile -@@ -45,7 +45,7 @@ OBJS= src/lxplib.o - lib: src/$(LIBNAME) - - src/$(LIBNAME) : $(OBJS) -- $(CC) $(CFLAGS) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat -+ $(CC) $(LDFLAGS) $(CFLAGS) -fPIC -std=gnu99 -ansi -I$(LUA_INC) -I$(EXPAT_INC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat - - install: - mkdir -p $(LUA_LIBDIR) -@@ -53,6 +53,7 @@ install: - cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so - mkdir -p $(LUA_DIR)/$T - cp src/$T/lom.lua $(LUA_DIR)/$T -+ cp src/$T/totable.lua $(LUA_DIR)/$T - - clean: - rm -f src/$(LIBNAME) $(OBJS) diff --git a/dev-lua/luaexpat/files/luaexpat-1.3.3_restore_functionality.patch b/dev-lua/luaexpat/files/luaexpat-1.3.3_restore_functionality.patch deleted file mode 100644 index c0bc8c1a7b41..000000000000 --- a/dev-lua/luaexpat/files/luaexpat-1.3.3_restore_functionality.patch +++ /dev/null @@ -1,109 +0,0 @@ -From 4ef48128bd9a725daca1d5a4aabe0c1665d78742 Mon Sep 17 00:00:00 2001 -From: Matthew Wild <mwild1@gmail.com> -Date: Wed, 2 Apr 2014 21:02:29 +0100 -Subject: [PATCH] Make merging of CharacterData events optional, controlled by - the 3rd parameter of lxp.new() - ---- - src/lxplib.c | 12 ++++++++++-- - 1 file changed, 10 insertions(+), 2 deletions(-) - -diff --git a/src/lxplib.c b/src/lxplib.c -index a7d6c42..794f6e3 100644 ---- a/src/lxplib.c -+++ b/src/lxplib.c -@@ -57,6 +57,7 @@ struct lxp_userdata { - int tableref; /* table with callbacks for this parser */ - enum XPState state; - luaL_Buffer *b; /* to concatenate sequences of cdata pieces */ -+ int bufferCharData; /* whether to buffer cdata pieces */ - }; - - typedef struct lxp_userdata lxp_userdata; -@@ -171,8 +172,13 @@ static void f_CharData (void *ud, const char *s, int len) { - lxp_userdata *xpu = (lxp_userdata *)ud; - if (xpu->state == XPSok) { - if (getHandle(xpu, CharDataKey) == 0) return; /* no handle */ -- xpu->state = XPSstring; -- luaL_buffinit(xpu->L, xpu->b); -+ if(xpu->bufferCharData != 0) { -+ xpu->state = XPSstring; -+ luaL_buffinit(xpu->L, xpu->b); -+ } else { -+ lua_pushlstring(xpu->L, s, len); -+ docall(xpu, 1, 0); -+ } - } - if (xpu->state == XPSstring) - luaL_addlstring(xpu->b, s, len); -@@ -393,8 +399,10 @@ static void checkcallbacks (lua_State *L) { - - static int lxp_make_parser (lua_State *L) { - XML_Parser p; -+ int bufferCharData = (lua_type(L, 3) != LUA_TBOOLEAN) || (lua_toboolean(L, 3) != 0); - char sep = *luaL_optstring(L, 2, ""); - lxp_userdata *xpu = createlxp(L); -+ xpu->bufferCharData = bufferCharData; - p = xpu->parser = (sep == '\0') ? XML_ParserCreate(NULL) : - XML_ParserCreateNS(NULL, sep); - if (!p) -From cbaf85740f6032cfc025c7bde3f9861d15825928 Mon Sep 17 00:00:00 2001 -From: Matthew Wild <mwild1@gmail.com> -Date: Wed, 2 Apr 2014 20:56:58 +0100 -Subject: [PATCH] Add support for XmlDecl handlers - ---- - src/lxplib.c | 14 +++++++++++++- - src/lxplib.h | 1 + - 2 files changed, 14 insertions(+), 1 deletion(-) - -diff --git a/src/lxplib.c b/src/lxplib.c -index 35bec3c..a7d6c42 100644 ---- a/src/lxplib.c -+++ b/src/lxplib.c -@@ -345,6 +345,16 @@ static void f_StartDoctypeDecl (void *ud, const XML_Char *doctypeName, - docall(xpu, 4, 0); - } - -+static void f_XmlDecl (void *ud, const XML_Char *version, -+ const XML_Char *encoding, -+ int standalone) { -+ lxp_userdata *xpu = (lxp_userdata *)ud; -+ if (getHandle(xpu, XmlDeclKey) == 0) return; /* no handle */ -+ lua_pushstring(xpu->L, version); -+ lua_pushstring(xpu->L, encoding); -+ lua_pushboolean(xpu->L, standalone); -+ docall(xpu, 3, 0); -+} - /* }====================================================== */ - - -@@ -365,7 +375,7 @@ static void checkcallbacks (lua_State *L) { - "Default", "DefaultExpand", "StartElement", "EndElement", - "ExternalEntityRef", "StartNamespaceDecl", "EndNamespaceDecl", - "NotationDecl", "NotStandalone", "ProcessingInstruction", -- "UnparsedEntityDecl", "StartDoctypeDecl", NULL}; -+ "UnparsedEntityDecl", "StartDoctypeDecl", "XmlDecl", NULL}; - if (hasfield(L, "_nonstrict")) return; - lua_pushnil(L); - while (lua_next(L, 1)) { -@@ -420,6 +430,8 @@ static int lxp_make_parser (lua_State *L) { - XML_SetUnparsedEntityDeclHandler(p, f_UnparsedEntityDecl); - if (hasfield(L, StartDoctypeDeclKey)) - XML_SetStartDoctypeDeclHandler(p, f_StartDoctypeDecl); -+ if (hasfield(L, XmlDeclKey)) -+ XML_SetXmlDeclHandler(p, f_XmlDecl); - return 1; - } - -diff --git a/src/lxplib.h b/src/lxplib.h -index 9c0be4f..4c7084c 100644 ---- a/src/lxplib.h -+++ b/src/lxplib.h -@@ -20,5 +20,6 @@ - #define ProcessingInstructionKey "ProcessingInstruction" - #define UnparsedEntityDeclKey "UnparsedEntityDecl" - #define StartDoctypeDeclKey "StartDoctypeDecl" -+#define XmlDeclKey "XmlDecl" - - int luaopen_lxp (lua_State *L); diff --git a/dev-lua/luaexpat/luaexpat-1.3.0-r102.ebuild b/dev-lua/luaexpat/luaexpat-1.3.0-r102.ebuild index a3ddb21e5619..d6a7f964dc29 100644 --- a/dev-lua/luaexpat/luaexpat-1.3.0-r102.ebuild +++ b/dev-lua/luaexpat/luaexpat-1.3.0-r102.ebuild @@ -8,7 +8,7 @@ LUA_COMPAT=( lua5-{1..3} luajit ) inherit lua toolchain-funcs DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library" -HOMEPAGE="https://matthewwild.co.uk/projects/luaexpat/" +HOMEPAGE="https://matthewwild.co.uk/projects/luaexpat/ https://code.matthewwild.co.uk/lua-expat" SRC_URI="https://matthewwild.co.uk/projects/${PN}/${P}.tar.gz" LICENSE="MIT" diff --git a/dev-lua/luaexpat/luaexpat-1.3.3-r102.ebuild b/dev-lua/luaexpat/luaexpat-1.3.3-r102.ebuild deleted file mode 100644 index e1907b637e49..000000000000 --- a/dev-lua/luaexpat/luaexpat-1.3.3-r102.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -LUA_COMPAT=( lua5-{1..3} luajit ) - -inherit lua toolchain-funcs - -DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library" -HOMEPAGE="https://github.com/tomasguisasola/luaexpat" -SRC_URI="https://github.com/tomasguisasola/luaexpat/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -RDEPEND=" - dev-libs/expat - ${LUA_DEPS} -" -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -HTML_DOCS=( "doc/us/." ) - -PATCHES=( - "${FILESDIR}/${P}_makefile.patch" - "${FILESDIR}/${P}_getcurrentbytecount.patch" - "${FILESDIR}/${P}_restore_functionality.patch" -) - -src_prepare() { - default - - # Respect users CFLAGS - sed -e 's/-O2//g' -i makefile || die - - lua_copy_sources -} - -lua_src_compile() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "CC=$(tc-getCC) ${CFLAGS}" - "LUA_INC=$(lua_get_include_dir)" - ) - - emake "${myemakeargs[@]}" - - popd -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_install() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - "LUA_DIR=${ED}/$(lua_get_lmod_dir)" - "LUA_INC=${ED}/$(lua_get_include_dir)" - "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" - ) - - emake "${myemakeargs[@]}" install - - popd -} - -src_install() { - lua_foreach_impl lua_src_install - - einstalldocs -} diff --git a/dev-lua/luaexpat/metadata.xml b/dev-lua/luaexpat/metadata.xml index 7b5da0bdee8c..fd1dd982c84f 100644 --- a/dev-lua/luaexpat/metadata.xml +++ b/dev-lua/luaexpat/metadata.xml @@ -13,7 +13,4 @@ <email>conikost@gentoo.org</email> <name>Conrad Kostecki</name> </maintainer> - <upstream> - <remote-id type="github">tomasguisasola/luaexpat</remote-id> - </upstream> </pkgmetadata> |