Date: Tue, 14 Aug 2012 22:52:54 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302535 - in head/devel: . streamhtmlparser Message-ID: <201208142252.q7EMqs0H062232@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mandree Date: Tue Aug 14 22:52:54 2012 New Revision: 302535 URL: http://svn.freebsd.org/changeset/ports/302535 Log: Add new port devel/streamhtmlparser. Implementation of an html and javascript context scanner with no lookahead. Its purpose is to scan an html document and provide context information at any point within the input stream. An example of a user of this scanner would be an auto escaping templating system, which would require html context information at very specific points within the html stream. The implementation is based on a simplified state machine of HTML4.1 and javascript. The code also contains C++ and python bindings. WWW: http://code.google.com/p/streamhtmlparser/ PR: ports/170472 Submitted by: HU Dong <itechbear@gmail.com> Added: head/devel/streamhtmlparser/ head/devel/streamhtmlparser/Makefile (contents, props changed) head/devel/streamhtmlparser/distinfo (contents, props changed) head/devel/streamhtmlparser/pkg-descr (contents, props changed) head/devel/streamhtmlparser/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Aug 14 21:33:05 2012 (r302534) +++ head/devel/Makefile Tue Aug 14 22:52:54 2012 (r302535) @@ -3995,6 +3995,7 @@ SUBDIR += stormlib-ghost++ SUBDIR += str SUBDIR += strace + SUBDIR += streamhtmlparser SUBDIR += stringencoders SUBDIR += styx SUBDIR += subclipse Added: head/devel/streamhtmlparser/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/streamhtmlparser/Makefile Tue Aug 14 22:52:54 2012 (r302535) @@ -0,0 +1,54 @@ +# New ports collection makefile for: streamhtmlparser +# Date created: 7 August 2012 +# Whom: HU Dong <itechbear@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= streamhtmlparser +PORTVERSION= 0.1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} + +MAINTAINER= itechbear@gmail.com +COMMENT= C/C++/Python streaming HTML parser library from Google + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_LDCONFIG= yes +CONFIGURE_ARGS+=--enable-shared + +OPTIONS_DEFINE= DOCS STATIC PYBINDINGS +PYBINDINGS_DESC=Install Python bindings +STATIC_DESC= Install static library +OPTIONS_DEFAULT=STATIC + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MPYBINDINGS} +USE_PYTHON= yes +CONFIGURE_ARGS+=--enable-python +CFLAGS+= -I${PYTHON_INCLUDEDIR} +PLIST_SUB+= PYBINDINGS="" +.else +CONFIGURE_ARGS+=--disable-python +PLIST_SUB+= PYBINDINGS="@comment " +.endif + +.if ${PORT_OPTIONS:MSTATIC} +CONFIGURE_ARGS+=--enable-static +PLIST_SUB+= STATIC="" +.else +CONFIGURE_ARGS+=--disable-static +PLIST_SUB+= STATIC="@comment " +.endif + +.include <bsd.port.pre.mk> + +post-patch: + @${REINPLACE_CMD} -e 's|^docdir.*|docdir = ${DOCSDIR}|' ${WRKSRC}/Makefile.in +.if defined(NOPORTDOCS) + @${REINPLACE_CMD} -E -e '/^install-data-am/,/^$$/ s,install-dist_docDATA,,g' ${WRKSRC}/Makefile.in +.endif + +.include <bsd.port.post.mk> Added: head/devel/streamhtmlparser/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/streamhtmlparser/distinfo Tue Aug 14 22:52:54 2012 (r302535) @@ -0,0 +1,2 @@ +SHA256 (streamhtmlparser-0.1.tar.gz) = b9289b0d75e85a077a2d539ac7e8a5c66ffcee8f3c1f9de800ea542c66e308b2 +SIZE (streamhtmlparser-0.1.tar.gz) = 460945 Added: head/devel/streamhtmlparser/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/streamhtmlparser/pkg-descr Tue Aug 14 22:52:54 2012 (r302535) @@ -0,0 +1,9 @@ +Implementation of an html and javascript context scanner with no +lookahead. Its purpose is to scan an html document and provide context +information at any point within the input stream. An example of a user +of this scanner would be an auto escaping templating system, which would +require html context information at very specific points within the html +stream. The implementation is based on a simplified state machine of +HTML4.1 and javascript. The code also contains C++ and python bindings. + +WWW: http://code.google.com/p/streamhtmlparser/ Added: head/devel/streamhtmlparser/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/streamhtmlparser/pkg-plist Tue Aug 14 22:52:54 2012 (r302535) @@ -0,0 +1,18 @@ +%%PYBINDINGS%%%%PYTHON_SITELIBDIR%%/py_streamhtmlparser.so +%%STATIC%%lib/libstreamhtmlparser.a +lib/libstreamhtmlparser.so +lib/libstreamhtmlparser.so.0 +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@unexec %D/%%DOCSDIR%% 2>/dev/null || true +include/streamhtmlparser/statemachine.h +include/streamhtmlparser/jsparser.h +include/streamhtmlparser/htmlparser.h +include/streamhtmlparser/htmlparser_cpp.h +@dirrm include/streamhtmlparser +@unexec %D/include/streamhtmlparser 2>/dev/null || true
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208142252.q7EMqs0H062232>