freebsd-ports/russian/wordpress/Makefile
Ruslan Makhmatkhanov e4e65328dd - update russian [1], chinese_zh_TW [2] and chinese_zh_CN [3]
versions of wordpress to 3.5

while here, make changes common for all of this ports:
- trim Makefile header
- remove indefinite article from COMMENT
- do not define LICENSE_FILE for standard license
- remove license.txt from PORTDOCS
- tab -> space change in pkg-descr:WWW
- trailing whitespace fixes

PR:		174399 [1]
PR: 174452 [2]
PR: 174400 [3]
Submitted by: Mihail Timofeev <9267096@gmail.com> (maintainer) [1],
              Bo-Yi Wu <appleboy.tw@gmail.com> [2],
              Joe Horn <joehorn@gmail.com> (maintainer) [3]
Approved by:	Joe Horn <joehorn@gmail.com> (maintainer) [2]
2012-12-16 19:24:53 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Mihail Timofeev <9267096@gmail.com>
# $FreeBSD$
PORTNAME= wordpress
PORTVERSION= 3.5
CATEGORIES= russian www
MASTER_SITES= http://ru.wordpress.org/
DISTNAME= ${PORTNAME}-${PORTVERSION}-ru_RU
MAINTAINER= 9267096@gmail.com
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2
CONFLICTS_INSTALL= wordpress-3.* de-wordpress-3.* ja-wordpress-3.*
NO_BUILD= yes
USE_ZIP= yes
USE_PHP= curl gd mysql pcre tokenizer xml zip
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= readme.html
SUB_FILES= pkg-message
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@${ECHO_CMD} ""
@sleep 1
pre-install:
cd ${WRKSRC}/ && \
(${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|'; \
${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|') > ${PLIST}
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
do-install:
${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/
${CP} -R ${WRKSRC}/ ${WWWDIR}/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>