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/arp-warp-bin: arp-warp-bin-7.1.ebuild ChangeLog arp-warp-bin-7.1-r1.ebuild
Date: Sat, 26 Nov 2011 11:00:28
Message-Id: 20111126110018.B5E0E2004B@flycatcher.gentoo.org
1 jlec 11/11/26 11:00:18
2
3 Modified: arp-warp-bin-7.1.ebuild ChangeLog
4 Added: arp-warp-bin-7.1-r1.ebuild
5 Log:
6 Drop exit from source script; If present in the script, but package files are not present, you cannot log in anymore.
7
8 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.13 sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild?r1=1.12&r2=1.13
16
17 Index: arp-warp-bin-7.1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- arp-warp-bin-7.1.ebuild 16 Oct 2011 12:24:10 -0000 1.12
24 +++ arp-warp-bin-7.1.ebuild 26 Nov 2011 11:00:18 -0000 1.13
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2011 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild,v 1.12 2011/10/16 12:24:10 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1.ebuild,v 1.13 2011/11/26 11:00:18 jlec Exp $
30
31 EAPI=3
32
33 @@ -82,7 +82,7 @@
34 ewarn " 3/2=" $testcommand
35 ewarn "Invalid decimal separator (must be ".")"
36 ewarn "You need to set this correctly!!!"
37 - ewarn
38 + echo
39 ewarn "One way of setting the decimal separator is:"
40 ewarn "setenv LC_NUMERIC C' in your .cshrc file"
41 ewarn "\tor"
42 @@ -91,7 +91,7 @@
43 fi
44
45 grep -q sse2 /proc/cpuinfo || einfo "The CPU is lacking SSE2! You should use the cluster at EMBL-Hamburg."
46 - einfo
47 + echo
48 }
49
50 pkg_postrm() {
51
52
53
54 1.16 sci-chemistry/arp-warp-bin/ChangeLog
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?rev=1.16&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?rev=1.16&content-type=text/plain
58 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?r1=1.15&r2=1.16
59
60 Index: ChangeLog
61 ===================================================================
62 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v
63 retrieving revision 1.15
64 retrieving revision 1.16
65 diff -u -r1.15 -r1.16
66 --- ChangeLog 16 Oct 2011 12:24:10 -0000 1.15
67 +++ ChangeLog 26 Nov 2011 11:00:18 -0000 1.16
68 @@ -1,6 +1,13 @@
69 # ChangeLog for sci-chemistry/arp-warp-bin
70 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
71 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v 1.15 2011/10/16 12:24:10 ssuominen Exp $
72 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v 1.16 2011/11/26 11:00:18 jlec Exp $
73 +
74 +*arp-warp-bin-7.1-r1 (26 Nov 2011)
75 +
76 + 26 Nov 2011; Justin Lecher <jlec@g.o> arp-warp-bin-7.1.ebuild,
77 + +arp-warp-bin-7.1-r1.ebuild:
78 + Drop exit from source script; If present in the script, but package files are
79 + not present, you cannot log in anymore.
80
81 16 Oct 2011; Samuli Suominen <ssuominen@g.o> arp-warp-bin-7.1.ebuild:
82 amd64 restable
83
84
85
86 1.1 sci-chemistry/arp-warp-bin/arp-warp-bin-7.1-r1.ebuild
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1-r1.ebuild?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1-r1.ebuild?rev=1.1&content-type=text/plain
90
91 Index: arp-warp-bin-7.1-r1.ebuild
92 ===================================================================
93 # Copyright 1999-2011 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.1-r1.ebuild,v 1.1 2011/11/26 11:00:18 jlec Exp $
96
97 EAPI=3
98
99 PYTHON_DEPEND="2"
100
101 inherit eutils prefix python
102
103 MY_P="arp_warp_${PV}"
104
105 DESCRIPTION="Software for improvement and interpretation of crystallographic electron density maps"
106 SRC_URI="${MY_P}.tar.gz"
107 HOMEPAGE="http://www.embl-hamburg.de/ARP/"
108
109 LICENSE="ArpWarp"
110 SLOT="0"
111 KEYWORDS="-* amd64 ~x86 ~amd64-linux ~x86-linux"
112 IUSE=""
113
114 RDEPEND="
115 app-shells/tcsh
116 >=sci-chemistry/ccp4-6.1.3
117 sys-apps/gawk
118 virtual/jre
119 virtual/opengl
120 x11-libs/libX11"
121 DEPEND=""
122
123 RESTRICT="fetch"
124
125 S="${WORKDIR}/${MY_P}"
126
127 pkg_nofetch(){
128 elog "Fill out the form at http://www.embl-hamburg.de/ARP/"
129 elog "and place ${A} in ${DISTDIR}"
130 }
131
132 pkg_setup() {
133 python_set_active_version 2
134 }
135
136 src_prepare() {
137 epatch "${FILESDIR}"/${PV}-setup.patch
138 eprefixify "${S}"/share/arpwarp_setup_base.*
139 sed "s:PYVER:$(python_get_version):g" -i "${S}"/share/arpwarp_setup_base.*
140 python_convert_shebangs $(python_get_version) flex-wARP-src-354/*py
141 sed -e "s:/usr/:${EPREFIX}/usr/:g" -i flex-wARP-src-354/*py || die
142 sed -e '/exit/d' -i "${S}"/share/arpwarp_setup_base.* || die
143 }
144
145 src_install(){
146 PYVER=$(python_get_version)
147 m_type=$(uname -m)
148 os_type=$(uname)
149
150 insinto /opt/${PN}/byte-code/python-${PYVER}
151 doins "${S}"/flex-wARP-src-354/*py || die
152
153 exeinto /opt/${PN}/bin/bin-${m_type}-${os_type}
154 doexe "${S}"/bin/bin-${m_type}-${os_type}/* && \
155 doexe "${S}"/share/*sh || die
156
157 insinto /opt/${PN}/bin/bin-${m_type}-${os_type}
158 doins "${S}"/share/*{gif,bmp,XYZ,bash,csh,dat,lib,tbl,llh} || die
159
160 insinto /etc/profile.d/
161 newins "${S}"/share/arpwarp_setup_base.csh 90arpwarp_setup.csh && \
162 newins "${S}"/share/arpwarp_setup_base.bash 90arpwarp_setup.sh || die
163
164 dodoc "${S}"/README manual/UserGuide${PV}.pdf || die
165 dohtml -r "${S}"/manual/html/* || die
166 }
167
168 pkg_postinst(){
169 python_need_rebuild
170 python_mod_optimize /opt/${PN}/byte-code/python-${PYVER}
171
172 testcommand=$(echo 3 2 | awk '{printf"%3.1f",$1/$2}')
173 if [ $testcommand == "1,5" ];then
174 ewarn "*** ERROR ***"
175 ewarn " 3/2=" $testcommand
176 ewarn "Invalid decimal separator (must be ".")"
177 ewarn "You need to set this correctly!!!"
178 echo
179 ewarn "One way of setting the decimal separator is:"
180 ewarn "setenv LC_NUMERIC C' in your .cshrc file"
181 ewarn "\tor"
182 ewarn "export LC_NUMERIC=C' in your .bashrc file"
183 ewarn "Otherwise please consult your system manager"
184 fi
185
186 grep -q sse2 /proc/cpuinfo || einfo "The CPU is lacking SSE2! You should use the cluster at EMBL-Hamburg."
187 echo
188 }
189
190 pkg_postrm() {
191 python_mod_cleanup /opt/${PN}/byte-code/python-${PYVER}
192 }