diff options
Diffstat (limited to 'dev-php/composer')
-rw-r--r-- | dev-php/composer/Manifest | 4 | ||||
-rw-r--r-- | dev-php/composer/composer-1.5.1.ebuild | 46 | ||||
-rw-r--r-- | dev-php/composer/files/autoload.php | 28 | ||||
-rw-r--r-- | dev-php/composer/metadata.xml | 23 |
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-php/composer/Manifest b/dev-php/composer/Manifest new file mode 100644 index 000000000000..adaca1f3ceba --- /dev/null +++ b/dev-php/composer/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 965 SHA256 055427f77b0313da29b75a4c8ee195533b200f44ea363561d8f17d4e435c9290 SHA512 c3ea41e0bc11b249b5b39e0fd3366e9f5a75e816ce7db0b11a223c4a4aeb6a3e031d2824e062ff26f5d1e75c01e023ebf9dfd3a1d5fc8b8e0f18168b79d3061c WHIRLPOOL 612aace41ed76f917a2ee9729c1f43959ae65adaf412919fa01ea1dfc3eb09ebe80dd0e2e4e164d23855a0aef39fb36b61c1d10d961174192df3784054e407ee +DIST composer-1.5.1.tar.gz 1099939 SHA256 606dc1663326db92b991983059548fb844497b20463dfda28b19d7e142d33f37 SHA512 3d3a631196c5e58744fba234272268b672bef2c081ffc2ca657bfdb95dfb5f6a53118f1a4f9fd92407f1052794643bc72c7a04a414b928c470b5aa24df52442f WHIRLPOOL c5ce88fb7cc8d8600c1a40ccb20dd026c99f3e1a2550a32162d7246bd5cf355aab5e720dedceac5fbfa8a4055ed85827e41893d5925b5fe8729ff781d62b206b +EBUILD composer-1.5.1.ebuild 1157 SHA256 57024e75a87013910f69b0a12cdd1bdb455f428709501d42484b5c6df2b1a99f SHA512 22f8b9b7e1dc8445b35b3cfe277228859316ce7c1a51a9667098f4743bc1302eecfb3fad1bc2a6e63f0481434cf4600fd1dcc6b3566f70637825233f58df6d9a WHIRLPOOL afb158e779852b2b66f55989c2f55670bd81c1f40fcc02599f386f9d3e94eae38f393f2c6727ddb12499aa4256fc0be719100ba712c95b99032afbed5b812fdd +MISC metadata.xml 774 SHA256 41311b8853035c584c6a3adb934332e3595471fee2050bf2ed64f1caf5c05dbc SHA512 1a17bfae65923a3bea593c57d7ecf4fb2aeef43d0537636105e52294de295cbfeaed4b3c36ffb8675a563f657f4f969e62096cee20b9ab178c962acf2f68ac3a WHIRLPOOL 8e5e7c69c44ed6d8879b9826306810d59e9298931d97f769c0cd075cbb571aab0afbf5d5fd6b1a76a089378f6b95badbb0a4b6c345d1f578a45e8850af7c77f0 diff --git a/dev-php/composer/composer-1.5.1.ebuild b/dev-php/composer/composer-1.5.1.ebuild new file mode 100644 index 000000000000..90d53510da0c --- /dev/null +++ b/dev-php/composer/composer-1.5.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Dependency Manager for PHP" +HOMEPAGE="https://github.com/composer/composer" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-lang/php:*[curl] + >=dev-php/ca-bundle-1.0.0 + >=dev-php/cli-prompt-1.0.0 + >=dev-php/psr-log-1.0.2 + dev-php/fedora-autoloader + >=dev-php/json-schema-2.0.0 + >=dev-php/jsonlint-1.4.0 + >=dev-php/phar-utils-1.0.0 + >=dev-php/semver-1.0.0 + >=dev-php/spdx-licenses-1.0.0 + >=dev-php/symfony-console-2.7.9 + >=dev-php/symfony-filesystem-2.7.20 + >=dev-php/symfony-finder-2.7.20 + >=dev-php/symfony-process-2.8.12" + +src_install() { + insinto "/usr/share/${PN}" + + # Composer expects the LICENSE file to be there, and the + # easiest thing to do is to give it what it wants. + doins -r src res LICENSE + + insinto "/usr/share/${PN}/vendor" + doins "${FILESDIR}"/autoload.php + + exeinto "/usr/share/${PN}/bin" + doexe "bin/${PN}" + dosym "/usr/share/${PN}/bin/${PN}" "/usr/bin/${PN}" + + dodoc CHANGELOG.md README.md doc/*.md + dodoc -r doc/articles doc/faqs +} diff --git a/dev-php/composer/files/autoload.php b/dev-php/composer/files/autoload.php new file mode 100644 index 000000000000..30d8495a4548 --- /dev/null +++ b/dev-php/composer/files/autoload.php @@ -0,0 +1,28 @@ +<?php +/* Autoloader for composer and its dependencies */ + +$vendorDir = '/usr/share/php'; +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addPsr4( + 'Composer\\', + __DIR__ . '/../src/Composer' +); + +// Dependencies +\Fedora\Autoloader\Dependencies::required(array( + $vendorDir . '/JsonSchema/autoload.php', + $vendorDir . '/Composer/CaBundle/autoload.php', + $vendorDir . '/Composer/Semver/autoload.php', + $vendorDir . '/Composer/Spdx/autoload.php', + $vendorDir . '/Seld/JsonLint/autoload.php', + $vendorDir . '/Symfony/Component/Console/autoload.php', + $vendorDir . '/Symfony/Component/Finder/autoload.php', + $vendorDir . '/Symfony/Component/Process/autoload.php', + $vendorDir . '/Symfony/Component/Filesystem/autoload.php', + $vendorDir . '/Seld/PharUtils/autoload.php', + $vendorDir . '/Seld/CliPrompt/autoload.php', + $vendorDir . '/Psr/Log/autoload.php', +)); diff --git a/dev-php/composer/metadata.xml b/dev-php/composer/metadata.xml new file mode 100644 index 000000000000..cdbe7f339484 --- /dev/null +++ b/dev-php/composer/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>guillaumeseren@gmail.com</email> + <name>Guillaume Seren</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + </maintainer> + <longdescription> + Composer is a tool for dependency management in PHP. + It allows you to declare the libraries your project depends on + and it will manage (install/update) them for you. + </longdescription> + <upstream> + <remote-id type="github">composer/composer</remote-id> + </upstream> +</pkgmetadata> |