2001-04-24 18:06:38 +00:00
|
|
|
# New ports collection makefile for: php_doc
|
|
|
|
# Date created: Sun Apr 22 14:51:32 CEST 2001
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= php_doc
|
2006-02-09 04:20:56 +00:00
|
|
|
PORTVERSION= 20060209
|
2001-04-29 13:42:38 +00:00
|
|
|
CATEGORIES?= lang
|
2004-06-14 02:37:24 +00:00
|
|
|
MASTER_SITES= http://www.mavetju.org/download/adopted/
|
|
|
|
DISTNAME= php_manual_${PHP_LANG}-${PORTVERSION}
|
2001-04-24 18:06:38 +00:00
|
|
|
|
2004-06-14 02:37:24 +00:00
|
|
|
MAINTAINER= edwin@mavetju.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= PHP documentation in HTML
|
2001-04-24 18:06:38 +00:00
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
NO_WRKSUBDIR= YES
|
2005-05-23 06:47:26 +00:00
|
|
|
SLAVEDIRS= arabic/php_doc \
|
|
|
|
chinese/php_doc-hk \
|
|
|
|
chinese/php_doc-tw \
|
|
|
|
chinese/php_doc-zh \
|
|
|
|
french/php_doc \
|
|
|
|
german/php_doc \
|
|
|
|
hungarian/php_doc \
|
|
|
|
japanese/php_doc \
|
|
|
|
korean/php_doc \
|
|
|
|
polish/php_doc \
|
|
|
|
portugese/php_doc \
|
|
|
|
russian/php_doc
|
2001-04-24 18:06:38 +00:00
|
|
|
|
|
|
|
PHP_LANG?= en
|
2005-11-08 21:42:35 +00:00
|
|
|
PHP_LANGS= ${PHP_WRKDIR} ${PHP_WRKSRC}
|
|
|
|
PHP_WRKDIR= ar br de en fr hu pl ru tw zh
|
|
|
|
PHP_WRKSRC= hk ja kr
|
2004-06-14 02:37:24 +00:00
|
|
|
PHPDOCDIR= ${PREFIX}/share/doc/php-${PHP_LANG}
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2001-04-24 18:06:38 +00:00
|
|
|
|
2005-11-08 21:42:35 +00:00
|
|
|
.for lang in ${PHP_WRKSRC}
|
2005-05-28 00:14:36 +00:00
|
|
|
.if ${PHP_LANG} == ${lang}
|
|
|
|
WRK_SRC= ${WRKDIR}
|
|
|
|
.endif
|
|
|
|
.endfor
|
2005-11-08 21:42:35 +00:00
|
|
|
.for lang in ${PHP_WRKDIR}
|
2005-05-28 00:14:36 +00:00
|
|
|
.if ${PHP_LANG} == ${lang}
|
|
|
|
WRK_SRC= ${WRKDIR}/html
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2004-06-14 02:37:24 +00:00
|
|
|
PKGNAMESUFFIX= -${PHP_LANG}
|
2001-04-24 18:06:38 +00:00
|
|
|
|
|
|
|
PLIST_SUB= PHPDOCDIR=${PHPDOCDIR:S/^${PREFIX}\///}
|
|
|
|
|
2001-04-29 13:31:34 +00:00
|
|
|
.if ${PHP_LANG} == en
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You may set PHP_LANG to"
|
2005-05-23 06:10:03 +00:00
|
|
|
@${ECHO} " ar (arabic),"
|
2004-06-14 23:27:54 +00:00
|
|
|
@${ECHO} " br (brazillian),"
|
2001-04-29 13:31:34 +00:00
|
|
|
@${ECHO} " de (german),"
|
2005-05-28 00:14:36 +00:00
|
|
|
@${ECHO} " en (english),"
|
2001-11-25 17:02:57 +00:00
|
|
|
@${ECHO} " fr (french) or"
|
2005-05-23 06:10:03 +00:00
|
|
|
@${ECHO} " hu (hungarian) or"
|
2001-11-25 17:02:57 +00:00
|
|
|
@${ECHO} " ja (japanese)"
|
2005-05-23 06:46:05 +00:00
|
|
|
@${ECHO} " hk (Chinese Hong Kong Cantonese)"
|
2005-05-23 06:10:03 +00:00
|
|
|
@${ECHO} " kr (korean)"
|
2004-07-03 12:54:52 +00:00
|
|
|
@${ECHO} " pl (polish)"
|
2005-05-23 06:10:03 +00:00
|
|
|
@${ECHO} " ru (russian)"
|
2005-05-23 06:46:05 +00:00
|
|
|
@${ECHO} " tw (Chinese traditional)"
|
|
|
|
@${ECHO} " zh (Chinese Simplified)"
|
2001-04-29 13:31:34 +00:00
|
|
|
@${ECHO} "to get a different language than the default one (english)."
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
2004-06-14 02:37:24 +00:00
|
|
|
pre-install:
|
2005-05-28 00:14:36 +00:00
|
|
|
${FIND} ${WRK_SRC} -type f ! -name '.*' ! -name pkg-plist | ${SED} -e "s,${WRK_SRC},%%PHPDOCDIR%%," > ${PLIST}
|
|
|
|
${FIND} ${WRK_SRC} -type d | ${SORT} -r | ${SED} -e "s,${WRK_SRC},@dirrm %%PHPDOCDIR%%," >> ${PLIST}
|
2004-06-14 02:37:24 +00:00
|
|
|
|
2001-04-24 18:06:38 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PHPDOCDIR}
|
2005-05-28 00:14:36 +00:00
|
|
|
${FIND} ${WRK_SRC} -type d | ${SED} -e "s,${WRK_SRC},${PHPDOCDIR}/," | ${XARGS} ${MKDIR}
|
|
|
|
for f in `${FIND} ${WRK_SRC} -type f ! -name '.*' ! -name pkg-plist | ${SED} -e "s,${WRK_SRC}/,,"`; do \
|
|
|
|
${INSTALL_DATA} ${WRK_SRC}/$$f ${PHPDOCDIR}/$$f; \
|
2001-04-24 18:06:38 +00:00
|
|
|
done
|
|
|
|
|
2001-08-05 21:06:13 +00:00
|
|
|
# this is for the maintainer only
|
|
|
|
|
2006-02-09 04:20:56 +00:00
|
|
|
#
|
|
|
|
# php_manual_fr.html.gz
|
|
|
|
#
|
|
|
|
# Download the files from http://au.php.net/distributions/manual/
|
|
|
|
#
|
2005-11-08 21:42:35 +00:00
|
|
|
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}
|
2001-08-05 21:06:13 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
|
2001-04-24 18:06:38 +00:00
|
|
|
.include <bsd.port.mk>
|