ports/devel/php-composer/Makefile
Sunpoet Po-Chuan Hsieh b3bf24a8f2 - Add php-composer 1.0.0.a8.20140223
- While I'm here:
  - Use DISTVERSION
  - Pet portlint:
    - Use DISTNAME and EXTRACT_SUFX instead of DISTFILES
    - Use PLIST_FILES instead of PLIST

Composer is a tool for dependency management in PHP. It allows you to declare
the dependent libraries your project needs and it will install them in your
project for you.

WWW: http://getcomposer.org/

PR:		ports/186972
Submitted by:	Gea-Suan Lin <gslin@gslin.org>
2014-02-23 15:26:19 +00:00

34 lines
782 B
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= composer
DISTVERSION= 1.0.0-alpha8.20140223
CATEGORIES= devel
MASTER_SITES= http://getcomposer.org/download/${DISTVERSION}/ \
http://freebsd.cs.nctu.edu.tw/~gslin/files/${PORTNAME}/${DISTVERSION}/
PKGNAMEPREFIX= php-
DISTNAME= composer
EXTRACT_SUFX= .phar
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= gslin@gslin.org
COMMENT= Dependency Manager for PHP
LICENSE= MIT
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_PHP= yes
PLIST_FILES= bin/composer \
bin/composer.phar
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>