1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/www/drush/Makefile
Philippe Audeoud 344e18e7c5 - Update to 6.1.0
- Migrate to Github
- enable STAGEing

PR:		ports/184040
Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr>
2013-12-09 10:30:04 +00:00

57 lines
1.5 KiB
Makefile

# Created by: Thomas Sandford <freebsduser@paradisegreen.co.uk>
# $FreeBSD$
PORTNAME= drush
PORTVERSION= 6.1.0
CATEGORIES= www
MAINTAINER= dgeo@centrale-marseille.fr
COMMENT= Drupal command line and scripting interface
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/share/pear/Console/Table.php:${PORTSDIR}/devel/pear-Console_Table
NO_BUILD= yes
GH_ACCOUNT= ${PORTNAME}-ops
GH_PROJECT= ${PORTNAME}
GH_COMMIT= d948558
USE_GITHUB= yes
# set php requirements same as drupal itself
USE_PHP= gd pcre session xml mbstring ctype json hash simplexml dom pdo filter
IGNORE_WITH_PHP=4
WANT_PHP_CLI= yes
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
do-configure:
@${REINPLACE_CMD} -e 's|XXXDATADIRXXX|${STAGEDIR}${DATADIR}|g' ${WRKSRC}/drush
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
( cd ${WRKSRC} && \
${COPYTREE_SHARE} "classes commands includes lib misc tests drush_logo-black.png drush.php drush.info" ${STAGEDIR}${DATADIR} && \
${INSTALL_DATA} drush_logo-black.png drush.php ${STAGEDIR}${DATADIR} && \
${INSTALL_SCRIPT} drush drush.complete.sh ${STAGEDIR}${DATADIR} )
${LN} -s ${DATADIR}/drush ${STAGEDIR}${PREFIX}/bin/drush
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
( cd ${WRKSRC} && ${INSTALL_MAN} *.md docs/* ${STAGEDIR}${DOCSDIR} )
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
( cd ${WRKSRC} && ${INSTALL_MAN} examples/* ${STAGEDIR}${EXAMPLESDIR} )
.endif
.include <bsd.port.mk>