2019-04-18 08:49:42 +03:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2016-09-29 23:00:14 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2019-07-22 08:35:17 +03:00
|
|
|
EAPI=7
|
2016-09-29 23:00:14 +03:00
|
|
|
|
2019-04-18 08:49:42 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
|
2018-03-09 09:57:35 +03:00
|
|
|
inherit distutils-r1 git-r3 multiprocessing
|
2016-09-29 23:00:14 +03:00
|
|
|
|
|
|
|
DESCRIPTION="A stand-alone install of the LLVM suite testing tool"
|
2017-07-09 13:39:57 +03:00
|
|
|
HOMEPAGE="https://llvm.org/"
|
2016-09-29 23:00:14 +03:00
|
|
|
SRC_URI=""
|
2017-07-09 13:39:57 +03:00
|
|
|
EGIT_REPO_URI="https://git.llvm.org/git/llvm.git
|
2016-09-29 23:00:14 +03:00
|
|
|
https://github.com/llvm-mirror/llvm.git"
|
|
|
|
|
2019-08-18 23:11:05 +03:00
|
|
|
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
|
2016-09-29 23:00:14 +03:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS=""
|
2016-10-03 22:43:11 +03:00
|
|
|
IUSE="test"
|
2017-12-16 17:13:23 +03:00
|
|
|
RESTRICT="!test? ( test )"
|
2016-09-29 23:00:14 +03:00
|
|
|
|
|
|
|
S=${WORKDIR}/${P}/utils/lit
|
|
|
|
|
2016-10-03 22:43:11 +03:00
|
|
|
# Tests require 'FileCheck' and 'not' utilities (from llvm)
|
|
|
|
DEPEND="
|
2017-03-28 08:41:14 +03:00
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
2016-10-03 22:43:11 +03:00
|
|
|
test? (
|
|
|
|
dev-python/psutil[${PYTHON_USEDEP}]
|
|
|
|
sys-devel/llvm )"
|
|
|
|
|
2016-09-29 23:00:14 +03:00
|
|
|
# TODO: move the manpage generation here (from sys-devel/llvm)
|
2016-10-03 22:43:11 +03:00
|
|
|
|
2017-11-28 13:05:58 +03:00
|
|
|
src_unpack() {
|
|
|
|
git-r3_fetch
|
|
|
|
git-r3_checkout '' '' '' utils/lit
|
|
|
|
}
|
|
|
|
|
2016-10-03 22:43:11 +03:00
|
|
|
python_test() {
|
2019-07-22 08:35:17 +03:00
|
|
|
local -x LIT_PRESERVES_TMP=1
|
2018-03-09 09:57:35 +03:00
|
|
|
./lit.py -j "${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}" \
|
|
|
|
-vv tests || die
|
2016-10-03 22:43:11 +03:00
|
|
|
}
|