aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-08-06 02:02:39 +0800
committerpawel <pawel@FreeBSD.org>2014-08-06 02:02:39 +0800
commitd00e5be3b05946fd3567d71a83d03ab55418fb10 (patch)
tree3936bd9436d374b55ef524fd9868bdfcf4c24551 /textproc
parent2d558aace6ccc540d2f358f43e740f487b44c67a (diff)
downloadfreebsd-ports-graphics-d00e5be3b05946fd3567d71a83d03ab55418fb10.tar.gz
freebsd-ports-graphics-d00e5be3b05946fd3567d71a83d03ab55418fb10.tar.zst
freebsd-ports-graphics-d00e5be3b05946fd3567d71a83d03ab55418fb10.zip
- Add staging support
- Convert to new options framework - Fix indentation
Diffstat (limited to 'textproc')
-rw-r--r--textproc/simplehtmldom/Makefile75
1 files changed, 25 insertions, 50 deletions
diff --git a/textproc/simplehtmldom/Makefile b/textproc/simplehtmldom/Makefile
index 8d3fdabba22..b1b7d12a231 100644
--- a/textproc/simplehtmldom/Makefile
+++ b/textproc/simplehtmldom/Makefile
@@ -1,65 +1,40 @@
# Created by: Joe Horn <joehorn@gmail.com>
# $FreeBSD$
-PORTNAME= simplehtmldom
-DISTVERSION= 1.5
-PORTEPOCH= 1
-CATEGORIES= textproc www
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
-DISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g}
+PORTNAME= simplehtmldom
+DISTVERSION= 1.5
+PORTEPOCH= 1
+CATEGORIES= textproc www
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}
+DISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
-COMMENT= PHP Simple HTML DOM Parser
-
-WRKSRC= ${WRKDIR}
+COMMENT= PHP Simple HTML DOM Parser
USES= zip
-NO_BUILD= YES
-
-USE_PHP= pcre
+NO_BUILD= yes
+NO_WRKSRC= yes
+USE_PHP= pcre
DEFAULT_PHP_VER= 5
-SUB_FILES+= pkg-message
-SUB_LIST+= DATADIR=${DATADIR} PREFIX=${PREFIX}
+SUB_FILES+= pkg-message
+SUB_LIST+= DATADIR=${DATADIR} PREFIX=${PREFIX}
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
- @${FIND} ${WRKSRC} -name .svn -type d | ${XARGS} ${RM} -rf
+ @${FIND} ${WRKDIR} -name .svn -type d | ${XARGS} ${RM} -rf
do-install:
- @${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}
- @${ECHO_CMD} "=> Installing manuals to ${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}
- @${ECHO_CMD} "=> Installing examples to ${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:
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKDIR} && ${INSTALL} -c -m 644 simple_html_dom.php \
+ change_log.txt ${STAGEDIR}${DATADIR})
+ (cd ${WRKDIR} && ${COPYTREE_SHARE} "app testcase" \
+ ${STAGEDIR}${DATADIR})
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKDIR}/manual && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKDIR}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>