openbsd-ports/www/wp-cli/Makefile

35 lines
661 B
Makefile

# $OpenBSD: Makefile,v 1.9 2020/01/16 09:55:28 gonzalo Exp $
COMMENT = command line tool for wordpress
V = 2.4.0
DISTNAME = wp-cli-${V}
EXTRACT_ONLY =
EXTRACT_SUFX = .phar
MASTER_SITES = https://github.com/wp-cli/wp-cli/releases/download/v${V}/
CATEGORIES = www
HOMEPAGE = https://wp-cli.org/
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/php
RUN_DEPENDS = lang/php/${MODPHP_VERSION}
NO_BUILD = Yes
NO_TEST = Yes
SUBST_VARS += MODPHP_BIN
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/bin
cp ${FULLDISTDIR}/${DISTNAME}.phar ${PREFIX}/bin/wp-cli.phar
${INSTALL_SCRIPT} ${FILESDIR}/wp ${PREFIX}/bin/wp
${SUBST_CMD} ${PREFIX}/bin/wp
.include <bsd.port.mk>