diff options
-rw-r--r-- | development/composer/README | 3 | ||||
-rw-r--r-- | development/composer/composer | 8 | ||||
-rw-r--r-- | development/composer/composer.SlackBuild | 7 | ||||
-rw-r--r-- | development/composer/composer.info | 6 |
4 files changed, 17 insertions, 7 deletions
diff --git a/development/composer/README b/development/composer/README index 19d163cfbc..9818a02db2 100644 --- a/development/composer/README +++ b/development/composer/README @@ -1,3 +1,6 @@ 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. + +This package ships a shortcut (/usr/bin/composer) that uses hhvm +instead of php if installed. diff --git a/development/composer/composer b/development/composer/composer new file mode 100644 index 0000000000..1823271500 --- /dev/null +++ b/development/composer/composer @@ -0,0 +1,8 @@ +#/bin/sh + +if [ -x /usr/bin/hhvm ] +then + /usr/bin/hhvm /usr/bin/composer.phar "$@" +else + /usr/bin/php /usr/bin/composer.phar "$@" +fi diff --git a/development/composer/composer.SlackBuild b/development/composer/composer.SlackBuild index b1725a55aa..73adce87c5 100644 --- a/development/composer/composer.SlackBuild +++ b/development/composer/composer.SlackBuild @@ -25,8 +25,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=composer -SRCNAM=composer.phar -VERSION=${VERSION:-1.0.0_alpha10} +VERSION=${VERSION:-1.0.0_alpha11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} ARCH=noarch @@ -40,10 +39,10 @@ set -e rm -rf $PKG mkdir -p $PKG/usr/bin $OUTPUT -install -m 0755 $CWD/$SRCNAM $PKG/usr/bin +install -m 0755 $CWD/composer.phar $PKG/usr/bin chown -R root:root $PKG -ln -s $SRCNAM $PKG/usr/bin/composer +install -m 0755 $CWD/composer $PKG/usr/bin mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/development/composer/composer.info b/development/composer/composer.info index 9136ec169b..9604b5b482 100644 --- a/development/composer/composer.info +++ b/development/composer/composer.info @@ -1,8 +1,8 @@ PRGNAM="composer" -VERSION="1.0.0_alpha10" +VERSION="1.0.0_alpha11" HOMEPAGE="https://getcomposer.org/" -DOWNLOAD="https://getcomposer.org/download/1.0.0-alpha10/composer.phar" -MD5SUM="dea8681b6f54dca9bb3a5b7deb179cca" +DOWNLOAD="https://getcomposer.org/download/1.0.0-alpha11/composer.phar" +MD5SUM="488ca7972e447e0e1b2988f66d8e01e6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |