pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lua-htmlparser: import lua-htmlparser-0.3.9 as wip/lua-htmlparser



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Thu Mar 16 21:38:42 2023 +0200
Changeset:	3ede10c07292bdd00c8a675993fef6e411011b83

Modified Files:
	Makefile
Added Files:
	lua-htmlparser/DESCR
	lua-htmlparser/Makefile
	lua-htmlparser/PLIST
	lua-htmlparser/distinfo

Log Message:
lua-htmlparser: import lua-htmlparser-0.3.9 as wip/lua-htmlparser

A lua module to parse HTML text into a tree of elements with selectors.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3ede10c07292bdd00c8a675993fef6e411011b83

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                |  1 +
 lua-htmlparser/DESCR    |  1 +
 lua-htmlparser/Makefile | 26 ++++++++++++++++++++++++++
 lua-htmlparser/PLIST    |  4 ++++
 lua-htmlparser/distinfo |  5 +++++
 5 files changed, 37 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index b8d8320f27..80f019d5fe 100644
--- a/Makefile
+++ b/Makefile
@@ -2254,6 +2254,7 @@ SUBDIR+=	ltp-git
 SUBDIR+=	ltrace
 SUBDIR+=	ltsmin
 SUBDIR+=	lua-MessagePack
+SUBDIR+=	lua-htmlparser
 SUBDIR+=	lua-lbn
 SUBDIR+=	lua-ldoc
 SUBDIR+=	lua-luacheck
diff --git a/lua-htmlparser/DESCR b/lua-htmlparser/DESCR
new file mode 100644
index 0000000000..adee5f2c23
--- /dev/null
+++ b/lua-htmlparser/DESCR
@@ -0,0 +1 @@
+Parse HTML text into a tree of elements with selectors.
diff --git a/lua-htmlparser/Makefile b/lua-htmlparser/Makefile
new file mode 100644
index 0000000000..5735e2c26a
--- /dev/null
+++ b/lua-htmlparser/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+DISTNAME=	lua-htmlparser-0.3.9
+PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/lua-//}
+CATEGORIES=	textproc devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=msva/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://msva.github.io/lua-htmlparser/
+COMMENT=	Parse HTML text into a tree of elements with selectors
+LICENSE=	gnu-lgpl-v3
+
+USE_LANGUAGES=	# none
+NO_BUILD=	yes
+
+INSTALLATION_DIRS+=	${LUA_LDIR}/htmlparser
+WRKSRC=			${WRKDIR}/${DISTNAME}
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/src/htmlparser.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}
+	${INSTALL_DATA} ${WRKSRC}/src/htmlparser/ElementNode.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/htmlparser
+	${INSTALL_DATA} ${WRKSRC}/src/htmlparser/voidelements.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/htmlparser
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-htmlparser/PLIST b/lua-htmlparser/PLIST
new file mode 100644
index 0000000000..59e38dd548
--- /dev/null
+++ b/lua-htmlparser/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+${LUA_LDIR}/htmlparser.lua
+${LUA_LDIR}/htmlparser/ElementNode.lua
+${LUA_LDIR}/htmlparser/voidelements.lua
diff --git a/lua-htmlparser/distinfo b/lua-htmlparser/distinfo
new file mode 100644
index 0000000000..6503f74ea8
--- /dev/null
+++ b/lua-htmlparser/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (lua-htmlparser-0.3.9.tar.gz) = 09e74487ec9e7b1d267179873c96edc99c382755e6e358ae9578d3f151262b04
+SHA512 (lua-htmlparser-0.3.9.tar.gz) = 457c9fffa275994b5c09729010dfa4cac7cfa1640917d077bb33f10e71623bb0883945cd28665432fcc58937f2c7d893f7e40c0e27b10daaf2a71d35dd734006
+Size (lua-htmlparser-0.3.9.tar.gz) = 15892 bytes


Home | Main Index | Thread Index | Old Index