blob: a1e2c92764c6325801778bcc207d70d90cbe2751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Created by: Thomas Sandford <freebsduser@paradisegreen.co.uk>
# $FreeBSD$
PORTNAME= drush
PORTVERSION= 6.2.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_TAGNAME= ${PORTVERSION}
GH_COMMIT= b1a8edb
USE_GITHUB= yes
# set php requirements same as drupal itself
USE_PHP= gd pcre session mbstring ctype json hash simplexml dom pdo filter
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>
|