Gentoo Archives: gentoo-commits

From: "Donnie Berkholz (dberkholz)" <dberkholz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/refmac: refmac-5.6.0102-r1.ebuild ChangeLog refmac-5.5.0110-r3.ebuild
Date: Mon, 31 Jan 2011 21:14:55
Message-Id: 20110131211439.94DA320054@flycatcher.gentoo.org
1 dberkholz 11/01/31 21:14:39
2
3 Modified: ChangeLog
4 Added: refmac-5.6.0102-r1.ebuild refmac-5.5.0110-r3.ebuild
5 Log:
6 Fix for ARP/wARP. It looked for Refmac in a location where we didn't have it, so make another symlink.
7
8 (Portage version: 2.1.9.35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.42 sci-chemistry/refmac/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?rev=1.42&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?rev=1.42&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?r1=1.41&r2=1.42
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v
20 retrieving revision 1.41
21 retrieving revision 1.42
22 diff -u -r1.41 -r1.42
23 --- ChangeLog 28 Jan 2011 15:39:11 -0000 1.41
24 +++ ChangeLog 31 Jan 2011 21:14:39 -0000 1.42
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-chemistry/refmac
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v 1.41 2011/01/28 15:39:11 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v 1.42 2011/01/31 21:14:39 dberkholz Exp $
30 +
31 +*refmac-5.6.0102-r1 (31 Jan 2011)
32 +*refmac-5.5.0110-r3 (31 Jan 2011)
33 +
34 + 31 Jan 2011; Donnie Berkholz <dberkholz@g.o>;
35 + +refmac-5.5.0110-r3.ebuild, +refmac-5.6.0102-r1.ebuild:
36 + Fix for ARP/wARP. It looked for Refmac in a location where we didn't have it,
37 + so make another symlink.
38
39 *refmac-5.6.0102 (28 Jan 2011)
40
41
42
43
44 1.1 sci-chemistry/refmac/refmac-5.6.0102-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0102-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0102-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: refmac-5.6.0102-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0102-r1.ebuild,v 1.1 2011/01/31 21:14:39 dberkholz Exp $
54
55 EAPI="2"
56
57 inherit base toolchain-funcs versionator
58
59 MY_PV="$(get_version_component_range 1-2)_source_v${PV}"
60
61 DESCRIPTION="Macromolecular crystallographic refinement program"
62 HOMEPAGE="http://www.ysbl.york.ac.uk/~garib/refmac"
63 SRC_URI="
64 ${HOMEPAGE}/data/refmac_experimental/${PN}${MY_PV}.tar.gz
65 test? ( http://dev.gentooexperimental.org/~jlec/distfiles/test-framework.tar.gz )"
66
67 SLOT="0"
68 LICENSE="ccp4"
69 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
70 IUSE="test"
71
72 RDEPEND="
73 >=sci-libs/ccp4-libs-6.1.3-r7
74 sci-libs/mmdb
75 >sci-libs/monomer-db-1
76 virtual/blas
77 virtual/lapack"
78 DEPEND="${RDEPEND}"
79
80 S="${WORKDIR}"
81
82 PATCHES=(
83 "${FILESDIR}"/${PV}-allow-dynamic-linking.patch
84 )
85
86 src_prepare() {
87 base_src_prepare
88 use test && epatch "${FILESDIR}"/5.5-test.log.patch
89 }
90
91 src_compile() {
92 emake \
93 FC=$(tc-getFC) \
94 CC=$(tc-getCC) \
95 CXX=$(tc-getCXX) \
96 COPTIM="${CFLAGS}" \
97 FOPTIM="${FFLAGS:- -O2}" \
98 VERSION="" \
99 XFFLAGS="-fno-second-underscore" \
100 LLIBCCP="-lccp4f -lccp4c -lccif -lmmdb -lstdc++" \
101 LLIBLAPACK="$(pkg-config --libs lapack blas)" \
102 || die
103 }
104
105 src_test() {
106 einfo "Starting tests ..."
107 source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
108 export PATH="${WORKDIR}/test-framework/scripts:${S}:${PATH}"
109 export CCP4_TEST="${WORKDIR}"/test-framework
110 export CCP4_SCR="${T}"
111 ln -sf refmac "${S}"/refmac5
112 sed '/^ANISOU/d' -i ${CCP4_TEST}/data/pdb/1vr7.pdb
113 ccp4-run-thorough-tests -v test_refmac5 || die
114 }
115
116 src_install() {
117 for i in refmac libcheck FreeTwin header2matr; do
118 exeinto /usr/libexec/ccp4/bin/
119 doexe ${i} || die
120 dosym ../libexec/ccp4/bin/${i} /usr/bin/${i}
121 done
122 dosym refmac /usr/bin/refmac5 || die
123 dosym refmac /usr/libexec/ccp4/bin/refmac5 || die
124 }
125
126
127
128 1.1 sci-chemistry/refmac/refmac-5.5.0110-r3.ebuild
129
130 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.5.0110-r3.ebuild?rev=1.1&view=markup
131 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.5.0110-r3.ebuild?rev=1.1&content-type=text/plain
132
133 Index: refmac-5.5.0110-r3.ebuild
134 ===================================================================
135 # Copyright 1999-2011 Gentoo Foundation
136 # Distributed under the terms of the GNU General Public License v2
137 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/refmac-5.5.0110-r3.ebuild,v 1.1 2011/01/31 21:14:39 dberkholz Exp $
138
139 EAPI="2"
140
141 inherit base toolchain-funcs versionator
142
143 DESCRIPTION="Macromolecular crystallographic refinement program"
144 HOMEPAGE="http://www.ysbl.york.ac.uk/~garib/refmac"
145 SRC_URI="
146 ${HOMEPAGE}/data/refmac_stable/refmac_${PV}.tar.gz
147 test? ( http://dev.gentooexperimental.org/~jlec/distfiles/test-framework.tar.gz )"
148
149 SLOT="0"
150 LICENSE="ccp4"
151 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
152 IUSE="test"
153
154 RDEPEND="
155 sci-chemistry/makecif
156 >=sci-libs/ccp4-libs-6.1.3-r7
157 sci-libs/mmdb
158 <sci-libs/monomer-db-1
159 virtual/blas
160 virtual/lapack"
161 DEPEND="${RDEPEND}"
162
163 S="${WORKDIR}"
164
165 PATCHES=(
166 "${FILESDIR}"/${PV}-allow-dynamic-linking.patch
167 )
168
169 src_prepare() {
170 base_src_prepare
171 use test && epatch "${FILESDIR}"/$(get_version_component_range 1-2 ${PV})-test.log.patch
172 }
173
174 src_compile() {
175 emake \
176 FC=$(tc-getFC) \
177 CC=$(tc-getCC) \
178 CXX=$(tc-getCXX) \
179 COPTIM="${CFLAGS}" \
180 FOPTIM="${FFLAGS:- -O2}" \
181 VERSION="" \
182 XFFLAGS="-fno-second-underscore" \
183 LLIBCCP="-lccp4f -lccp4c -lccif -lmmdb -lstdc++" \
184 LLIBLAPACK="$(pkg-config --libs lapack blas)" \
185 ${PN} libcheck || die
186 }
187
188 src_test() {
189 einfo "Starting tests ..."
190 source "${EPREFIX}/etc/profile.d/40ccp4.setup.sh"
191 export PATH="${WORKDIR}/test-framework/scripts:${S}:${PATH}"
192 export CCP4_TEST="${WORKDIR}"/test-framework
193 export CCP4_SCR="${T}"
194 ln -sf refmac "${S}"/refmac5
195 sed '/^ANISOU/d' -i ${CCP4_TEST}/data/pdb/1vr7.pdb
196 ccp4-run-thorough-tests -v test_refmac5 || die
197 }
198
199 src_install() {
200 exeinto /usr/libexec/ccp4/bin/
201 doexe ${PN} || die
202 dosym refmac /usr/libexec/ccp4/bin/refmac5 || die
203 dosym ../libexec/ccp4/bin/${PN} /usr/bin/${PN} || die
204 dosym refmac /usr/bin/refmac5 || die
205 dodoc refmac_keywords.pdf bugs_and_features.pdf || die
206 }