This is packaged from a locally generated tarball, built from the downloaded github archive, plus required dependencies installed via composer. Specifically not using upstream's normal .phar because we need to patch it so backups work (it uses options not supported by base tar). Drop the forced dependency on Drupal 6 as this is suitable for D6/7/8 and is useful for people who have installed Drupal outside of ports.
36 lines
925 B
Makefile
36 lines
925 B
Makefile
# $OpenBSD: Makefile,v 1.11 2016/02/27 17:15:24 sthen Exp $
|
|
|
|
COMMENT = command line access to most of Drupal
|
|
|
|
CATEGORIES = www devel
|
|
|
|
V= 8.0.3
|
|
DISTNAME= drush-$V
|
|
EXTRACT_SUFX= -deps.tar.xz
|
|
|
|
HOMEPAGE= http://www.drush.org/
|
|
|
|
# packaged from github/drush-ops/drush tag 8.0.3 plus dependencies
|
|
# fetched using "composer install" as of 20160227
|
|
MASTER_SITES= https://spacehopper.org/mirrors/
|
|
|
|
MODULES= lang/php
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
NO_BUILD= Yes
|
|
RUN_DEPENDS= archivers/gtar
|
|
SUBST_VARS= MODPHP_BIN
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/drush
|
|
cp -R ${WRKDIST}/* ${PREFIX}/libexec/drush
|
|
rm ${PREFIX}/libexec/drush/drush
|
|
rm ${PREFIX}/libexec/drush/drush.bat
|
|
rm -r ${PREFIX}/libexec/drush/tests
|
|
${SUBST_CMD} -m 555 -c ${FILESDIR}/drush ${PREFIX}/bin/drush
|
|
find ${PREFIX}/libexec/drush -name '*.orig' -exec rm {} +
|
|
find ${PREFIX}/libexec/drush -name '.git' -type d -exec rm -rf {} +
|
|
|
|
.include <bsd.port.mk>
|