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/xia2: ChangeLog xia2-0.3.1.7.ebuild
Date: Tue, 27 Jul 2010 18:57:47
Message-Id: 20100727185743.8A2092CF37@corvid.gentoo.org
1 jlec 10/07/27 18:57:43
2
3 Modified: ChangeLog
4 Added: xia2-0.3.1.7.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 sci-chemistry/xia2/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/xia2/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/xia2/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/xia2/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 22 Apr 2010 19:29:41 -0000 1.3
23 +++ ChangeLog 27 Jul 2010 18:57:43 -0000 1.4
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-chemistry/xia2
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/ChangeLog,v 1.3 2010/04/22 19:29:41 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/ChangeLog,v 1.4 2010/07/27 18:57:43 jlec Exp $
29 +
30 +*xia2-0.3.1.7 (27 Jul 2010)
31 +
32 + 27 Jul 2010; Justin Lecher <jlec@g.o>
33 + +files/0.3.1.7-fix-syntax.patch, +xia2-0.3.1.7.ebuild:
34 + Version bump
35
36 22 Apr 2010; Justin Lecher <jlec@g.o> xia2-0.3.1.6.ebuild:
37 Keyworded for ~*-linux
38
39
40
41 1.1 sci-chemistry/xia2/xia2-0.3.1.7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/xia2/xia2-0.3.1.7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/xia2/xia2-0.3.1.7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xia2-0.3.1.7.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/xia2/xia2-0.3.1.7.ebuild,v 1.1 2010/07/27 18:57:43 jlec Exp $
51
52 EAPI="3"
53
54 PYTHON_DEPEND="2"
55
56 inherit eutils python
57
58 DESCRIPTION="An automated data reduction system for crystallography"
59 HOMEPAGE="http://www.xia2.org/xia/"
60 SRC_URI="http://www.ccp4.ac.uk/${PN}/${P}.tar.bz2"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
65 IUSE=""
66
67 RDEPEND="
68 >=sci-chemistry/ccp4-apps-6.1.2
69 sci-chemistry/mosflm
70 sci-chemistry/pointless
71 >=sci-libs/ccp4-libs-6.1.2
72 sci-libs/cctbx"
73 DEPEND="${RDEPEND}"
74
75 pkg_setup() {
76 python_set_active_version 2
77 }
78
79 src_prepare() {
80 find . -name '*.bat' -delete || die
81
82 epatch "${FILESDIR}"/${PV}-fix-syntax.patch
83 python_convert_shebangs -r $(python_get_version) .
84 }
85
86 src_install() {
87 rm -rf ${P}/binaries ${PN}core-${PV}/Test || die
88
89 insinto /usr/share/ccp4/XIAROOT/
90 doins -r * || die
91
92 # Set programs executable
93 # fperms cannot handle wildcards
94 chmod 755 "${ED}"/usr/share/ccp4/XIAROOT/${P}/Applications/* || die
95 chmod 644 "${ED}"/usr/share/ccp4/XIAROOT/${P}/Applications/*.py || die
96
97 cat >> "${T}"/23XIA <<- EOF
98 XIA2_HOME="${EPREFIX}"/usr/share/ccp4/XIAROOT
99 XIA2CORE_ROOT="${EPREFIX}"/usr/share/ccp4/XIAROOT/xia2core-${PV}
100 XIA2_ROOT="${EPREFIX}"/usr/share/ccp4/XIAROOT/xia2-${PV}
101 PATH="${EPREFIX}"/usr/share/ccp4/XIAROOT/xia2-${PV}/Applications
102 EOF
103
104 doenvd "${T}"/23XIA
105 }
106
107 pkg_postinst() {
108 python_mod_optimize /usr/share/ccp4/XIAROOT
109 }
110
111 pkg_postrm() {
112 python_mod_cleanup /usr/share/ccp4/XIAROOT
113 }