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