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/solve-resolve-bin: metadata.xml ChangeLog solve-resolve-bin-2.13.ebuild
Date: Tue, 02 Feb 2010 22:23:51
Message-Id: E1NcR9u-0007rZ-Qx@stork.gentoo.org
1 jlec 10/02/02 22:23:46
2
3 Added: metadata.xml ChangeLog
4 solve-resolve-bin-2.13.ebuild
5 Log:
6 Automated crystallographic structure solution for MIR, SAD, and MAD
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sci-chemistry/solve-resolve-bin/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <pkgmetadata>
19 <herd>sci-chemistry</herd>
20 <maintainer>
21 <email>jlec@g.o</email>
22 </maintainer>
23 </pkgmetadata>
24
25
26
27 1.1 sci-chemistry/solve-resolve-bin/ChangeLog
28
29 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/ChangeLog?rev=1.1&view=markup
30 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/ChangeLog?rev=1.1&content-type=text/plain
31
32 Index: ChangeLog
33 ===================================================================
34 # ChangeLog for sci-chemistry/solve-resolve-bin
35 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
36 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/solve-resolve-bin/ChangeLog,v 1.1 2010/02/02 22:23:45 jlec Exp $
37
38 *solve-resolve-bin-2.13 (02 Feb 2010)
39
40 02 Feb 2010; Justin Lecher (jlec) <jlec@g.o>
41 +solve-resolve-bin-2.13.ebuild, +metadata.xml:
42 Automated crystallographic structure solution for MIR, SAD, and MAD
43
44
45
46
47 1.1 sci-chemistry/solve-resolve-bin/solve-resolve-bin-2.13.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/solve-resolve-bin-2.13.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/solve-resolve-bin/solve-resolve-bin-2.13.ebuild?rev=1.1&content-type=text/plain
51
52 Index: solve-resolve-bin-2.13.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/solve-resolve-bin/solve-resolve-bin-2.13.ebuild,v 1.1 2010/02/02 22:23:45 jlec Exp $
57
58 EAPI="3"
59
60 inherit eutils
61
62 DESCRIPTION="Automated crystallographic structure solution for MIR, SAD, and MAD"
63 HOMEPAGE="http://www.solve.lanl.gov/index.html"
64 SRC_URI="x86? ( http://solve.lanl.gov/pub/solve/${PV}/solve-${PV}-linux.tar.gz )
65 amd64? ( http://solve.lanl.gov/pub/solve/${PV}/solve-${PV}-linux-64.tar.gz )"
66
67 SLOT="0"
68 LICENSE="solve"
69 KEYWORDS="-* ~x86 ~amd64"
70 IUSE="examples"
71
72 RDEPEND="sci-libs/ccp4-libs"
73 DEPEND=""
74
75 RESTRICT="mirror"
76 S="${WORKDIR}"/solve-${PV}
77
78 IN_PATH="/opt/solve-resolve/"
79
80 src_install(){
81 exeinto ${IN_PATH}bin/
82 doexe bin/*
83
84 insinto ${IN_PATH}lib/
85 doins -r lib/{*sym,sym*,hist*,*dat,segments,patterns} || die
86
87 dohtml -r lib/html/* || die
88 sed -i 's:/usr/local/lib/solve/:${EPREFIX}/opt/solve-resolve/lib/:' \
89 lib/examples_solve/p9/solve*
90 if use examples; then
91 sed -i 's:/usr/local/lib/resolve/:${EPREFIX}/opt/solve-resolve/lib/:' \
92 lib/examples_resolve/{resolve.csh,prime_and_switch.csh}
93 insinto /usr/share/${PF}/
94 doins -r lib/examples_*solve || die
95 fi
96
97 cat >> "${T}"/20solve-resolve <<- EOF
98 CCP4_OPEN="UNKNOWN"
99 SYMOP="${EPREFIX}/usr/share/ccp4/data/symop.lib"
100 SYMINFO="${EPREFIX}/usr/share/ccp4/data/syminfo.lib"
101 SOLVEDIR="${EPREFIX}/${IN_PATH}lib/"
102 PATH="${EPREFIX}/${IN_PATH}bin"
103 EOF
104
105 doenvd "${T}"/20solve-resolve
106 }
107
108 pkg_postinst(){
109 einfo "Get a valid license key from"
110 einfo "http://solve.lanl.gov/license.html"
111 einfo "and place it in"
112 einfo "${EPREFIX}/${IN_PATH}lib/"
113 }