mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 03:26:41 -04:00
PR: 276895
Approved by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
MFH: 2024Q1
Security: 33ba2241-c68e-11ee-9ef3-001999f8d30b
(cherry picked from commit 9b4e16df25
)
45 lines
985 B
Makefile
45 lines
985 B
Makefile
PORTNAME= composer
|
|
DISTVERSION= 2.7.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://getcomposer.org/download/${DISTVERSION}/
|
|
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
|
|
DISTNAME= composer
|
|
EXTRACT_SUFX= .phar
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= cyberbotx@cyberbotx.com
|
|
COMMENT= Dependency Manager for PHP
|
|
WWW= https://getcomposer.org/
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= ca_root_nss>0:security/ca_root_nss
|
|
|
|
USES= cpe php:flavors
|
|
CPE_VENDOR= getcomposer
|
|
USE_PHP= ctype filter intl mbstring phar
|
|
|
|
CONFLICTS_INSTALL= php*-composer
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST_FILES= bin/composer \
|
|
bin/composer.phar
|
|
|
|
OPTIONS_DEFINE= CURL
|
|
OPTIONS_DEFAULT= CURL
|
|
|
|
CURL_DESC= Install the cURL extension for faster downloads
|
|
CURL_USE= PHP=curl
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKSRC}/
|
|
${CP} ${_DISTDIR}/composer.phar ${WRKSRC}/
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/composer.phar ${STAGEDIR}${PREFIX}/bin/
|
|
${LN} -s composer.phar ${STAGEDIR}${PREFIX}/bin/composer
|
|
|
|
.include <bsd.port.mk>
|