summaryrefslogtreecommitdiff
blob: cbe57109689e8447145d5ece34525169fdf0dd6b (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

DESCRIPTION="Scalable, Portable and Distributed Gradient Boosting."
HOMEPAGE="https://github.com/dmlc/xgboost"

if [[ ${PV} == *9999* ]] ; then
	EGIT_REPO_URI="git://github.com/dmlc/xgboost.git"
	inherit git-r3
else
    EGIT_COMMIT="4a8d63b6c8711fb839c71e26c659936252df1eb5"
    EGIT_REPO_URI="git://github.com/dmlc/xgboost.git"
    KEYWORDS="~amd64 ~x86"
    inherit git-r3
fi

LICENSE="Apache-2.0"
SLOT="0"
IUSE="static-libs"

DEPEND=">=sys-devel/gcc-4.6"
RDEPEND="${DEPEND}"

src_install() {
    insinto /usr/include
    doins -r {dmlc-core/,rabit/,}include/*
    dolib.so lib/libxgboost.so
    use static-libs && dolib.a lib/libxgboost.a
    dobin xgboost
}