From nobody@FreeBSD.org  Wed Aug  8 01:59:12 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2D123106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Aug 2012 01:59:12 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 177508FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Aug 2012 01:59:12 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q781xBV0097121
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Aug 2012 01:59:11 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q781xBrt097120;
	Wed, 8 Aug 2012 01:59:11 GMT
	(envelope-from nobody)
Message-Id: <201208080159.q781xBrt097120@red.freebsd.org>
Date: Wed, 8 Aug 2012 01:59:11 GMT
From: HU Dong <itechbear@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: devel/streamhtmlparser A stream html parser library from Google
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170472
>Category:       ports
>Synopsis:       New port: devel/streamhtmlparser A stream html parser library from Google
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mandree
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 08 02:00:12 UTC 2012
>Closed-Date:    Tue Aug 14 22:54:16 UTC 2012
>Last-Modified:  Tue Aug 14 23:00:17 UTC 2012
>Originator:     HU Dong
>Release:        9.0 Release i386
>Organization:
None
>Environment:
FreeBSD  9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Description: A stream html parser library from Google

Homepage: http://code.google.com/p/streamhtmlparser/

Redports: https://redports.org/buildarchive/20120807072717-14449/

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	streamhtmlparser
#	streamhtmlparser/distinfo
#	streamhtmlparser/Makefile
#	streamhtmlparser/pkg-descr
#	streamhtmlparser/pkg-plist
#
echo c - streamhtmlparser
mkdir -p streamhtmlparser > /dev/null 2>&1
echo x - streamhtmlparser/distinfo
sed 's/^X//' >streamhtmlparser/distinfo << '325980a0dc36fa8070aea986a7deee28'
XSHA256 (streamhtmlparser-0.1.tar.gz) = b9289b0d75e85a077a2d539ac7e8a5c66ffcee8f3c1f9de800ea542c66e308b2
XSIZE (streamhtmlparser-0.1.tar.gz) = 460945
325980a0dc36fa8070aea986a7deee28
echo x - streamhtmlparser/Makefile
sed 's/^X//' >streamhtmlparser/Makefile << 'fe8121280b4b2d892f8701a4bfdb5303'
X# New ports collection makefile for:	streamhtmlparser
X# Date created:        7 August 2012
X# Whom:                HU Dong <itechbear@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	streamhtmlparser
XPORTVERSION=	0.1
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER=	itechbear@gmail.com
XCOMMENT=	C/C++/Python streaming HTML parser library from Google
X
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_LDCONFIG=	yes
X
XOPTIONS_DEFINE=	DOCS STATIC SHARED PYBINDINGS
XPYBINDINGS_DESC=Install Python bindings
XSTATIC_DESC=	Install static library
XSHARED_DESC=	Install shared library(required)
XOPTIONS_DEFAULT=STATIC SHARED
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MPYBINDINGS}
XCONFIGURE_ARGS+=--enable-python
XCFLAGS+=	-I ${PYTHON_INCLUDEDIR}
XPLIST_SUB+=	PYBINDINGS=""
X.else
XCONFIGURE_ARGS+=--disable-python
XPLIST_SUB+=	PYBINDINGS="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MSTATIC}
XCONFIGURE_ARGS+=--enable-static
XPLIST_SUB+=	STATIC=""
X.else
XCONFIGURE_ARGS+=--disable-static
XPLIST_SUB+=	STATIC="@comment "
X.endif
X
X.if ${PORT_OPTIONS:MSHARED}
XCONFIGURE_ARGS+=--enable-shared
XPLIST_SUB+=	SHARED=""
X.else
XCONFIGURE_ARGS+=--disable-static
XPLIST_SUB+=	SHARED="@comment "
X.endif
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|^docdir.*|docdir = ${DOCSDIR}|' ${WRKSRC}/Makefile.in
X.if defined(NOPORTDOCS)
X	@${REINPLACE_CMD} -E -e '/^install-data-am/,/^$$/ s,install-dist_docDATA,,g' ${WRKSRC}/Makefile.in
X.endif
X
X.include <bsd.port.post.mk>
fe8121280b4b2d892f8701a4bfdb5303
echo x - streamhtmlparser/pkg-descr
sed 's/^X//' >streamhtmlparser/pkg-descr << '44e294722dbafe1617d4ab42067e4c33'
XImplementation of an html and javascript context scanner with no lookahead. Its 
Xpurpose is to scan an html document and provide context information at any point
X within the input stream. An example of a user of this scanner would be an auto 
Xescaping templating system, which would require html context information at very
X specific points within the html stream. The implementation is based on a 
Xsimplified state machine of HTML4.1 and javascript. The code also contains C++ 
Xand python bindings.
X
XWWW: http://code.google.com/p/streamhtmlparser/
44e294722dbafe1617d4ab42067e4c33
echo x - streamhtmlparser/pkg-plist
sed 's/^X//' >streamhtmlparser/pkg-plist << '3b808d09ce494ed7eb337d0db9eba9bf'
X%%PYBINDINGS%%%%PYTHON_SITELIBDIR%%/py_streamhtmlparser.so
X%%STATIC%%lib/libstreamhtmlparser.a
X%%SHARED%%lib/libstreamhtmlparser.so
X%%SHARED%%lib/libstreamhtmlparser.so.0
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@unexec %D/%%DOCSDIR%% 2>/dev/null || true
Xinclude/streamhtmlparser/statemachine.h
Xinclude/streamhtmlparser/jsparser.h
Xinclude/streamhtmlparser/htmlparser.h
Xinclude/streamhtmlparser/htmlparser_cpp.h
X@dirrm include/streamhtmlparser
X@unexec %D/include/streamhtmlparser 2>/dev/null || true
3b808d09ce494ed7eb337d0db9eba9bf
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mandree 
Responsible-Changed-By: mandree 
Responsible-Changed-When: Tue Aug 14 22:37:10 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170472 
State-Changed-From-To: open->closed 
State-Changed-By: mandree 
State-Changed-When: Tue Aug 14 22:54:15 UTC 2012 
State-Changed-Why:  
New port added, with minor changes. Thanks!  Note that I have removed 
the SHARED non-option, so as not to confuse users with an option they 
cannot disable.  Note also that I needed to add USE_PYTHON to fix the 
build (else the Python includes would not be found) and have reformatted 
pkg-descr. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=170472 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/170472: commit references a PR
Date: Tue, 14 Aug 2012 22:53:04 +0000 (UTC)

 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
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
