aboutsummaryrefslogtreecommitdiff
path: root/www/drush/Makefile
blob: 755a840484bfb86bac79ce24c11258dbaefe1ce9 (plain) (blame)
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
# Created by: Thomas Sandford <freebsduser@paradisegreen.co.uk>
# $FreeBSD$

PORTNAME=	drush
PORTVERSION=	8.1.5
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	https://github.com/drush-ops/drush/releases/download/${DISTVERSION}/
DISTNAME=	drush
EXTRACT_SUFX=	.phar

MAINTAINER=	idefix@fechner.net
COMMENT=	Drupal command line and scripting interface

LICENSE=	GPLv2

NO_BUILD=	yes
NO_WRKSUBDIR=	yes

USES=		php:cli
# set php requirements same as drupal itself
USE_PHP=	gd pcre session mbstring ctype json hash simplexml dom pdo filter phar

PLIST_FILES=	bin/drush bin/drush.phar

do-extract:
		${MKDIR} ${WRKSRC}/
		${CP} ${_DISTDIR}/drush.phar ${WRKSRC}/

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/drush.phar ${STAGEDIR}${PREFIX}/bin/
	${LN} -s drush.phar ${STAGEDIR}${PREFIX}/bin/drush

.include <bsd.port.mk>