blob: 7456c4c795ac1bc246ddbcbf4c05a997a7f01de5 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils bash-completion-r1 git-r3
DESCRIPTION="A Rust's package manager"
HOMEPAGE="http://crates.io/"
LICENSE="|| ( MIT Apache-2.0 )"
SLOT="0"
KEYWORDS=""
IUSE=""
EGIT_REPO_URI="https://github.com/rust-lang/cargo.git"
COMMON_DEPEND=">=virtual/rust-999
sys-libs/zlib
dev-libs/openssl:*
net-libs/libssh2
net-libs/http-parser"
RDEPEND="${COMMON_DEPEND}
net-misc/curl[curl_ssl_openssl]"
DEPEND="${COMMON_DEPEND}
dev-util/cmake"
src_configure() {
./configure --prefix="${EPREFIX}"/usr --disable-verify-install || die
}
src_install() {
CFG_DISABLE_LDCONFIG="true" emake DESTDIR="${D}" install || die
dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo
rm -rf "${ED}"/usr/etc
}
|