blob: 93f6af077f5154a80976925a8e4cef6ee20971a6 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pymol-plugins-cealign/pymol-plugins-cealign-0.9.ebuild,v 1.2 2010/02/19 10:30:09 jlec Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="The CE algorithm is a fast and accurate protein structure alignment algorithm."
HOMEPAGE="http://www.pymolwiki.org/index.php/Cealign"
SRC_URI="http://www.pymolwiki.org/images/0/03/Cealign-${PV}.zip"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~x86 ~amd64 ~amd64-linux"
IUSE=""
DEPEND="
dev-python/numpy
~sci-chemistry/pymol-1.2.2"
RDEPEND=""
RESTRICT_PYTHON_ABIS="2.4 3.*"
S=${WORKDIR}/cealign-0.9
src_prepare() {
python_copy_sources
}
src_install(){
mtype=$(uname -m)
distutils_src_install
installation() {
insinto $(python_get_sitedir)/cealign
doins qkabsch.py cealign.py || die
}
python_execute_function -s installation
cat >> "${T}"/pymolrc <<- EOF
run "${EPREFIX}/$(python_get_sitedir -f)/cealign/qkabsch.py"
run "${EPREFIX}/$(python_get_sitedir -f)/cealign/cealign.py"
EOF
insinto $(python_get_sitedir -f)/pymol
doins "${T}"/pymolrc || die
dodoc CHANGES doc/cealign.pdf || die
}
|