pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import composer 1.2.1
Module Name: pkgsrc-wip
Committed By: Pierre Pronchery <khorben%defora.org@localhost>
Pushed By: khorben
Date: Mon Oct 10 20:04:40 2016 +0200
Changeset: 6fe808948092c41e54a0a0925338cb228b3a4b18
Added Files:
php-composer/DESCR
php-composer/Makefile
php-composer/PLIST
php-composer/distinfo
php-composer/files/composer
Log Message:
Import composer 1.2.1
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.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6fe808948092c41e54a0a0925338cb228b3a4b18
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
php-composer/DESCR | 3 +++
php-composer/Makefile | 37 +++++++++++++++++++++++++++++++++++++
php-composer/PLIST | 3 +++
php-composer/distinfo | 6 ++++++
php-composer/files/composer | 7 +++++++
5 files changed, 56 insertions(+)
diffs:
diff --git a/php-composer/DESCR b/php-composer/DESCR
new file mode 100644
index 0000000..19d163c
--- /dev/null
+++ b/php-composer/DESCR
@@ -0,0 +1,3 @@
+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.
diff --git a/php-composer/Makefile b/php-composer/Makefile
new file mode 100644
index 0000000..bc2b13c
--- /dev/null
+++ b/php-composer/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+VERSION= 1.2.1
+PKGNAME= php-composer-${VERSION}
+DISTNAME= composer
+CATEGORIES= devel
+MASTER_SITES= https://getcomposer.org/download/${VERSION}/
+DIST_SUBDIR= php-composer/${VERSION}
+EXTRACT_SUFX= .phar
+
+MAINTAINER= khorben%defora.org@localhost
+HOMEPAGE= https://getcomposer.org/
+COMMENT= Dependency Manager for PHP
+LICENSE= modified-bsd
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+AUTO_MKDIRS= yes
+
+DEPENDS+= php-[0-9]*:../../lang/php
+
+do-extract:
+ ${MKDIR} -m 0755 ${WRKSRC}
+ ${INSTALL} -m 0644 ${FILESDIR}/composer ${WRKSRC}/composer
+
+do-install:
+ ${INSTALL} -m 0755 ${WRKSRC}/composer ${DESTDIR}${PREFIX}/bin/composer
+ ${INSTALL} -m 0644 ${DISTDIR}/${DIST_SUBDIR}/composer.phar \
+ ${DESTDIR}${PREFIX}/share/php/composer.phar
+
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= post-extract
+SUBST_MESSAGE.fix-paths=Fixing absolute paths.
+SUBST_FILES.fix-paths= composer
+SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g'
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/php-composer/PLIST b/php-composer/PLIST
new file mode 100644
index 0000000..33f91cd
--- /dev/null
+++ b/php-composer/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/composer
+share/php/composer.phar
diff --git a/php-composer/distinfo b/php-composer/distinfo
new file mode 100644
index 0000000..61a7ffa
--- /dev/null
+++ b/php-composer/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (php-composer/1.2.1/composer.phar) = b6b3fb668c913c874f891601eaac6eb08b060416
+RMD160 (php-composer/1.2.1/composer.phar) = 7a6ba0e8e45b2cde53dd35261914fb0a3927ed30
+SHA512 (php-composer/1.2.1/composer.phar) = 1fee0f09cf73fe177754648a5c8a2f97b9cf8f7943f2b5c1325ace677573f2b623300197af5863e588737a49d43ca075ce4af07e0752e139797815450bd6f9a0
+Size (php-composer/1.2.1/composer.phar) = 1704783 bytes
diff --git a/php-composer/files/composer b/php-composer/files/composer
new file mode 100644
index 0000000..77ea33a
--- /dev/null
+++ b/php-composer/files/composer
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+PREFIX="@PREFIX@"
+BINDIR="$PREFIX/bin"
+DATADIR="$PREFIX/share"
+
+"$BINDIR/php" "$DATADIR/php/composer.phar" $@
Home |
Main Index |
Thread Index |
Old Index