diff options
Diffstat (limited to 'dev-php/phpdepend')
-rw-r--r-- | dev-php/phpdepend/Manifest | 4 | ||||
-rw-r--r-- | dev-php/phpdepend/files/autoload.php | 19 | ||||
-rw-r--r-- | dev-php/phpdepend/metadata.xml | 14 | ||||
-rw-r--r-- | dev-php/phpdepend/phpdepend-2.5.0-r1.ebuild | 46 |
4 files changed, 83 insertions, 0 deletions
diff --git a/dev-php/phpdepend/Manifest b/dev-php/phpdepend/Manifest new file mode 100644 index 000000000000..d872d583dc5a --- /dev/null +++ b/dev-php/phpdepend/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 514 BLAKE2B b03d6c08102ab04c83b1fe24484b83b89856f5bcee913c73d87b3ff6cf584b6051fe1b895cc94a84818257bcdb0b4f0d8139f7dd6f33b7aa7b5159027d716317 SHA512 f4cf9fd93bc24e28cd93f0597fed3b5c4166668ba8fe5dc4259001975eb96e6eab5b0006fc5a897041f29f6c3447968f89a5651a76a41c6b1777bb712b2b1e42 +DIST phpdepend-2.5.0.tar.gz 190823 BLAKE2B 9711a6bd113e912b651a577e1b00f388262843796219cdd26e012f1beccfd54aca62f4998a47d69c5ff3cc8705551fdd86bc538fdaf7173f5f25bc41f509c3e1 SHA512 927ff961773c3b2076b11b374035482c05b2da3a9777418c6fe0a491bd20eec431bfd75cd706674e231c9f73d97b6b0236eea12794cfff2d8ad52a6a6170e137 +EBUILD phpdepend-2.5.0-r1.ebuild 1269 BLAKE2B 7751fbc2492871bd1d241e3d376211d97b8a0ce2d72875afe7be87d6ff5aabf81089942f5fabbceac949e799d1b88f7963157fb2776cc5757a960e86201e72a6 SHA512 79207c24d76fee170e3c60ffc78b99daf5e2fc583d2123cf5b71e261e7c038c1fa8116db8c1c16ee2489725849c39fb9817b14adf9c807eabc931db3e9cf21d2 +MISC metadata.xml 397 BLAKE2B 15e4fcd425f244c822ef1d5ac230ecae70f7245d312dee234718f6bfee254ef4cb8a3ad06f66ba234832c0c35c06dce75f8979ad6efa5fa0f287ca6e74d4f4d2 SHA512 b6c82fa15bdfc3e8e852ac8e0d49bbffafcef1f8ddf89032590409b7749250f1feb7ae13fe4fbec625317b2abe473a95c84583f20238987b1a12cc347aebcbb3 diff --git a/dev-php/phpdepend/files/autoload.php b/dev-php/phpdepend/files/autoload.php new file mode 100644 index 000000000000..ce186c4f3d86 --- /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" + ) +); diff --git a/dev-php/phpdepend/metadata.xml b/dev-php/phpdepend/metadata.xml new file mode 100644 index 000000000000..1be341e7ec05 --- /dev/null +++ b/dev-php/phpdepend/metadata.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <longdescription lang="en"> +Static code analyser for PHP + </longdescription> + <upstream> + <remote-id type="github">pdepend/pdepend</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/phpdepend/phpdepend-2.5.0-r1.ebuild b/dev-php/phpdepend/phpdepend-2.5.0-r1.ebuild new file mode 100644 index 000000000000..1ea5cc4ab920 --- /dev/null +++ b/dev-php/phpdepend/phpdepend-2.5.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN=pdepend + +DESCRIPTION="Static code analysis for PHP" +HOMEPAGE="http://www.pdepend.org/" + +# The test suite is absent from the release tarballs because +# the only build system that Composer understands is "cp -r". +# To obtain the tests, we would need to grab a VCS snapshot. +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/php + dev-php/fedora-autoloader + >=dev-php/symfony-config-2.3 + >=dev-php/symfony-dependency-injection-2.3 + >=dev-php/symfony-filesystem-2.3" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_install() { + dodoc CHANGELOG + + # The executable will only look for autoload.php in one place, so we + # create an (otherwise pointless) vendor directory to house it. + insinto "/usr/share/${PN}/vendor" + doins "${FILESDIR}/autoload.php" + + insinto "/usr/share/${PN}/src" + doins -r src/main + + # The executable uses relative include paths, so the one users will + # actually run needs to be symlinked into the source tree. + exeinto "/usr/share/${PN}/src/bin" + doexe "src/bin/${MY_PN}" + dosym "../share/${PN}/src/bin/${MY_PN}" "/usr/bin/${MY_PN}" +} |