html-xml-utils: Import html-xml-utils-7.4 as wip/html-xml-utils
A number of simple utilities for manipulating HTML and XML files.
This commit is contained in:
parent
8d085511b3
commit
1f4d8eb9c8
1
Makefile
1
Makefile
|
@ -1395,6 +1395,7 @@ SUBDIR+= hs-yaml
|
|||
SUBDIR+= hs-zip-archive
|
||||
SUBDIR+= ht2html
|
||||
SUBDIR+= html2latex
|
||||
SUBDIR+= html-xml-utils
|
||||
SUBDIR+= htslib
|
||||
SUBDIR+= httrack
|
||||
SUBDIR+= hu-go
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
A number of simple utilities for manipulating HTML and XML files.
|
|
@ -0,0 +1,22 @@
|
|||
# $NetBSD$
|
||||
|
||||
DISTNAME= html-xml-utils-7.4
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= https://www.w3.org/Tools/HTML-XML-utils/
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://www.w3.org/Tools/HTML-XML-utils/
|
||||
COMMENT= Simple utilities for manipulating HTML and XML files
|
||||
LICENSE= w3c
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_TOOLS+= lex yacc
|
||||
|
||||
USE_LANGUAGES= c99
|
||||
|
||||
REPLACE_SH+= hxcite-mkbib
|
||||
|
||||
.include "../../converters/libiconv/buildlink3.mk"
|
||||
.include "../../devel/libidn2/buildlink3.mk"
|
||||
.include "../../www/curl/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,64 @@
|
|||
@comment $NetBSD$
|
||||
bin/asc2xml
|
||||
bin/hxaddid
|
||||
bin/hxcite
|
||||
bin/hxcite-mkbib
|
||||
bin/hxclean
|
||||
bin/hxcopy
|
||||
bin/hxcount
|
||||
bin/hxextract
|
||||
bin/hxincl
|
||||
bin/hxindex
|
||||
bin/hxmkbib
|
||||
bin/hxmultitoc
|
||||
bin/hxname2id
|
||||
bin/hxnormalize
|
||||
bin/hxnsxml
|
||||
bin/hxnum
|
||||
bin/hxpipe
|
||||
bin/hxprintlinks
|
||||
bin/hxprune
|
||||
bin/hxref
|
||||
bin/hxremove
|
||||
bin/hxselect
|
||||
bin/hxtabletrans
|
||||
bin/hxtoc
|
||||
bin/hxuncdata
|
||||
bin/hxunent
|
||||
bin/hxunpipe
|
||||
bin/hxunxmlns
|
||||
bin/hxwls
|
||||
bin/hxxmlns
|
||||
bin/xml2asc
|
||||
man/man1/asc2xml.1
|
||||
man/man1/hxaddid.1
|
||||
man/man1/hxcite-mkbib.1
|
||||
man/man1/hxcite.1
|
||||
man/man1/hxclean.1
|
||||
man/man1/hxcopy.1
|
||||
man/man1/hxcount.1
|
||||
man/man1/hxextract.1
|
||||
man/man1/hxincl.1
|
||||
man/man1/hxindex.1
|
||||
man/man1/hxmkbib.1
|
||||
man/man1/hxmultitoc.1
|
||||
man/man1/hxname2id.1
|
||||
man/man1/hxnormalize.1
|
||||
man/man1/hxnsxml.1
|
||||
man/man1/hxnum.1
|
||||
man/man1/hxpipe.1
|
||||
man/man1/hxprintlinks.1
|
||||
man/man1/hxprune.1
|
||||
man/man1/hxref.1
|
||||
man/man1/hxremove.1
|
||||
man/man1/hxselect.1
|
||||
man/man1/hxtabletrans.1
|
||||
man/man1/hxtoc.1
|
||||
man/man1/hxuncdata.1
|
||||
man/man1/hxunent.1
|
||||
man/man1/hxunpipe.1
|
||||
man/man1/hxunxmlns.1
|
||||
man/man1/hxwls.1
|
||||
man/man1/hxxmlns.1
|
||||
man/man1/xml2asc.1
|
||||
share/doc/html-xml-utils/COPYING
|
|
@ -0,0 +1,7 @@
|
|||
$NetBSD$
|
||||
|
||||
SHA1 (html-xml-utils-7.4.tar.gz) = 694a67b723be500112217cd808789e837ae84bee
|
||||
RMD160 (html-xml-utils-7.4.tar.gz) = 9185eaf4ba6f93fbb07f4c029e6ae57abaaad5f4
|
||||
SHA512 (html-xml-utils-7.4.tar.gz) = 88a527c29ef23b34ecb778085aafd399943764a18a3e4b39ff27b3e2cc3effa84b9ffe7c2a0df80fb27a38a7e4d4ceef6db91da46cbb2b4f9fd59903d4868a20
|
||||
Size (html-xml-utils-7.4.tar.gz) = 343008 bytes
|
||||
SHA1 (patch-fopencookie.c) = 58a464521e323a87806d46b83902c74b846b8f26
|
|
@ -0,0 +1,29 @@
|
|||
$NetBSD$
|
||||
|
||||
`fpos_t' can be a complex object, use `off64_t' instead.
|
||||
|
||||
This fixes:
|
||||
|
||||
fopencookie.c: In function 'seekfn':
|
||||
fopencookie.c:55:3: error: aggregate value used where an integer was expected
|
||||
return (fpos_t)(c->seek(c->cookie, (off64_t)offset, whence));
|
||||
^
|
||||
fopencookie.c:55:3: error: conversion to non-scalar type requested
|
||||
|
||||
at least on NetBSD.
|
||||
|
||||
--- fopencookie.c.orig 2017-11-24 09:41:14.000000000 +0000
|
||||
+++ fopencookie.c
|
||||
@@ -49,10 +49,10 @@ static int writefn(void *sc, const char
|
||||
}
|
||||
|
||||
/* seekfn -- callback that in turn calls sc->seek with proper typecasts */
|
||||
-static fpos_t seekfn(void *sc, fpos_t offset, int whence)
|
||||
+static off64_t seekfn(void *sc, off64_t offset, int whence)
|
||||
{
|
||||
cookiewrapper *c = (cookiewrapper*)sc;
|
||||
- return (fpos_t)(c->seek(c->cookie, (off64_t)offset, whence));
|
||||
+ return (off64_t)(c->seek(c->cookie, (off64_t)offset, whence));
|
||||
}
|
||||
|
||||
/* closefn -- callback that in turn calls sc->close and then frees memory */
|
Loading…
Reference in New Issue