diff options
author | Michael Januszewski <spock@gentoo.org> | 2010-02-08 17:24:43 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2010-02-08 17:24:43 +0000 |
commit | 56184d63499d298aea919d5e93633a04f22ce84b (patch) | |
tree | 2307972fe99ffd4e51ae5dec3db19c03c4ea62e2 /dev-python/pycuda/pycuda-0.93.ebuild | |
parent | Convert to ruby-fakegem. (diff) | |
download | gentoo-2-56184d63499d298aea919d5e93633a04f22ce84b.tar.gz gentoo-2-56184d63499d298aea919d5e93633a04f22ce84b.tar.bz2 gentoo-2-56184d63499d298aea919d5e93633a04f22ce84b.zip |
Add the 'opengl' USE flag.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pycuda/pycuda-0.93.ebuild')
-rw-r--r-- | dev-python/pycuda/pycuda-0.93.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-python/pycuda/pycuda-0.93.ebuild b/dev-python/pycuda/pycuda-0.93.ebuild index 66fa6d0226ea..4dc38bae37d4 100644 --- a/dev-python/pycuda/pycuda-0.93.ebuild +++ b/dev-python/pycuda/pycuda-0.93.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-0.93.ebuild,v 1.1 2009/12/24 19:27:56 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pycuda/pycuda-0.93.ebuild,v 1.2 2010/02/08 17:24:43 spock Exp $ EAPI="2" @@ -13,12 +13,13 @@ SRC_URI="http://pypi.python.org/packages/source/p/pycuda/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="examples" +IUSE="examples opengl" RDEPEND="dev-python/pytools dev-libs/boost[python] >=dev-util/nvidia-cuda-toolkit-2.0 - >=dev-python/numpy-1.0.4" + >=dev-python/numpy-1.0.4 + virtual/opengl" DEPEND="${RDEPEND}" src_prepare() @@ -28,9 +29,13 @@ src_prepare() src_configure() { + local myopts="" + use opengl && myopts="${myopts} --cuda-enable-gl" + ./configure.py --cuda-root="${ROOT}opt/cuda" \ --boost-python-libname=boost_python-mt \ - --boost-thread-libname=boost_thread-mt + --boost-thread-libname=boost_thread-mt \ + ${myopts} } src_install() |