summaryrefslogtreecommitdiff
blob: 4edcaf353687b045eb679ae0a8ae893a69d4a60a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2018 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-3.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.2.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 "../share/${PN}/bin/${PN}" "/usr/bin/${PN}"

	dodoc CHANGELOG.md README.md doc/*.md
	dodoc -r doc/articles doc/faqs
}