summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-01-07 14:12:59 -0500
committerMichael Orlitzky <mjo@gentoo.org>2017-01-07 14:23:27 -0500
commite491aa65a5b0a89dda0c76fdac559d192c96b6ed (patch)
tree77cd2ea384bd29f90d7f86be1127d4fadd45b0d5 /dev-php/phing/files
parentdev-php/PEAR-HTTP_Request2: remove unused versions 2.0.0 and 2.1.1. (diff)
downloadgentoo-e491aa65a5b0a89dda0c76fdac559d192c96b6ed.tar.gz
gentoo-e491aa65a5b0a89dda0c76fdac559d192c96b6ed.tar.bz2
gentoo-e491aa65a5b0a89dda0c76fdac559d192c96b6ed.zip
dev-php/phing: new unbundled version 2.16.0.
This new version is a major overhaul of the ebuild. We start with an update to EAPI=6, and then everything else is basically new. The previous version installed a single compressed PHAR archive, while now we actually install the source, documentation, examples, and executables -- all in the correct places. Some dependencies were fixed, and there are new USE flags for a couple of optional dependencies (eventually there should be more flags, rather than rely on USE=minimal). Upstream's metadata was updated, too. Unfortunately, many features of this package will not work. Since phpDocumentor and phpunit are still packaged as PHAR archives, phing cannot make use of their libraries. This is not a new problem, however, so it is acceptable to allow in in the new version. Gentoo-Bug: 604954 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/phing/files')
-rw-r--r--dev-php/phing/files/autoload.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-php/phing/files/autoload.php b/dev-php/phing/files/autoload.php
new file mode 100644
index 000000000000..437a7dc7ee1e
--- /dev/null
+++ b/dev-php/phing/files/autoload.php
@@ -0,0 +1,14 @@
+<?php
+$vendor_dir = '/usr/share/php';
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
+}
+
+/*
+ At least for the moment, we don't need to autoload the Phing classes
+ themselves, because the "require" statements are all still there.
+*/
+
+\Fedora\Autoloader\Dependencies::required(
+ array("${vendor_dir}/Symfony/Component/Yaml/autoload.php")
+);