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/refmac: ChangeLog refmac-5.6.0097.ebuild
Date: Tue, 04 Jan 2011 08:55:30
Message-Id: 20110104085521.42EC92005C@flycatcher.gentoo.org
1 jlec 11/01/04 08:55:21
2
3 Modified: ChangeLog
4 Added: refmac-5.6.0097.ebuild
5 Log:
6 Version Bump
7
8 (Portage version: 2.2.0_alpha12/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 sci-chemistry/refmac/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 31 Dec 2010 16:08:51 -0000 1.31
24 +++ ChangeLog 4 Jan 2011 08:55:21 -0000 1.32
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-chemistry/refmac
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v 1.31 2010/12/31 16:08:51 jlec Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/ChangeLog,v 1.32 2011/01/04 08:55:21 jlec Exp $
31 +
32 +*refmac-5.6.0097 (04 Jan 2011)
33 +
34 + 04 Jan 2011; Justin Lecher <jlec@g.o>
35 + +files/5.6.0097-allow-dynamic-linking.patch, +refmac-5.6.0097.ebuild:
36 + Version Bump
37
38 31 Dec 2010; Justin Lecher <jlec@g.o> refmac-5.5.0110-r2.ebuild:
39 Depend correct ccp4-libs version to make test work
40
41
42
43 1.1 sci-chemistry/refmac/refmac-5.6.0097.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0097.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0097.ebuild?rev=1.1&content-type=text/plain
47
48 Index: refmac-5.6.0097.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/refmac/refmac-5.6.0097.ebuild,v 1.1 2011/01/04 08:55:21 jlec Exp $
53
54 EAPI="2"
55
56 inherit base toolchain-funcs versionator
57
58 MY_PV="$(get_version_component_range 1-2)_source_v${PV}"
59
60 DESCRIPTION="Macromolecular crystallographic refinement program"
61 HOMEPAGE="http://www.ysbl.york.ac.uk/~garib/refmac/"
62 SRC_URI="${HOMEPAGE}data/refmac_experimental/${PN}${MY_PV}.tar.gz
63 test? ( http://dev.gentooexperimental.org/~jlec/distfiles/test-framework.tar.gz )"
64
65 SLOT="0"
66 LICENSE="ccp4"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="test"
69
70 RDEPEND="
71 sci-libs/ccp4-libs
72 sci-libs/mmdb
73 >sci-libs/monomer-db-1
74 virtual/blas
75 virtual/lapack"
76 DEPEND="${RDEPEND}"
77
78 S="${WORKDIR}"
79
80 PATCHES=(
81 "${FILESDIR}"/${PV}-allow-dynamic-linking.patch
82 )
83
84 src_prepare() {
85 base_src_prepare
86 use test && epatch "${FILESDIR}"/5.5-test.log.patch
87 }
88
89 src_compile() {
90 emake \
91 FC=$(tc-getFC) \
92 CC=$(tc-getCC) \
93 CXX=$(tc-getCXX) \
94 COPTIM="${CFLAGS}" \
95 FOPTIM="${FFLAGS:- -O2}" \
96 VERSION="" \
97 XFFLAGS="-fno-second-underscore" \
98 LLIBCCP="-lccp4f -lccp4c -lccif -lmmdb -lstdc++" \
99 LLIBLAPACK="$(pkg-config --libs lapack blas)" \
100 || die
101 }
102
103 src_test() {
104 einfo "Starting tests ..."
105 export PATH="${WORKDIR}/test-framework/scripts:${S}:${PATH}"
106 export CCP4_TEST="${WORKDIR}"/test-framework
107 export CCP4_SCR="${T}"
108 ln -sf refmac "${S}"/refmac5
109 sed '/^ANISOU/d' -i ${CCP4_TEST}/data/pdb/1vr7.pdb
110 ccp4-run-thorough-tests -v test_refmac5 || die
111 }
112
113 src_install() {
114 for i in refmac libcheck FreeTwin header2matr; do
115 exeinto /usr/libexec/ccp4/bin/
116 doexe ${i} || die
117 dosym ../libexec/ccp4/bin/${i} /usr/bin/${i}
118 done
119 dosym refmac /usr/bin/refmac5 || die
120 }