diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2005-11-08 21:42:35 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2005-11-08 21:42:35 +0000 |
commit | b0290825995282b87f5a7d42dca4c66da63d44e0 (patch) | |
tree | 931e8b88cdc85433077e0d2367399fc7771223bd /lang/php_doc | |
parent | f637a54a40cfdb2201aa555d506adaa797406e89 (diff) | |
download | ports-b0290825995282b87f5a7d42dca4c66da63d44e0.tar.gz ports-b0290825995282b87f5a7d42dca4c66da63d44e0.zip |
Notes
Diffstat (limited to 'lang/php_doc')
-rw-r--r-- | lang/php_doc/Makefile | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/lang/php_doc/Makefile b/lang/php_doc/Makefile index 5c8d70518047..b80b8dac8014 100644 --- a/lang/php_doc/Makefile +++ b/lang/php_doc/Makefile @@ -30,15 +30,18 @@ SLAVEDIRS= arabic/php_doc \ russian/php_doc PHP_LANG?= en +PHP_LANGS= ${PHP_WRKDIR} ${PHP_WRKSRC} +PHP_WRKDIR= ar br de en fr hu pl ru tw zh +PHP_WRKSRC= hk ja kr PHPDOCDIR= ${PREFIX}/share/doc/php-${PHP_LANG} PLIST= ${WRKDIR}/pkg-plist -.for lang in hk ja kr +.for lang in ${PHP_WRKSRC} .if ${PHP_LANG} == ${lang} WRK_SRC= ${WRKDIR} .endif .endfor -.for lang in ar br de en fr hu pl ru tw zh +.for lang in ${PHP_WRKDIR} .if ${PHP_LANG} == ${lang} WRK_SRC= ${WRKDIR}/html .endif @@ -81,27 +84,17 @@ do-install: done # this is for the maintainer only -.if defined(MAINTAINER_MODE) -LOCAL_DISTDIR?= /var/tmp/php_doc/php -LOCAL_TMPDIR?= /var/tmp/php_doc/tmp -DISTSITE?= http://de.php.net/distributions/manual/ -localfetch: -.for lang in br de en es fr ja - ${MKDIR} ${LOCAL_DISTDIR} - [ -f ${LOCAL_DISTDIR}/php_manual_${lang}${EXTRACT_SUFX} ] || \ - ${FETCH_CMD} -o ${LOCAL_DISTDIR}/php_manual_${lang}${EXTRACT_SUFX} ${DISTSITE}php_manual_${lang}${EXTRACT_SUFX} - - ${MKDIR} ${LOCAL_TMPDIR}/${lang} - cd ${LOCAL_TMPDIR}/${lang} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${LOCAL_DISTDIR}/php_manual_${lang}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS} - - (cd ${LOCAL_TMPDIR}/${lang} && ${LS} -1) | ${PERL} -pe 'print "%%PHPDOCDIR%%/$_";' > ${.CURDIR}/pkg-plist.${lang} - ${ECHO_CMD} "@dirrm %%PHPDOCDIR%%" >> ${.CURDIR}/pkg-plist.${lang} - ${RM} -rf ${LOCAL_TMPDIR}/${lang} +makesum: + @> ${MD5_FILE} +.for l in ${PHP_LANGS} + @f=php_manual_${l}-${PORTVERSION}${EXTRACT_SUFX}; \ + ${ECHO_CMD} makesum on $${f}; \ + cd ${DISTDIR}; \ + ${MD5} $${f} >> ${MD5_FILE}; \ + ${SHA256} $${f} >> ${MD5_FILE}; \ + ${ECHO_CMD} "SIZE ($${f}) = "`${LS} -ALln $${f} | ${AWK} '{print $$5}'` >> ${MD5_FILE} .endfor - ${MV} ${.CURDIR}/pkg-plist.en ${.CURDIR}/pkg-plist - cd ${LOCAL_DISTDIR} && ${MD5} php_manual_* > ${.CURDIR}/distinfo -.endif .include <bsd.port.mk> |