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