From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-chemistry/molrep: metadata.xml ChangeLog molrep-10.2.35.ebuild |
Date: | Sat, 06 Feb 2010 00:45:53 |
Message-Id: | E1NdYo3-0002W8-82@stork.gentoo.org |
1 | jlec 10/02/06 00:45:51 |
2 | |
3 | Added: metadata.xml ChangeLog molrep-10.2.35.ebuild |
4 | Log: |
5 | Another splitted app from ccp4 |
6 | (Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-chemistry/molrep/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>sci</herd> |
20 | <maintainer> |
21 | <email>sci@g.o</email> |
22 | </maintainer> |
23 | <use> |
24 | <flag name='extra-test'>Extra long tests</flag> |
25 | </use> |
26 | </pkgmetadata> |
27 | |
28 | |
29 | |
30 | 1.1 sci-chemistry/molrep/ChangeLog |
31 | |
32 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/ChangeLog?rev=1.1&view=markup |
33 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/ChangeLog?rev=1.1&content-type=text/plain |
34 | |
35 | Index: ChangeLog |
36 | =================================================================== |
37 | # ChangeLog for sci-chemistry/molrep |
38 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
39 | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molrep/ChangeLog,v 1.1 2010/02/06 00:45:50 jlec Exp $ |
40 | |
41 | *molrep-10.2.35 (06 Feb 2010) |
42 | |
43 | 06 Feb 2010; Justin Lecher (jlec) <jlec@g.o> |
44 | +files/10.2.35-respect-FLAGS.patch, +molrep-10.2.35.ebuild: |
45 | molrep splitted from ccp4 |
46 | |
47 | |
48 | |
49 | |
50 | 1.1 sci-chemistry/molrep/molrep-10.2.35.ebuild |
51 | |
52 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/molrep-10.2.35.ebuild?rev=1.1&view=markup |
53 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molrep/molrep-10.2.35.ebuild?rev=1.1&content-type=text/plain |
54 | |
55 | Index: molrep-10.2.35.ebuild |
56 | =================================================================== |
57 | # Copyright 1999-2010 Gentoo Foundation |
58 | # Distributed under the terms of the GNU General Public License v2 |
59 | # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molrep/molrep-10.2.35.ebuild,v 1.1 2010/02/06 00:45:50 jlec Exp $ |
60 | |
61 | EAPI="3" |
62 | |
63 | inherit base multilib toolchain-funcs |
64 | |
65 | DESCRIPTION="molecular replacement program" |
66 | HOMEPAGE="http://www.ysbl.york.ac.uk/~alexei/molrep.html" |
67 | SRC_URI="http://dev.gentooexperimental.org/~jlec/science-dist/${P}.tar.gz |
68 | test? ( http://dev.gentooexperimental.org/~jlec/distfiles/test-framework.tar.gz )" |
69 | |
70 | LICENSE="ccp4" |
71 | SLOT="0" |
72 | KEYWORDS="~amd64 ~x86" |
73 | IUSE="test extra-test" |
74 | |
75 | RDEPEND=" |
76 | >=sci-libs/ccp4-libs-6.1.3 |
77 | sci-libs/mmdb |
78 | virtual/lapack" |
79 | DEPEND="${RDEPEND}" |
80 | |
81 | S="${WORKDIR}/${PN}" |
82 | |
83 | PATCHES=( |
84 | "${FILESDIR}"/${PV}-respect-FLAGS.patch |
85 | ) |
86 | |
87 | src_compile() { |
88 | cd "${S}"/src |
89 | emake clean || die |
90 | emake \ |
91 | MR_FORT=$(tc-getFC) \ |
92 | FFLAGS="${FFLAGS}" \ |
93 | LDFLAGS="${LDFLAGS}" \ |
94 | MR_LIBRARY="-L${EPREFIX}/usr/$(get_libdir) -lccp4f -lccp4c -lmmdb -lccif -llapack -lstdc++ -lm" \ |
95 | || die |
96 | } |
97 | |
98 | src_test() { |
99 | einfo "Starting tests ..." |
100 | export PATH="${WORKDIR}/test-framework/scripts:${S}/bin:${PATH}" |
101 | export CCP4_TEST="${WORKDIR}"/test-framework |
102 | export CCP4_SCR="${T}" |
103 | ccp4-run-thorough-tests -v test_molrep || die "nomal test failed" |
104 | |
105 | use extra-test && \ |
106 | cd "${S}"/molrep_check && \ |
107 | ewarn "Can take a long, long time ..." && \ |
108 | ewarn "Go, take a coffee, lunch, go to sleep and have breakfast ..." && \ |
109 | sed 's:\.\.:\.:g' -i em.bat && \ |
110 | mkdir out && \ |
111 | mkdir scr && \ |
112 | MR_TEST="${S}/bin" bash em.bat && \ |
113 | MR_TEST="${S}/bin" bash mr.bat || \ |
114 | die "extra-test failed" |
115 | } |
116 | |
117 | src_install() { |
118 | dobin bin/${PN} || die |
119 | dodoc readme doc/${PN}.rtf || die |
120 | } |