1 |
jlec 10/02/25 08:06:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: arp-warp-bin-7.0.1-r2.ebuild |
5 |
Removed: arp-warp-bin-7.0.1-r1.ebuild |
6 |
Log: |
7 |
Handle ccp4 installation correctly |
8 |
(Portage version: 2.2_rc63/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 sci-chemistry/arp-warp-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 7 Feb 2010 22:04:14 -0000 1.2 |
24 |
+++ ChangeLog 25 Feb 2010 08:06:28 -0000 1.3 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sci-chemistry/arp-warp-bin |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v 1.2 2010/02/07 22:04:14 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/ChangeLog,v 1.3 2010/02/25 08:06:28 jlec Exp $ |
30 |
+ |
31 |
+*arp-warp-bin-7.0.1-r2 (25 Feb 2010) |
32 |
+ |
33 |
+ 25 Feb 2010; Justin Lecher (jlec) <jlec@×××××××××.net> |
34 |
+ files/7.0.1-setup.patch, -arp-warp-bin-7.0.1-r1.ebuild, |
35 |
+ files/7.0.1-source-ccp4-if-needed.patch, +arp-warp-bin-7.0.1-r2.ebuild: |
36 |
+ Handle ccp4 installation correctly |
37 |
|
38 |
07 Feb 2010; Justin Lecher (jlec) <jlec@g.o> |
39 |
arp-warp-bin-7.0.1-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-chemistry/arp-warp-bin/arp-warp-bin-7.0.1-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.0.1-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.0.1-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: arp-warp-bin-7.0.1-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/arp-warp-bin/arp-warp-bin-7.0.1-r2.ebuild,v 1.1 2010/02/25 08:06:28 jlec Exp $ |
53 |
|
54 |
inherit eutils python |
55 |
|
56 |
MY_P="arp_warp_${PV}" |
57 |
|
58 |
DESCRIPTION="ARP/wARP is a software for improvement and interpretation of crystallographic electron density maps" |
59 |
SRC_URI="${MY_P}.tar.gz" |
60 |
HOMEPAGE="http://www.embl-hamburg.de/ARP/" |
61 |
|
62 |
LICENSE="ArpWarp" |
63 |
RESTRICT="fetch" |
64 |
SLOT="0" |
65 |
KEYWORDS="-* ~amd64 ~x86" |
66 |
IUSE="" |
67 |
|
68 |
RDEPEND="app-shells/tcsh |
69 |
>=sci-chemistry/ccp4-6.1.3 |
70 |
sys-apps/gawk |
71 |
>=dev-lang/python-2.4" |
72 |
DEPEND="" |
73 |
|
74 |
S="${WORKDIR}/${MY_P}" |
75 |
|
76 |
pkg_nofetch(){ |
77 |
elog "Fill out the form at http://www.embl-hamburg.de/ARP/" |
78 |
elog "and place ${A} in ${DISTDIR}" |
79 |
} |
80 |
|
81 |
src_unpack() { |
82 |
unpack ${A} |
83 |
cd "${S}" |
84 |
epatch "${FILESDIR}"/${PV}-setup.patch |
85 |
epatch "${FILESDIR}"/${PV}-source-ccp4-if-needed.patch |
86 |
} |
87 |
|
88 |
src_install(){ |
89 |
python_version |
90 |
m_type=$(uname -m) |
91 |
os_type=$(uname) |
92 |
|
93 |
insinto /opt/${PN}/byte-code/python-${PYVER} |
94 |
doins "${S}"/flex-wARP-src-261/*py |
95 |
|
96 |
exeinto /opt/${PN}/bin/bin-${m_type}-${os_type} |
97 |
doexe "${S}"/bin/bin-${m_type}-${os_type}/* && \ |
98 |
doexe "${S}"/share/*sh || die |
99 |
|
100 |
insinto /opt/${PN}/bin/bin-${m_type}-${os_type} |
101 |
doins "${S}"/share/*{gif,XYZ,bash,csh,dat,lib,tbl,llh} || die |
102 |
|
103 |
insinto /etc/profile.d/ |
104 |
newins "${S}"/share/arpwarp_setup_base.csh 90arpwarp_setup.csh && \ |
105 |
newins "${S}"/share/arpwarp_setup_base.bash 90arpwarp_setup.sh || die |
106 |
|
107 |
dodoc "${S}"/README |
108 |
dohtml -r "${S}"/manual/* |
109 |
insinto /usr/share/doc/${PF} |
110 |
doins -r "${S}"/{examples,ARP_wARP_CCP4I6.tar.gz} |
111 |
} |
112 |
|
113 |
pkg_postinst(){ |
114 |
python_need_rebuild |
115 |
python_mod_optimize "${ROOT}"/opt/${PN}/byte-code/python-${PYVER} |
116 |
|
117 |
testcommand=$(echo 3 2 | awk '{printf"%3.1f",$1/$2}') |
118 |
if [ $testcommand == "1,5" ];then |
119 |
ewarn "*** ERROR ***" |
120 |
ewarn " 3/2=" $testcommand |
121 |
ewarn "Invalid decimal separator (must be ".")" |
122 |
ewarn "You need to set this correctly!!!" |
123 |
ewarn |
124 |
ewarn "One way of setting the decimal separator is:" |
125 |
ewarn "setenv LC_NUMERIC C' in your .cshrc file" |
126 |
ewarn "\tor" |
127 |
ewarn "export LC_NUMERIC=C' in your .bashrc file" |
128 |
ewarn "Otherwise please consult your system manager" |
129 |
epause 10 |
130 |
fi |
131 |
|
132 |
grep -q sse2 /proc/cpuinfo || einfo "The CPU is lacking SSE2! You should use the cluster at EMBL-Hamburg." |
133 |
einfo |
134 |
elog "The ccp4 interface file could be found in /usr/share/doc/"${P} |
135 |
elog "To install, run ccp4i as root, navigate to System Administration," |
136 |
elog "Install/uninstall tasks, then choose ARP_wARP_CCP4I6.tar.gz." |
137 |
} |
138 |
|
139 |
pkg_postrm() { |
140 |
python_mod_cleanup "${ROOT}"/opt/${PN}/byte-code/python-${PYVER} |
141 |
} |