summaryrefslogtreecommitdiff
path: root/dev-php/phpdepend/files
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-01-05 16:22:03 -0500
committerMichael Orlitzky <mjo@gentoo.org>2017-01-05 16:34:46 -0500
commitd6d393bf2e8fa74b57c39cc4faad1be1bf359ca9 (patch)
treea4e31075ff7e0175e744815f41c65fd63c56cc2f /dev-php/phpdepend/files
parent68d9fafc5652424a702ed2f9011bac5419bab328 (diff)
downloadgentoo-d6d393bf2e8fa74b57c39cc4faad1be1bf359ca9.tar.gz
gentoo-d6d393bf2e8fa74b57c39cc4faad1be1bf359ca9.tar.xz
dev-php/phpdepend: new version 2.3.2 sans bundled dependencies.
Now that we have a framework for installing Composer packages, we don't need to bundle the Symfony components that phpdepend uses. This new version switches back to a source distribution and adds the requisite RDEPENDs. In addition, we now install phpdepend under /usr/share/phpdepend as opposed to /usr/share/php/phpdepend. The latter is part of PHP's "include" search path, and is only meant for library code. Gentoo-Bug: 573340 Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-php/phpdepend/files')
-rw-r--r--dev-php/phpdepend/files/autoload.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-php/phpdepend/files/autoload.php b/dev-php/phpdepend/files/autoload.php
new file mode 100644
index 00000000000..ce186c4f3d8
--- /dev/null
+++ b/dev-php/phpdepend/files/autoload.php
@@ -0,0 +1,19 @@
+<?php
+$vendor_dir = '/usr/share/php';
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once("${vendor_dir}/Fedora/Autoloader/autoload.php");
+}
+
+\Fedora\Autoloader\Autoload::addPsr4(
+ 'PDepend\\',
+ __DIR__ . '/../src/main/php/PDepend'
+);
+
+
+\Fedora\Autoloader\Dependencies::required(
+ array(
+ "${vendor_dir}/Symfony/Component/Config/autoload.php",
+ "${vendor_dir}/Symfony/Component/DependencyInjection/autoload.php",
+ "${vendor_dir}/Symfony/Component/Filesystem/autoload.php"
+ )
+);