ports/163818: [MAINTAINER] textproc/simplehtmldom: update to 1.5

Joe Horn joehorn at gmail.com
Thu Jan 5 02:22:35 UTC 2012


Excuse me.
Here is the new patch file.

2012/1/5 <lwhsu at freebsd.org>

> Synopsis: [MAINTAINER] textproc/simplehtmldom: update to 1.5
>
> State-Changed-From-To: open->feedback
> State-Changed-By: lwhsu
> State-Changed-When: Wed Jan 4 20:42:19 UTC 2012
> State-Changed-Why:
> Installing files with '.svn' looks a bit strange, is this necessary?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=163818
>
-------------- next part --------------
===> Generating patch
===> Viewing diff with more
diff -ruN --exclude=CVS /usr/ports/textproc/simplehtmldom/Makefile /home/admin/joehorn/simplehtmldom/Makefile
--- /usr/ports/textproc/simplehtmldom/Makefile	2010-02-02 23:33:18.000000000 +0800
+++ /home/admin/joehorn/simplehtmldom/Makefile	2012-01-05 09:46:11.000000000 +0800
@@ -6,8 +6,8 @@
 #
 
 PORTNAME=		simplehtmldom
-DISTVERSION=		1.11
-PORTREVISION=		1
+DISTVERSION=		1.5
+PORTEPOCH=		1
 CATEGORIES=		textproc www
 MASTER_SITES=		SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
 DISTNAME=		${PORTNAME}_${DISTVERSION:S/./_/g}
@@ -15,7 +15,7 @@
 MAINTAINER=		joehorn at gmail.com
 COMMENT=		PHP Simple HTML DOM Parser
 
-WRKSRC=			${WRKDIR}/${PORTNAME}
+WRKSRC=			${WRKDIR}
 
 USE_ZIP=		YES
 NO_BUILD=		YES
@@ -28,30 +28,39 @@
 SUB_FILES+=		pkg-message
 SUB_LIST+=		DATADIR=${DATADIR} PREFIX=${PREFIX}
 
-EXAMPLES_SUB_DIR=	scraping
-DOCS_SUB_DIR=		css img js
-
 .include <bsd.port.pre.mk>
 
+post-extract:
+	@${FIND} ${WRKSRC} -name .svn -type d | ${XARGS} ${RM} -rf
+
 do-install:
-	@${MKDIR} ${DATADIR}
-	@${ECHO_CMD} "=> Installing simple_html_dom.php to ${DATADIR}"
+	@${MKDIR} ${DATADIR} ${DATADIR}/app ${DATADIR}/testcase
+	@${ECHO_CMD} "=> Installing programs to ${DATADIR}"
 	@${INSTALL} -c -m 644 ${WRKSRC}/simple_html_dom.php ${DATADIR}
+	@${INSTALL} -c -m 644 ${WRKSRC}/change_log.txt ${DATADIR}
+	@cd ${WRKSRC}/app && ${FIND} . -type d \
+		-exec ${MKDIR} ${DATADIR}/app/{} \;
+	@cd ${WRKSRC}/app && ${FIND} . -type f \
+		-exec ${INSTALL} -c -m 644 "{}" "${DATADIR}/app/{}" \;
+	@cd ${WRKSRC}/testcase && ${FIND} . -type d \
+		-exec ${MKDIR} ${DATADIR}/testcase/{} \;
+	@cd ${WRKSRC}/testcase && ${FIND} . -type f \
+		-exec ${INSTALL} -c -m 644 "{}" "${DATADIR}/testcase/{}" \;
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-.for _DOC in ${DOCS_SUB_DIR}
-	@${MKDIR} ${DOCSDIR}/${_DOC}
-.endfor
 	@${ECHO_CMD} "=> Installing manuals to ${DOCSDIR}"
-	@cd ${WRKSRC}/manual && ${FIND} * -type f -exec ${INSTALL} -c -m 644 "{}" "${DOCSDIR}/{}" \;
+	@cd ${WRKSRC}/manual && ${FIND} . -type d \
+		-exec ${MKDIR} ${DOCSDIR}/{} \;
+	@cd ${WRKSRC}/manual && ${FIND} . -type f \
+		-exec ${INSTALL} -c -m 644 "{}" "${DOCSDIR}/{}" \;
 .endif
 .if !defined(NOPORTEXAMPLES)
 	@${MKDIR} ${EXAMPLESDIR}
-.for _EXAMPLE in ${EXAMPLES_SUB_DIR}
-	@${MKDIR} ${EXAMPLESDIR}/${_EXAMPLE}
-.endfor
 	@${ECHO_CMD} "=> Installing examples to ${EXAMPLESDIR}"
-	@cd ${WRKSRC}/example && ${FIND} * -type f -exec ${INSTALL} -c -m 644 "{}" "${EXAMPLESDIR}/{}" \;
+	@cd ${WRKSRC}/example && ${FIND} . -type d \
+		-exec ${MKDIR} ${EXAMPLESDIR}/{} \;
+	@cd ${WRKSRC}/example && ${FIND} . -type f \
+		-exec ${INSTALL} -c -m 644 "{}" "${EXAMPLESDIR}/{}" \;
 .endif
 
 post-install:
diff -ruN --exclude=CVS /usr/ports/textproc/simplehtmldom/distinfo /home/admin/joehorn/simplehtmldom/distinfo
--- /usr/ports/textproc/simplehtmldom/distinfo	2011-07-03 22:40:08.000000000 +0800
+++ /home/admin/joehorn/simplehtmldom/distinfo	2012-01-05 00:30:41.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (simplehtmldom_1_11.zip) = 2959d456943d4cace8377b64b3d85e6b32bb0efb3a0fae303c22c5b0f348a8e2
-SIZE (simplehtmldom_1_11.zip) = 42274
+SHA256 (simplehtmldom_1_5.zip) = 91e0b7f3b92c3bee05936465c46e93c9678d2bcb1fc837d4a72856decda4ecbe
+SIZE (simplehtmldom_1_5.zip) = 341002
diff -ruN --exclude=CVS /usr/ports/textproc/simplehtmldom/pkg-plist /home/admin/joehorn/simplehtmldom/pkg-plist
--- /usr/ports/textproc/simplehtmldom/pkg-plist	2010-01-27 09:06:15.000000000 +0800
+++ /home/admin/joehorn/simplehtmldom/pkg-plist	2012-01-05 09:46:49.000000000 +0800
@@ -1,4 +1,3 @@
-%%DATADIR%%/simple_html_dom.php
 %%PORTDOCS%%%%DOCSDIR%%/css/default.css
 %%PORTDOCS%%%%DOCSDIR%%/css/ui.tabs.css
 %%PORTDOCS%%%%DOCSDIR%%/img/tab.png
@@ -16,10 +15,47 @@
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping/example_scraping_imdb.php
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/scraping/example_scraping_slashdot.php
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple_html_dom_utility.php
+%%DATADIR%%/app/google.htm
+%%DATADIR%%/app/index.php
+%%DATADIR%%/app/js/images/treeview-default-line.gif
+%%DATADIR%%/app/js/images/treeview-default.gif
+%%DATADIR%%/app/js/jquery.js
+%%DATADIR%%/app/js/jquery.treeview.css
+%%DATADIR%%/app/js/jquery.treeview.js
+%%DATADIR%%/app/js/screen.css
+%%DATADIR%%/change_log.txt
+%%DATADIR%%/simple_html_dom.php
+%%DATADIR%%/testcase/all_test.php
+%%DATADIR%%/testcase/callback_testcase.php
+%%DATADIR%%/testcase/dom_testcase.php
+%%DATADIR%%/testcase/element_testcase.php
+%%DATADIR%%/testcase/invalid_testcase.php
+%%DATADIR%%/testcase/jquery-1.2.3.pack.js
+%%DATADIR%%/testcase/mass_test.php
+%%DATADIR%%/testcase/memory_test.php
+%%DATADIR%%/testcase/misc_testcase.php
+%%DATADIR%%/testcase/performance_test.php
+%%DATADIR%%/testcase/reader/all_test.php
+%%DATADIR%%/testcase/reader/element_testcase.php
+%%DATADIR%%/testcase/reader/memory_test.php
+%%DATADIR%%/testcase/reader/performance_test.php
+%%DATADIR%%/testcase/reader/selector_testcase.php
+%%DATADIR%%/testcase/selector_testcase.php
+%%DATADIR%%/testcase/slick_test.php
+%%DATADIR%%/testcase/slickspeed.htm
+%%DATADIR%%/testcase/std_testcase.php
+%%DATADIR%%/testcase/strip_testcase.php
+ at dirrm %%DATADIR%%/testcase/reader
+ at dirrm %%DATADIR%%/testcase/html
+ at dirrm %%DATADIR%%/testcase
+ at dirrm %%DATADIR%%/app/js/images
+ at dirrm %%DATADIR%%/app/js
+ at dirrm %%DATADIR%%/app
 @dirrm %%DATADIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scraping
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/js
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/img
 %%PORTDOCS%%@dirrm %%DOCSDIR%%/css
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/scraping
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+ at exec mkdir -p %D/%%DATADIR%%/testcase/html
===> Done


More information about the freebsd-ports-bugs mailing list