From owner-svn-ports-all@FreeBSD.ORG Tue Aug 14 22:52:54 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EAE1B106566B; Tue, 14 Aug 2012 22:52:54 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CC0F88FC15; Tue, 14 Aug 2012 22:52:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7EMqsGx062238; Tue, 14 Aug 2012 22:52:54 GMT (envelope-from mandree@svn.freebsd.org) Received: (from mandree@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7EMqs0H062232; Tue, 14 Aug 2012 22:52:54 GMT (envelope-from mandree@svn.freebsd.org) Message-Id: <201208142252.q7EMqs0H062232@svn.freebsd.org> From: Matthias Andree Date: Tue, 14 Aug 2012 22:52:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302535 - in head/devel: . streamhtmlparser X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2012 22:52:55 -0000 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 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 +# +# $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 + +.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 + +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 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