diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-05 02:47:15 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-05 02:47:15 +0800 |
commit | 46f0439f6a8a67811e436ddcc6f7befa742806a3 (patch) | |
tree | 9ced5f31f06c5cb1ca5132774c549ce43e74bfaa /lang/php_doc | |
parent | 35b372a8adb8d39fe1b336d51c32c4d69aa064ac (diff) | |
download | freebsd-ports-gnome-46f0439f6a8a67811e436ddcc6f7befa742806a3.tar.gz freebsd-ports-gnome-46f0439f6a8a67811e436ddcc6f7befa742806a3.tar.zst freebsd-ports-gnome-46f0439f6a8a67811e436ddcc6f7befa742806a3.zip |
- Fix from r407972 was broken by PORTREVISION bump. Fix the port properly and add a check which will make it fail verbosely if there are more problems.
Approved by: portmgr blanket
Diffstat (limited to 'lang/php_doc')
-rw-r--r-- | lang/php_doc/Makefile | 11 |
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 \ |