View | Details | Raw Unified | Return to bug 263978
Collapse All | Expand All

(-)b/textproc/luaexpat/Makefile (-6 / +7 lines)
Lines 1-10 Link Here
1
# Created by: Andrew Lewis <freeghb@gmail.com>
1
# Created by: Andrew Lewis <freeghb@gmail.com>
2
2
3
PORTNAME=	luaexpat
3
PORTNAME=	luaexpat
4
PORTVERSION=	1.3.0
4
PORTVERSION=	1.4.1
5
PORTREVISION=	5
6
CATEGORIES=	textproc
5
CATEGORIES=	textproc
7
MASTER_SITES=	https://matthewwild.co.uk/projects/luaexpat/
8
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
6
PKGNAMEPREFIX=	${LUA_PKGNAMEPREFIX}
9
7
10
MAINTAINER=	sunpoet@FreeBSD.org
8
MAINTAINER=	sunpoet@FreeBSD.org
Lines 16-25 LIB_DEPENDS= libexpat.so:textproc/expat2 Link Here
16
14
17
USES=		gmake lua:module
15
USES=		gmake lua:module
18
16
19
ALL_TARGET=	lib
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	lunarmodules
19
20
CFLAGS+=	-fPIC
20
CFLAGS+=	-fPIC
21
LDFLAGS+=	-L${LOCALBASE}/lib
21
LDFLAGS+=	-L${LOCALBASE}/lib
22
MAKE_ARGS=	COMMON_CFLAGS="-Wall"
22
MAKE_ARGS+=	COMMON_CFLAGS="-Wall"
23
MAKE_ENV=	EXPAT_INC=-I${LOCALBASE}/include LUA_CDIR=${LUA_MODLIBDIR} LUA_INC=-I${LUA_INCDIR} LUA_LDIR=${LUA_MODSHAREDIR}
23
MAKE_ENV=	LUA_V=${LUA_VER} LUA_CDIR=${LUA_MODLIBDIR} LUA_LDIR=${LUA_MODSHAREDIR} LUA_INC="-I${LUA_INCDIR}" EXPAT_INC="-I${LOCALBASE}/include"
24
ALL_TARGET=	lib
24
25
25
.include <bsd.port.mk>
26
.include <bsd.port.mk>
(-)b/textproc/luaexpat/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (luaexpat-1.3.0.tar.gz) = d060397960d87b2c89cf490f330508b7def1a0677bdc120531c571609fc57dc3
1
TIMESTAMP = 1650062905
2
SIZE (luaexpat-1.3.0.tar.gz) = 29567
2
SHA256 (lunarmodules-luaexpat-1.4.1_GH0.tar.gz) = d528060d45865b44bef7215ef8a440165b668f363a4af53358389f0315a8593c
3
SIZE (lunarmodules-luaexpat-1.4.1_GH0.tar.gz) = 52159
(-)b/textproc/luaexpat/files/patch-Makefile (-2 / +6 lines)
Lines 1-15 Link Here
1
--- Makefile.orig	2014-04-02 23:30:37 UTC
1
--- Makefile.orig	2022-04-01 08:20:20 UTC
2
+++ Makefile
2
+++ Makefile
3
@@ -27,8 +27,10 @@ src/$(LIBNAME):
3
@@ -27,10 +27,12 @@ src/$(LIBNAME):
4
 	$(CC) $(CF) -o $@ src/$(T)lib.c $(LF)
4
 	$(CC) $(CF) -o $@ src/$(T)lib.c $(LF)
5
 
5
 
6
 install:
6
 install:
7
-	$(INSTALL_PROGRAM) -D src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
7
-	$(INSTALL_PROGRAM) -D src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
8
-	$(INSTALL_PROGRAM) -D src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
8
-	$(INSTALL_PROGRAM) -D src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
9
-	$(INSTALL_PROGRAM) -D src/$T/totable.lua $(DESTDIR)$(LUA_LDIR)/$T/totable.lua
10
-	$(INSTALL_PROGRAM) -D src/$T/threat.lua $(DESTDIR)$(LUA_LDIR)/$T/threat.lua
9
+	mkdir -p $(DESTDIR)$(LUA_CDIR)
11
+	mkdir -p $(DESTDIR)$(LUA_CDIR)
10
+	mkdir -p $(DESTDIR)$(LUA_LDIR)/$T
12
+	mkdir -p $(DESTDIR)$(LUA_LDIR)/$T
11
+	$(INSTALL_PROGRAM) src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
13
+	$(INSTALL_PROGRAM) src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
12
+	$(INSTALL_PROGRAM) src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
14
+	$(INSTALL_PROGRAM) src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
15
+	$(INSTALL_PROGRAM) src/$T/totable.lua $(DESTDIR)$(LUA_LDIR)/$T/totable.lua
16
+	$(INSTALL_PROGRAM) src/$T/threat.lua $(DESTDIR)$(LUA_LDIR)/$T/threat.lua
13
 
17
 
14
 clean:
18
 clean:
15
 	$(RM) src/$(LIBNAME) $(OBJS)
19
 	$(RM) src/$(LIBNAME) $(OBJS)
(-)b/textproc/luaexpat/pkg-descr (-1 / +1 lines)
Lines 12-15 document chunk. LuaExpat reports parsing events (such as the start and end of Link Here
12
elements) directly to the application through callbacks. The parsing of huge
12
elements) directly to the application through callbacks. The parsing of huge
13
documents can benefit from this piecemeal operation.
13
documents can benefit from this piecemeal operation.
14
14
15
WWW: https://www.keplerproject.org/luaexpat/
15
WWW: https://github.com/lunarmodules/luaexpat
(-)b/textproc/luaexpat/pkg-plist (-1 / +2 lines)
Lines 1-2 Link Here
1
%%LUA_MODLIBDIR%%/lxp.so
1
%%LUA_MODLIBDIR%%/lxp.so
2
%%LUA_MODSHAREDIR%%/lxp/lom.lua
2
%%LUA_MODSHAREDIR%%/lxp/lom.lua
3
- 
3
%%LUA_MODSHAREDIR%%/lxp/threat.lua
4
%%LUA_MODSHAREDIR%%/lxp/totable.lua

Return to bug 263978