/[gentoo-x86]/dev-python/llvmpy/llvmpy-0.12.7.ebuild
Gentoo

Contents of /dev-python/llvmpy/llvmpy-0.12.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Apr 8 08:05:05 2015 UTC (5 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/llvmpy/llvmpy-0.12.7.ebuild,v 1.3 2015/03/08 23:52:50 pacho Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Python wrapper around the llvm C++ library"
12 HOMEPAGE="http://llvmpy.org/"
13 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
18 IUSE="doc"
19
20 # fails with llvm-3.4
21 RDEPEND="=sys-devel/llvm-3.3*:=[multitarget]"
22 DEPEND="${RDEPEND}
23 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
24 # Usual; req'd for tests
25 DISTUTILS_IN_SOURCE_BUILD=1
26
27 PATCHES=( "${FILESDIR}"/${PN}-0.12.2-return-type.patch )
28
29 python_compile_all() {
30 use doc && emake -C docs html
31 }
32
33 python_compile() {
34 if ! python_is_python3; then
35 local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
36 export CXXFLAGS
37 fi
38 distutils-r1_python_compile
39 }
40
41 python_test() {
42 cd "${BUILD_DIR}"/lib* || die
43 ${PYTHON} -c "import llvm; llvm.test()" || die
44 }
45
46 python_install() {
47 if ! python_is_python3; then
48 local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
49 export CXXFLAGS
50 fi
51 distutils-r1_python_install
52 }
53
54 python_install_all() {
55 use doc && local HTML_DOCS=( docs/_build/html )
56 distutils-r1_python_install_all
57 }

  ViewVC Help
Powered by ViewVC 1.1.20