Gentoo Archives: gentoo-commits

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