Date: Mon, 18 Jan 2010 11:48:58 GMT From: Joe Horn <joehorn@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/142933: [NEW PORT] textproc/simplehtmldom : PHP Simple HTML DOM Parser Message-ID: <201001181148.o0IBmwAR073247@www.freebsd.org> Resent-Message-ID: <201001181150.o0IBo2YB087615@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 142933 >Category: ports >Synopsis: [NEW PORT] textproc/simplehtmldom : PHP Simple HTML DOM Parser >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jan 18 11:50:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Joe Horn >Release: 8.0-RELEASE-p2 >Organization: Taiwanese User >Environment: FreeBSD joehorn.idv.tw 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Fri Jan 8 23:08:25 CST 2010 root@joehorn.idv.tw:/usr/obj/usr/src/sys/joehorn amd64 >Description: PHP Simple HTML DOM Parser is a HTML DOM parser written in PHP5+, and it let you manipulate HTML in a very easy way! Features: * Supports invalid HTML. * Find tags on an HTML page with selectors just like jQuery. * Extract contents from HTML in a single line. >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: # # textproc/simplehtmldom # textproc/simplehtmldom/Makefile # textproc/simplehtmldom/distinfo # textproc/simplehtmldom/pkg-descr # textproc/simplehtmldom/pkg-message # textproc/simplehtmldom/pkg-plist # echo c - textproc/simplehtmldom mkdir -p textproc/simplehtmldom > /dev/null 2>&1 echo x - textproc/simplehtmldom/Makefile sed 's/^X//' >textproc/simplehtmldom/Makefile << 'c536c2c19d1f34123f32c2421d072d35' X# New ports collection makefile for: simplehtmldom X# Date created: 2010-01-18 X# Whom: Joe Horn <joehorn@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= simplehtmldom XDISTVERSION= 1.11 XCATEGORIES= textproc www XMASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION} XDISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g} X XMAINTAINER= joehorn@gmail.com XCOMMENT= PHP Simple HTML DOM Parser X XWRKSRC= ${WRKDIR}/${PORTNAME} X XUSE_ZIP= YES XUSE_PHP= YES XNO_BUILD= YES X XEXAMPLES_SUB_DIR= scraping XDOCS_SUB_DIR= css img js X XDEFAULT_PHP_VER= 5 XIGNORE_WITH_PHP= 4 X X.include <bsd.port.pre.mk> X Xdo-install: X @${MKDIR} ${DATADIR} ${EXAMPLESDIR} X @${ECHO_CMD} "=> Installing simple_html_dom.php to ${DATADIR}" X @${INSTALL} -c -m 644 ${WRKSRC}/simple_html_dom.php ${DATADIR} X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for _DOC in ${DOCS_SUB_DIR} X @${MKDIR} ${DOCSDIR}/${_DOC} X.endfor X @${ECHO_CMD} "=> Installing manuals to ${DOCSDIR}" X @cd ${WRKSRC}/manual && ${FIND} * -type f -exec ${INSTALL} -c -m 644 "{}" "${DOCSDIR}/{}" \; X.endif X.if !defined(NOPORTEXAMPLES) X @${MKDIR} ${EXAMPLESDIR} X.for _EXAMPLE in ${EXAMPLES_SUB_DIR} X @${MKDIR} ${EXAMPLESDIR}/${_EXAMPLE} X.endfor X @${ECHO_CMD} "=> Installing examples to ${EXAMPLESDIR}" X @cd ${WRKSRC}/example && ${FIND} * -type f -exec ${INSTALL} -c -m 644 "{}" "${EXAMPLESDIR}/{}" \; X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> c536c2c19d1f34123f32c2421d072d35 echo x - textproc/simplehtmldom/distinfo sed 's/^X//' >textproc/simplehtmldom/distinfo << '945b2229211ecac2849bc5abf54090e5' XMD5 (simplehtmldom_1_11.zip) = 0cb34bda21e3cf71c77ec9914322ac46 XSHA256 (simplehtmldom_1_11.zip) = 2959d456943d4cace8377b64b3d85e6b32bb0efb3a0fae303c22c5b0f348a8e2 XSIZE (simplehtmldom_1_11.zip) = 42274 945b2229211ecac2849bc5abf54090e5 echo x - textproc/simplehtmldom/pkg-descr sed 's/^X//' >textproc/simplehtmldom/pkg-descr << '86f681cd22248c6bf3683ef3142684e4' XPHP Simple HTML DOM Parser is a HTML DOM parser written in PHP5+, Xand it let you manipulate HTML in a very easy way! X XFeatures: X * Supports invalid HTML. X * Find tags on an HTML page with selectors just like jQuery. X * Extract contents from HTML in a single line. X XWWW: http://simplehtmldom.sourceforge.net/ 86f681cd22248c6bf3683ef3142684e4 echo x - textproc/simplehtmldom/pkg-message sed 's/^X//' >textproc/simplehtmldom/pkg-message << '8b72346d085436cbef44103e20de22f6' X XYou can add the library path (default: /usr/local/share/simplehtmldom) Xto the "include_path=" directive in your php.ini X 8b72346d085436cbef44103e20de22f6 echo x - textproc/simplehtmldom/pkg-plist sed 's/^X//' >textproc/simplehtmldom/pkg-plist << '7069b24713a40804f039eb42b34fba55' X%%PORTDOCS%%%%DOCSDIR%%/css/default.css X%%PORTDOCS%%%%DOCSDIR%%/css/ui.tabs.css X%%PORTDOCS%%%%DOCSDIR%%/img/tab.png X%%PORTDOCS%%%%DOCSDIR%%/js/jquery-1.2.3.pack.js X%%PORTDOCS%%%%DOCSDIR%%/js/ui.tabs.pack.js X%%PORTDOCS%%%%DOCSDIR%%/manual.htm X%%PORTDOCS%%%%DOCSDIR%%/manual_api.htm X%%PORTDOCS%%%%DOCSDIR%%/manual_faq.htm X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_advanced_selector.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_basic_selector.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_callback.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_extract_html.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_modify_contents.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping/example_scraping_digg.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping/example_scraping_imdb.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping/example_scraping_slashdot.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple_html_dom_utility.php X%%DATADIR%%/simple_html_dom.php X@dirrm %%DATADIR%% X%%PORTEXAMPLES%%@dirrm %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping X%%PORTEXAMPLES%%@dirrm %%PORTEXAMPLES%%%%EXAMPLESDIR%% X%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%%/js X%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%%/img X%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%%/css X%%PORTDOCS%%@dirrm %%PORTDOCS%%%%DOCSDIR%% 7069b24713a40804f039eb42b34fba55 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181148.o0IBmwAR073247>