aboutsummaryrefslogtreecommitdiff
path: root/development/composer
diff options
context:
space:
mode:
authorEugene Wissner <belka@caraus.de>2015-11-18 00:00:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-18 00:46:34 +0700
commitaf567f8e96a9795e0b3334c05d71791e7bb34f88 (patch)
tree95e5c8ba4dd0b2df06db0bc6f06a47a7923b7eb3 /development/composer
parent6d60951df6f37cba7469492f567103a7d2da6d10 (diff)
development/composer: Updated for version 1.0.0_alpha11.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/composer')
-rw-r--r--development/composer/README3
-rw-r--r--development/composer/composer8
-rw-r--r--development/composer/composer.SlackBuild7
-rw-r--r--development/composer/composer.info6
4 files changed, 17 insertions, 7 deletions
diff --git a/development/composer/README b/development/composer/README
index 19d163cfbc857..9818a02db25f8 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 0000000000000..1823271500079
--- /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 b1725a55aabe8..73adce87c5893 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 9136ec169b04d..9604b5b48246f 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=""