mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
- Update to 1.5
- Bump PORTEPOCH for version goes from 1.11 to 1.5 PR: ports/163818 Submitted by: Joe Horn <joehorn@gmail.com> (maintainer)
This commit is contained in:
parent
689b7e1db9
commit
52958d07bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289412
@ -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 @@ DISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g}
|
||||
MAINTAINER= joehorn@gmail.com
|
||||
COMMENT= PHP Simple HTML DOM Parser
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}
|
||||
|
||||
USE_ZIP= YES
|
||||
NO_BUILD= YES
|
||||
@ -28,30 +28,39 @@ IGNORE_WITH_PHP= 4
|
||||
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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
@dirrm %%DATADIR%%/testcase/reader
|
||||
@dirrm %%DATADIR%%/testcase/html
|
||||
@dirrm %%DATADIR%%/testcase
|
||||
@dirrm %%DATADIR%%/app/js/images
|
||||
@dirrm %%DATADIR%%/app/js
|
||||
@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%%
|
||||
@exec mkdir -p %D/%%DATADIR%%/testcase/html
|
||||
|
Loading…
Reference in New Issue
Block a user