/[gentoo-x86]/sci-libs/mmtk/mmtk-2.7.3.ebuild
Gentoo

Contents of /sci-libs/mmtk/mmtk-2.7.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Oct 24 10:13:26 2014 UTC (5 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
sci-libs/mmtk: Mask newer numpy

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/mmtk/mmtk-2.7.3.ebuild,v 1.5 2012/11/04 10:00:55 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
10
11 inherit distutils
12
13 # This number identifies each release on the CRU website.
14 # Can't figure out how to avoid hardcoding it.
15 NUMBER="3421"
16
17 MY_PN=${PN/mmtk/MMTK}
18 MY_P=${MY_PN}-${PV}
19
20 PYTHON_MODNAME="${MY_PN}"
21
22 DESCRIPTION="Molecular Modeling ToolKit for Python"
23 HOMEPAGE="http://dirac.cnrs-orleans.fr/MMTK/"
24 SRC_URI="http://sourcesup.cru.fr/frs/download.php/${NUMBER}/${MY_P}.tar.gz"
25
26 SLOT="0"
27 LICENSE="CeCILL-2"
28 KEYWORDS="~amd64 ~x86 ~ppc ~amd64-linux ~x86-linux"
29 IUSE="examples"
30
31 RDEPEND="
32 dev-python/cython
33 <dev-python/numpy-1.9
34 dev-python/scientificpython"
35 DEPEND="${RDEPEND}"
36
37 S="${WORKDIR}"/${MY_P}
38
39 src_prepare() {
40 export MMTK_USE_CYTHON="1"
41 sed -i -e "/ext_package/d" \
42 "${S}"/setup.py \
43 || die
44 distutils_src_prepare
45 }
46
47 src_install() {
48 distutils_src_install
49
50 dodoc README* Doc/CHANGELOG
51 dohtml -r Doc/HTML/*
52
53 if use examples; then
54 insinto /usr/share/${P}
55 doins -r Examples
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20