Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2012 08:08:32 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304490 - in head/www: . htmlcxx htmlcxx/files
Message-ID:  <201209190808.q8J88Wm4053990@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Wed Sep 19 08:08:31 2012
New Revision: 304490
URL: http://svn.freebsd.org/changeset/ports/304490

Log:
  Initial import of htmlcxx-0.85.
  
  htmlcxx is a simple non-validating CSS and HTML parser for C++.

Added:
  head/www/htmlcxx/
  head/www/htmlcxx/Makefile   (contents, props changed)
  head/www/htmlcxx/distinfo   (contents, props changed)
  head/www/htmlcxx/files/
  head/www/htmlcxx/files/patch-CharsetConverter.cc   (contents, props changed)
  head/www/htmlcxx/files/patch-css_syntax.y   (contents, props changed)
  head/www/htmlcxx/pkg-descr   (contents, props changed)
  head/www/htmlcxx/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Wed Sep 19 07:57:38 2012	(r304489)
+++ head/www/Makefile	Wed Sep 19 08:08:31 2012	(r304490)
@@ -331,6 +331,7 @@
     SUBDIR += html2hdml
     SUBDIR += html2wml
     SUBDIR += htmlcompressor
+    SUBDIR += htmlcxx
     SUBDIR += htmlobject
     SUBDIR += htmlpp
     SUBDIR += httest

Added: head/www/htmlcxx/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/Makefile	Wed Sep 19 08:08:31 2012	(r304490)
@@ -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>

Added: head/www/htmlcxx/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/distinfo	Wed Sep 19 08:08:31 2012	(r304490)
@@ -0,0 +1,2 @@
+SHA256 (htmlcxx-0.85.tar.gz) = ab02a0c4addc82f82d564f7d163fe0cc726179d9045381c288f5b8295996bae5
+SIZE (htmlcxx-0.85.tar.gz) = 414624

Added: head/www/htmlcxx/files/patch-CharsetConverter.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/files/patch-CharsetConverter.cc	Wed Sep 19 08:08:31 2012	(r304490)
@@ -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();
+ 

Added: head/www/htmlcxx/files/patch-css_syntax.y
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/files/patch-css_syntax.y	Wed Sep 19 08:08:31 2012	(r304490)
@@ -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"

Added: head/www/htmlcxx/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/pkg-descr	Wed Sep 19 08:08:31 2012	(r304490)
@@ -0,0 +1,3 @@
+htmlcxx is a simple non-validating css1 and html parser for C++.
+
+WWW: http://htmlcxx.sourceforge.net/

Added: head/www/htmlcxx/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/htmlcxx/pkg-plist	Wed Sep 19 08:08:31 2012	(r304490)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209190808.q8J88Wm4053990>