From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-chemistry/pdb-tools: ChangeLog pdb-tools-0.1.4-r2.ebuild pdb-tools-0.1.4-r1.ebuild |
Date: | Thu, 28 Oct 2010 20:01:49 |
Message-Id: | 20101028200140.2F88B20051@flycatcher.gentoo.org |
1 | jlec 10/10/28 20:01:40 |
2 | |
3 | Modified: ChangeLog |
4 | Added: pdb-tools-0.1.4-r2.ebuild |
5 | Removed: pdb-tools-0.1.4-r1.ebuild |
6 | Log: |
7 | important fix and Support for Python ABIs |
8 | |
9 | (Portage version: 2.2.0_alpha2/cvs/Linux x86_64) |
10 | |
11 | Revision Changes Path |
12 | 1.3 sci-chemistry/pdb-tools/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog?rev=1.3&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog?rev=1.3&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog?r1=1.2&r2=1.3 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog,v |
21 | retrieving revision 1.2 |
22 | retrieving revision 1.3 |
23 | diff -u -r1.2 -r1.3 |
24 | --- ChangeLog 28 Oct 2010 16:43:25 -0000 1.2 |
25 | +++ ChangeLog 28 Oct 2010 20:01:39 -0000 1.3 |
26 | @@ -1,6 +1,12 @@ |
27 | # ChangeLog for sci-chemistry/pdb-tools |
28 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog,v 1.2 2010/10/28 16:43:25 jlec Exp $ |
30 | +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/ChangeLog,v 1.3 2010/10/28 20:01:39 jlec Exp $ |
31 | + |
32 | +*pdb-tools-0.1.4-r2 (28 Oct 2010) |
33 | + |
34 | + 28 Oct 2010; Justin Lecher <jlec@g.o> -pdb-tools-0.1.4-r1.ebuild, |
35 | + +pdb-tools-0.1.4-r2.ebuild: |
36 | + important fix and Support for Python ABIs |
37 | |
38 | *pdb-tools-0.1.4-r1 (28 Oct 2010) |
39 | |
40 | |
41 | |
42 | |
43 | 1.1 sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: pdb-tools-0.1.4-r2.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2010 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/pdb-tools/pdb-tools-0.1.4-r2.ebuild,v 1.1 2010/10/28 20:01:39 jlec Exp $ |
53 | |
54 | EAPI="3" |
55 | |
56 | PYTHON_DEPEND="2" |
57 | SUPPORT_PYTHON_ABIS="1" |
58 | RESTRICT_PYTHON_ABIS="3.*" |
59 | |
60 | inherit python fortran |
61 | |
62 | DESCRIPTION="A set of tools for manipulating and doing calculations on wwPDB macromolecule structure files" |
63 | HOMEPAGE="http://code.google.com/p/pdb-tools" |
64 | SRC_URI="http://${PN}.googlecode.com/files/${PN}_${PV}.tar.gz" |
65 | |
66 | SLOT="0" |
67 | KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
68 | LICENSE="GPL-3" |
69 | IUSE="" |
70 | |
71 | RDEPEND="sci-chemistry/dssp" |
72 | DEPEND="" |
73 | |
74 | FORTRANC="ifc gfortran" |
75 | |
76 | S="${WORKDIR}"/${PN}_${PV} |
77 | |
78 | src_prepare() { |
79 | sed "s:script_dir,\"pdb_data\":\"${EPREFIX}/usr/share/${PN}\",\"pdb_data\":g" -i pdb_sasa.py || die |
80 | sed "/satk_path =/s:^.*$:satk_path = \"${EPREFIX}/usr/bin\":g" -i pdb_satk.py || die |
81 | } |
82 | |
83 | src_compile() { |
84 | mkdir bin |
85 | cd satk |
86 | for i in *.f; do |
87 | einfo "${FORTRANC} ${FFLAGS} ${LDFLAGS} ${i} -o ${i/.f}" |
88 | ${FORTRANC} ${FFLAGS} -c ${i} -o ${i/.f/.o} || die |
89 | ${FORTRANC} ${LDFLAGS} -o ../bin/${i/.f} ${i/.f/.o} || die |
90 | sed "s:${i/.f}.out:${i/.f}:g" -i ../pdb_satk.py || die |
91 | done |
92 | } |
93 | |
94 | src_install() { |
95 | insinto /usr/share/${PN} |
96 | doins -r pdb_data/peptides || die |
97 | rm -rf pdb_data/peptides || die |
98 | |
99 | installation() { |
100 | insinto $(python_get_sitedir) |
101 | doins -r helper pdb_data || die |
102 | |
103 | insinto $(python_get_sitedir)/${PN} |
104 | doins *.py || die |
105 | |
106 | for i in pdb_*.py; do |
107 | cat >> ${i/.py} <<- EOF |
108 | #!${EPREFIX}/bin/bash |
109 | $(PYTHON) -O "${EPREFIX}$(python_get_sitedir)/${PN}/${i}" \$@ |
110 | EOF |
111 | dobin ${i/.py} |
112 | done |
113 | } |
114 | |
115 | python_execute_function installation |
116 | |
117 | dobin bin/* || die |
118 | dodoc README || die |
119 | } |
120 | |
121 | pkg_postinst() { |
122 | python_mod_optimize ${PN} helper pdb_data |
123 | } |
124 | |
125 | pkg_postrm() { |
126 | python_mod_cleanup ${PN} helper pdb_data |
127 | } |