diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/phpmd |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/phpmd')
-rw-r--r-- | dev-php/phpmd/Manifest | 6 | ||||
-rw-r--r-- | dev-php/phpmd/files/autoload.php | 14 | ||||
-rw-r--r-- | dev-php/phpmd/metadata.xml | 11 | ||||
-rw-r--r-- | dev-php/phpmd/phpmd-2.5.0.ebuild | 38 |
4 files changed, 69 insertions, 0 deletions
diff --git a/dev-php/phpmd/Manifest b/dev-php/phpmd/Manifest new file mode 100644 index 000000000000..81cb7c3d05fd --- /dev/null +++ b/dev-php/phpmd/Manifest @@ -0,0 +1,6 @@ +AUX autoload.php 325 SHA256 33f4379c6f48e31a065f09f411458dcbd976fb052e9d2adac390c15044053266 SHA512 2cbb2349a598c9515cd995b22cb685d4ea6e9e5edc6c0e5ce602f7520c4aa70cc63872c31209720019c424ab188b063aedf7829899882608eafca9c83794d219 WHIRLPOOL be4397a9d19516833143276eb4f85556075e0748a1e41e4b3e2567c8ff1a1fa36ea56af512df95871142b2930276773de9c77d3ea9a65b77a325a9376f837d23 +DIST phpmd-2.5.0.tar.gz 56360 SHA256 1c35a200f2cfcfb8266cd01d710000943bc9db4205d842d802c726ed98bb872d SHA512 93e5eac4755ce9dbe003935a5768c2798f13c3a40d5a7c188d3a70edc1fe76646b72144a62f943f3fc95f83131f96b315a63e327971c3c4404d600fcd5f43d18 WHIRLPOOL de2a70f0766f68d08e56f2885f8d94d5d6bdc2281eb8da2ea687f1298bc7d9cb761fb08230f0b5719f7e3b03b3739c8cda48c44e35c90e5dff2d0a219c84ece7 +EBUILD phpmd-2.5.0.ebuild 1126 SHA256 53740e570c8f4ce024cfbd11f958ed2791801b7005ccea4f9925a8b7d62c7303 SHA512 fec7d08ef18acf42ea3d6ffc74843780b06b815c85782a8d00aad993e6d17e416c23ec5bb6047807f325c6fc2e524594f08312ba2cc3f3875089cc31f5d31956 WHIRLPOOL c1aa939029710d70d59c22c04741135a481ada53cb93afabecb5de408ea02a5d7bd1c705c30c13c13d6b8a98664bb69d6ecc37a148dbb0a8c218960db6946a22 +MISC ChangeLog 2957 SHA256 5a65e0ae505f421b4aa37e92b3fc4fe76fd9700e470a08f7c0a8c6782ab7ccb0 SHA512 7a5902cd61df423a4284ebcbecd3fbedeedb46e36b0bb89cf7c2fba3d07cd98dc166b8395746790f1ba0f337caee737ea41380cd6ee63ad312218fe3c741b611 WHIRLPOOL 6ea87c9ae0b6ff0c49275d5a3910803f84a2d6369a097ea6485cd1942f1846851b5fbe91ac3500b692a51cc8db0a492220f11649eff5749a75b078985cfe12a0 +MISC ChangeLog-2015 657 SHA256 48062f241a3f321c58d5977e514bc2698843a8f7b25b43910ce790597db62705 SHA512 dd0565bb34759b33a2e5717da0af01802e5d0de00adc1f1a35b96600110908763994edf15cb4550ef58b16efb95ad9942c615e50360ede9c91dbd823257a9611 WHIRLPOOL d4b1d56e1ff610803d3506bd1cbe62765523ad8b13724481b5271071f309e7250b5ef05447c94c3775e975a877091d2266cb32615f1907313988f4a92fbd9380 +MISC metadata.xml 325 SHA256 ae2ea5cf6736baaec99fd31c0699dce7fea053c5090c9ee14282eba3997521ea SHA512 d2f6eb6841f0c21aeea3e158ef62388d2cddb3eb4c9a363b211fe232d9b64e4d45d80856986d5293c1d5ad17948648bc606133d28b3001b912ed1fe022ee2432 WHIRLPOOL 9a62590240a5cda09f6a45d67653dbc6739c24d5847a2066bb20a37c9a0da23eafa95b9fde9a8091c213d770040bf5768cb76d6e0ed33392d980a0b38c541a5a diff --git a/dev-php/phpmd/files/autoload.php b/dev-php/phpmd/files/autoload.php new file mode 100644 index 000000000000..b0fa4764c7ca --- /dev/null +++ b/dev-php/phpmd/files/autoload.php @@ -0,0 +1,14 @@ +<?php +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once('/usr/share/php/Fedora/Autoloader/autoload.php'); +} + +\Fedora\Autoloader\Autoload::addPsr4( + 'PHPMD\\', + __DIR__ . '/../src/main/php/PHPMD' +); + + +\Fedora\Autoloader\Dependencies::required( + array('/usr/share/phpdepend/vendor/autoload.php') +); diff --git a/dev-php/phpmd/metadata.xml b/dev-php/phpmd/metadata.xml new file mode 100644 index 000000000000..133c28059f56 --- /dev/null +++ b/dev-php/phpmd/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="github">phpmd/phpmd</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/phpmd/phpmd-2.5.0.ebuild b/dev-php/phpmd/phpmd-2.5.0.ebuild new file mode 100644 index 000000000000..04cafc11fec1 --- /dev/null +++ b/dev-php/phpmd/phpmd-2.5.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="PHP mess detector" +HOMEPAGE="http://www.phpmd.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/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-lang/php[xml] + dev-php/phpdepend" + +src_install() { + dodoc AUTHORS.rst CHANGELOG CONTRIBUTING.md README.rst + + # 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/${PN}" + dosym "/usr/share/${PN}/src/bin/${PN}" "/usr/bin/${PN}" +} |