import www/composer, a tool for dependency management in PHP.
ok juanfra@ giovanni@
This commit is contained in:
parent
b1f35674bf
commit
6f31b958ed
33
www/composer/Makefile
Normal file
33
www/composer/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/02/29 23:52:12 sthen Exp $
|
||||
|
||||
COMMENT= dependency manager for PHP
|
||||
|
||||
CATEGORIES= www devel
|
||||
|
||||
V= 1.0.0-alpha11
|
||||
MASTER_SITES= https://getcomposer.org/download/$V/
|
||||
DISTNAME= composer-${V:S/-alpha/alpha/}
|
||||
DISTFILES= composer-$V{composer}.phar
|
||||
EXTRACT_ONLY=
|
||||
|
||||
HOMEPAGE= https://getcomposer.org/
|
||||
|
||||
MODULES= lang/php
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_TEST= Yes
|
||||
PKG_ARCH= *
|
||||
|
||||
SUBST_VARS= MODPHP_BIN
|
||||
|
||||
do-extract:
|
||||
mkdir ${WRKSRC}; \
|
||||
cp ${FULLDISTDIR}/composer-$V.phar ${WRKSRC}/composer.phar
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/composer.phar ${PREFIX}/libexec/
|
||||
${SUBST_CMD} -m 555 -c ${FILESDIR}/composer ${PREFIX}/bin/composer
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/composer/distinfo
Normal file
2
www/composer/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (composer-1.0.0-alpha11.phar) = RzR/FtNmFF6vtF0ugAAS3IDLj8CNHSmYSYJcUUZTgaw=
|
||||
SIZE (composer-1.0.0-alpha11.phar) = 1179424
|
2
www/composer/files/composer
Normal file
2
www/composer/files/composer
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec ${MODPHP_BIN} -d allow_url_fopen=1 -d suhosin.executor.include.whitelist=phar ${TRUEPREFIX}/libexec/composer.phar "$@"
|
19
www/composer/pkg/DESCR
Normal file
19
www/composer/pkg/DESCR
Normal file
@ -0,0 +1,19 @@
|
||||
Composer is a tool for dependency management in PHP. It allows you
|
||||
to declare the libraries your project depends on and it will manage
|
||||
(install/update) them for you.
|
||||
|
||||
Composer is not a package manager in the traditional sense. It does deal
|
||||
with "packages" or libraries, but it manages them on a per-project basis,
|
||||
installing them in a directory (e.g. vendor) inside your project.
|
||||
|
||||
Suppose:
|
||||
|
||||
a) You have a project that depends on a number of libraries.
|
||||
b) Some of those libraries depend on other libraries.
|
||||
|
||||
Composer:
|
||||
|
||||
c) Enables you to declare the libraries you depend on.
|
||||
d) Finds out which versions of which packages can and need to be
|
||||
installed, and installs them (meaning it downloads them into your
|
||||
project).
|
3
www/composer/pkg/PLIST
Normal file
3
www/composer/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/02/29 23:52:12 sthen Exp $
|
||||
bin/composer
|
||||
libexec/composer.phar
|
Loading…
x
Reference in New Issue
Block a user