diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2012-09-19 08:08:31 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2012-09-19 08:08:31 +0000 |
commit | b97ba3655021c0c5989b40bda78b4f0e08052290 (patch) | |
tree | 34cd81ffd3652bd23945a5541b8143626ba8d83a /www/htmlcxx | |
parent | f3e63bd06cfebc2f635e000999f2fdd28a0c9de3 (diff) | |
download | ports-b97ba3655021c0c5989b40bda78b4f0e08052290.tar.gz ports-b97ba3655021c0c5989b40bda78b4f0e08052290.zip |
Notes
Diffstat (limited to 'www/htmlcxx')
-rw-r--r-- | www/htmlcxx/Makefile | 24 | ||||
-rw-r--r-- | www/htmlcxx/distinfo | 2 | ||||
-rw-r--r-- | www/htmlcxx/files/patch-CharsetConverter.cc | 11 | ||||
-rw-r--r-- | www/htmlcxx/files/patch-css_syntax.y | 9 | ||||
-rw-r--r-- | www/htmlcxx/pkg-descr | 3 | ||||
-rw-r--r-- | www/htmlcxx/pkg-plist | 30 |
6 files changed, 79 insertions, 0 deletions
diff --git a/www/htmlcxx/Makefile b/www/htmlcxx/Makefile new file mode 100644 index 000000000000..d5da34246762 --- /dev/null +++ b/www/htmlcxx/Makefile @@ -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> diff --git a/www/htmlcxx/distinfo b/www/htmlcxx/distinfo new file mode 100644 index 000000000000..a3e1f40fab48 --- /dev/null +++ b/www/htmlcxx/distinfo @@ -0,0 +1,2 @@ +SHA256 (htmlcxx-0.85.tar.gz) = ab02a0c4addc82f82d564f7d163fe0cc726179d9045381c288f5b8295996bae5 +SIZE (htmlcxx-0.85.tar.gz) = 414624 diff --git a/www/htmlcxx/files/patch-CharsetConverter.cc b/www/htmlcxx/files/patch-CharsetConverter.cc new file mode 100644 index 000000000000..47560c08bf8c --- /dev/null +++ b/www/htmlcxx/files/patch-CharsetConverter.cc @@ -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(); + diff --git a/www/htmlcxx/files/patch-css_syntax.y b/www/htmlcxx/files/patch-css_syntax.y new file mode 100644 index 000000000000..e3c6863cf777 --- /dev/null +++ b/www/htmlcxx/files/patch-css_syntax.y @@ -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" diff --git a/www/htmlcxx/pkg-descr b/www/htmlcxx/pkg-descr new file mode 100644 index 000000000000..5ee3a30a72e7 --- /dev/null +++ b/www/htmlcxx/pkg-descr @@ -0,0 +1,3 @@ +htmlcxx is a simple non-validating css1 and html parser for C++. + +WWW: http://htmlcxx.sourceforge.net/ diff --git a/www/htmlcxx/pkg-plist b/www/htmlcxx/pkg-plist new file mode 100644 index 000000000000..d76d41a24635 --- /dev/null +++ b/www/htmlcxx/pkg-plist @@ -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 |