pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/php-composer



Module Name:    pkgsrc
Committed By:   tpaul
Date:           Sat Mar 14 04:26:39 UTC 2020

Added Files:
        pkgsrc/devel/php-composer: DESCR Makefile PLIST distinfo
        pkgsrc/devel/php-composer/files: composer

Log Message:
devel/php-composer: Import version 1.10.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 generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/php-composer/DESCR \
    pkgsrc/devel/php-composer/Makefile pkgsrc/devel/php-composer/PLIST \
    pkgsrc/devel/php-composer/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/php-composer/files/composer

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/php-composer/DESCR
diff -u /dev/null pkgsrc/devel/php-composer/DESCR:1.1
--- /dev/null   Sat Mar 14 04:26:39 2020
+++ pkgsrc/devel/php-composer/DESCR     Sat Mar 14 04:26:39 2020
@@ -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.
Index: pkgsrc/devel/php-composer/Makefile
diff -u /dev/null pkgsrc/devel/php-composer/Makefile:1.1
--- /dev/null   Sat Mar 14 04:26:39 2020
+++ pkgsrc/devel/php-composer/Makefile  Sat Mar 14 04:26:39 2020
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2020/03/14 04:26:39 tpaul Exp $
+
+VERSION=       1.10.1
+PKGNAME=       ${PHP_PKG_PREFIX}-composer-${VERSION}
+DISTNAME=      composer
+CATEGORIES=    devel
+MASTER_SITES=  https://getcomposer.org/download/${VERSION}/
+DIST_SUBDIR=   php-composer/${VERSION}
+EXTRACT_SUFX=  .phar
+
+MAINTAINER=    tpaul%NetBSD.org@localhost
+HOMEPAGE=      https://getcomposer.org/
+COMMENT=       Dependency Manager for PHP
+LICENSE=       mit
+
+NO_BUILD=      yes
+AUTO_MKDIRS=   yes
+
+DEPENDS+=      ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring
+DEPENDS+=      ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
+DEPENDS+=      ${PHP_PKG_PREFIX}-zip-[0-9]*:../../archivers/php-zip
+
+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_VARS.fix-paths=          PREFIX
+
+.include "../../lang/php/phpversion.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/php-composer/PLIST
diff -u /dev/null pkgsrc/devel/php-composer/PLIST:1.1
--- /dev/null   Sat Mar 14 04:26:39 2020
+++ pkgsrc/devel/php-composer/PLIST     Sat Mar 14 04:26:39 2020
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/14 04:26:39 tpaul Exp $
+bin/composer
+share/php/composer.phar
Index: pkgsrc/devel/php-composer/distinfo
diff -u /dev/null pkgsrc/devel/php-composer/distinfo:1.1
--- /dev/null   Sat Mar 14 04:26:39 2020
+++ pkgsrc/devel/php-composer/distinfo  Sat Mar 14 04:26:39 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/14 04:26:39 tpaul Exp $
+
+SHA1 (php-composer/1.10.1/composer.phar) = fa51d7b32dbfb52eaeb8aa8a5112ab33017cc0b9
+RMD160 (php-composer/1.10.1/composer.phar) = f79c3fe04a18881947c012c71bcefc6ef6294992
+SHA512 (php-composer/1.10.1/composer.phar) = bb0fa469b8180ade3feb5736a58f2702b0889b6fc3038efbb962f8fd7a691f9d995f8b121e67f9feb7e409b360a25fae10426545d2dc68e0976be6126d69d8f4
+Size (php-composer/1.10.1/composer.phar) = 1969526 bytes

Index: pkgsrc/devel/php-composer/files/composer
diff -u /dev/null pkgsrc/devel/php-composer/files/composer:1.1
--- /dev/null   Sat Mar 14 04:26:39 2020
+++ pkgsrc/devel/php-composer/files/composer    Sat Mar 14 04:26:39 2020
@@ -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