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

EAPI=5

PYTHON_COMPAT=( python2_{6,7} python3_{1,2,3} )

inherit eutils distutils-r1

DESCRIPTION="Python wrapper around the llvm C++ library"
HOMEPAGE="http://llvmpy.org/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="sys-devel/llvm[multitarget]"
RDEPEND="${DEPEND}"

python_prepare() {
	epatch "${FILESDIR}"/${P}-rpath.patch
	distutils-r1-python_prepare
}

python_test() {
	pushd "${BUILD_DIR}"/lib* > /dev/null
	${PYTHON} -c "import llvm; llvm.test()"
	popd > /dev/null
}