mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-09 01:48:07 -07:00
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
20 lines
514 B
PHP
20 lines
514 B
PHP
<?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"
|
|
)
|
|
);
|