naddy f88a93d598 * Combine and tweak some find(1) invocations.
* Use the -delete operator to remove files.
2020-03-22 18:13:35 +00:00

39 lines
945 B
Makefile

# $OpenBSD: Makefile,v 1.18 2020/03/22 18:13:36 naddy Exp $
COMMENT = command line access to most of Drupal
CATEGORIES = www devel
V= 8.0.3
REVISION= 4
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= Yes
NO_BUILD= Yes
RUN_DEPENDS= archivers/gtar \
${MODPHP_PDO_DEPENDS}
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 {} + -o \
-name '.git' -type d -prune -exec rm -rf {} +
.include <bsd.port.mk>