aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php_doc
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php_doc')
-rw-r--r--lang/php_doc/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/lang/php_doc/Makefile b/lang/php_doc/Makefile
index 798e91524a90..0b99abe14c48 100644
--- a/lang/php_doc/Makefile
+++ b/lang/php_doc/Makefile
@@ -3,7 +3,7 @@
PORTNAME= php_doc
PORTVERSION?= 20131017
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES?= lang
MASTER_SITES= http://www.mavetju.org/download/adopted/
DISTNAME= php_manual_${PHP_LANG}-${PORTVERSION}
@@ -11,9 +11,9 @@ DISTNAME= php_manual_${PHP_LANG}-${PORTVERSION}
MAINTAINER= edwin@mavetju.org
COMMENT?= PHP documentation in HTML
-NO_BUILD= YES
+NO_BUILD= yes
NO_ARCH= yes
-NO_WRKSUBDIR= YES
+NO_WRKSUBDIR= yes
SLAVEDIRS= french/php_doc \
german/php_doc \
japanese/php_doc \
@@ -28,12 +28,12 @@ PLIST= ${WRKDIR}/pkg-plist
.for lang in ${PHP_HTML_NORMAL}
.if ${PHP_LANG} == ${lang}
-WRK_SRC= ${WRKDIR}/${PORTNAME}-${PHP_LANG}-${PORTVERSION}/html/
+WRK_SRC= ${WRKSRC}/html/
.endif
.endfor
.for lang in ${PHP_HTML_CHUNKED}
.if ${PHP_LANG} == ${lang}
-WRK_SRC= ${WRKDIR}/${PORTNAME}-${PHP_LANG}-${PORTVERSION}/php-chunked-xhtml/
+WRK_SRC= ${WRKSRC}/php-chunked-xhtml/
.endif
.endfor
@@ -57,6 +57,7 @@ pre-install:
${FIND} ${WRK_SRC} -type f ! -name '.*' ! -name pkg-plist | ${SED} -e "s,${WRK_SRC},%%PHPDOCDIR%%," > ${PLIST}
do-install:
+ @[ -d "${WRK_SRC}" ] # ensure dir exists, else we can silently get an empty package
@${MKDIR} ${STAGEDIR}${PHPDOCDIR}
${FIND} ${WRK_SRC} -type d | ${SED} -e "s,${WRK_SRC},${STAGEDIR}${PHPDOCDIR}/," | ${XARGS} ${MKDIR}
for f in `${FIND} ${WRK_SRC} -type f ! -name '.*' ! -name pkg-plist | ${SED} -e 's,${WRK_SRC},,'`; do \