1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Initial import of htmlcxx-0.85.

htmlcxx is a simple non-validating CSS and HTML parser for C++.
This commit is contained in:
Kevin Lo 2012-09-19 08:08:31 +00:00
parent f3e63bd06c
commit b97ba36550
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304490
7 changed files with 80 additions and 0 deletions

View File

@ -331,6 +331,7 @@
SUBDIR += html2hdml
SUBDIR += html2wml
SUBDIR += htmlcompressor
SUBDIR += htmlcxx
SUBDIR += htmlobject
SUBDIR += htmlpp
SUBDIR += httest

24
www/htmlcxx/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $FreeBSD$
PORTNAME= htmlcxx
PORTVERSION= 0.85
CATEGORIES= www textproc
MASTER_SITES= SF
MAINTAINER= kevlo@FreeBSD.org
COMMENT= HTML and CSS APIs for C++
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/LGPL_V2
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
USE_ICONV= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
.include <bsd.port.mk>

2
www/htmlcxx/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (htmlcxx-0.85.tar.gz) = ab02a0c4addc82f82d564f7d163fe0cc726179d9045381c288f5b8295996bae5
SIZE (htmlcxx-0.85.tar.gz) = 414624

View File

@ -0,0 +1,11 @@
--- html/CharsetConverter.cc.orig 2012-09-19 14:05:35.000000000 +0800
+++ html/CharsetConverter.cc 2012-09-19 14:08:42.000000000 +0800
@@ -37,7 +37,7 @@
size_t ret;
while (1) {
- ret = iconv(mIconvDescriptor, const_cast<char**>(&inbuf), &inbytesleft, &outbuf, &outbytesleft);
+ ret = iconv(mIconvDescriptor, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
if (ret == 0) break;
if (ret == (size_t)-1 && errno == E2BIG) return string();

View File

@ -0,0 +1,9 @@
--- css/css_syntax.y.orig 2012-09-19 15:27:03.000000000 +0800
+++ css/css_syntax.y 2012-09-19 15:28:12.000000000 +0800
@@ -1,5 +1,6 @@
%{
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "css_lex.h"
#include "parser.h"

3
www/htmlcxx/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
htmlcxx is a simple non-validating css1 and html parser for C++.
WWW: http://htmlcxx.sourceforge.net/

30
www/htmlcxx/pkg-plist Normal file
View File

@ -0,0 +1,30 @@
bin/htmlcxx
include/htmlcxx/css/parser.h
include/htmlcxx/css/parser_pp.h
include/htmlcxx/html/CharsetConverter.h
include/htmlcxx/html/Extensions.h
include/htmlcxx/html/Node.h
include/htmlcxx/html/ParserDom.h
include/htmlcxx/html/ParserSax.h
include/htmlcxx/html/ParserSax.tcc
include/htmlcxx/html/Uri.h
include/htmlcxx/html/ci_string.h
include/htmlcxx/html/tld.h
include/htmlcxx/html/tree.h
include/htmlcxx/html/utils.h
libdata/pkgconfig/htmlcxx.pc
lib/libcss_parser.la
lib/libcss_parser.so
lib/libcss_parser.so.0
lib/libcss_parser_pp.la
lib/libcss_parser_pp.so
lib/libcss_parser_pp.so.0
lib/libhtmlcxx.la
lib/libhtmlcxx.so
lib/libhtmlcxx.so.4
share/htmlcxx/css/default.css
@dirrm share/htmlcxx/css
@dirrm share/htmlcxx
@dirrm include/htmlcxx/html
@dirrm include/htmlcxx/css
@dirrm include/htmlcxx