Skip to content

Commit

Permalink
textproc/luaexpat: Update to 1.4.1
Browse files Browse the repository at this point in the history
- Update MASTER_SITES
- Update WWW
- While I'm here, update pkg-descr

PR:		263978
Reported by:	Thomas Morper <thomas@beingboiled.info>
  • Loading branch information
sunpoet committed May 22, 2022
1 parent 35f7870 commit ba33b22
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
13 changes: 7 additions & 6 deletions textproc/luaexpat/Makefile
@@ -1,25 +1,26 @@
# Created by: Andrew Lewis <freeghb@gmail.com>

PORTNAME= luaexpat
PORTVERSION= 1.3.0
PORTREVISION= 5
PORTVERSION= 1.4.1
CATEGORIES= textproc
MASTER_SITES= https://matthewwild.co.uk/projects/luaexpat/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= SAX XML parser based on Expat library
COMMENT= SAX XML parser based on the Expat library

LICENSE= MIT

LIB_DEPENDS= libexpat.so:textproc/expat2

USES= gmake lua:module

USE_GITHUB= yes
GH_ACCOUNT= lunarmodules

ALL_TARGET= lib
CFLAGS+= -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= COMMON_CFLAGS="-Wall"
MAKE_ENV= EXPAT_INC=-I${LOCALBASE}/include LUA_CDIR=${LUA_MODLIBDIR} LUA_INC=-I${LUA_INCDIR} LUA_LDIR=${LUA_MODSHAREDIR}
MAKE_ARGS= COMMON_CFLAGS=-Wall
MAKE_ENV= EXPAT_INC=-I${LOCALBASE}/include LUA_CDIR=${LUA_MODLIBDIR} LUA_INC=-I${LUA_INCDIR} LUA_LDIR=${LUA_MODSHAREDIR} LUA_V=${LUA_VER}

.include <bsd.port.mk>
5 changes: 3 additions & 2 deletions textproc/luaexpat/distinfo
@@ -1,2 +1,3 @@
SHA256 (luaexpat-1.3.0.tar.gz) = d060397960d87b2c89cf490f330508b7def1a0677bdc120531c571609fc57dc3
SIZE (luaexpat-1.3.0.tar.gz) = 29567
TIMESTAMP = 1653151296
SHA256 (lunarmodules-luaexpat-1.4.1_GH0.tar.gz) = d528060d45865b44bef7215ef8a440165b668f363a4af53358389f0315a8593c
SIZE (lunarmodules-luaexpat-1.4.1_GH0.tar.gz) = 52159
8 changes: 6 additions & 2 deletions textproc/luaexpat/files/patch-Makefile
@@ -1,15 +1,19 @@
--- Makefile.orig 2014-04-02 23:30:37 UTC
--- Makefile.orig 2022-04-01 08:20:20 UTC
+++ Makefile
@@ -27,8 +27,10 @@ src/$(LIBNAME):
@@ -27,10 +27,12 @@ src/$(LIBNAME):
$(CC) $(CF) -o $@ src/$(T)lib.c $(LF)

install:
- $(INSTALL_PROGRAM) -D src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
- $(INSTALL_PROGRAM) -D src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
- $(INSTALL_PROGRAM) -D src/$T/totable.lua $(DESTDIR)$(LUA_LDIR)/$T/totable.lua
- $(INSTALL_PROGRAM) -D src/$T/threat.lua $(DESTDIR)$(LUA_LDIR)/$T/threat.lua
+ mkdir -p $(DESTDIR)$(LUA_CDIR)
+ mkdir -p $(DESTDIR)$(LUA_LDIR)/$T
+ $(INSTALL_PROGRAM) src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
+ $(INSTALL_PROGRAM) src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
+ $(INSTALL_PROGRAM) src/$T/totable.lua $(DESTDIR)$(LUA_LDIR)/$T/totable.lua
+ $(INSTALL_PROGRAM) src/$T/threat.lua $(DESTDIR)$(LUA_LDIR)/$T/threat.lua

clean:
$(RM) src/$(LIBNAME) $(OBJS)
18 changes: 9 additions & 9 deletions textproc/luaexpat/pkg-descr
@@ -1,15 +1,15 @@
LuaExpat is a SAX XML parser based on the Expat library. SAX is the Simple API
for XML and allows programs to:

* process a XML document incrementally, thus being able to handle huge
documents without memory penalties;
* register handler functions which are called by the parser during the
- process a XML document incrementally, thus being able to handle huge documents
without memory penalties;
- register handler functions which are called by the parser during the
processing of the document, handling the document elements or text.

With an event-based API like SAX the XML document can be fed to the parser in
chunks, and the parsing begins as soon as the parser receives the first
document chunk. LuaExpat reports parsing events (such as the start and end of
elements) directly to the application through callbacks. The parsing of huge
documents can benefit from this piecemeal operation.
chunks, and the parsing begins as soon as the parser receives the first document
chunk. LuaExpat reports parsing events (such as the start and end of elements)
directly to the application through callbacks. The parsing of huge documents can
benefit from this piecemeal operation.

WWW: https://www.keplerproject.org/luaexpat/
WWW: https://lunarmodules.github.io/luaexpat/
WWW: https://github.com/lunarmodules/luaexpat
2 changes: 2 additions & 0 deletions textproc/luaexpat/pkg-plist
@@ -1,2 +1,4 @@
%%LUA_MODLIBDIR%%/lxp.so
%%LUA_MODSHAREDIR%%/lxp/lom.lua
%%LUA_MODSHAREDIR%%/lxp/threat.lua
%%LUA_MODSHAREDIR%%/lxp/totable.lua

0 comments on commit ba33b22

Please sign in to comment.