Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/nmrpipe/, sci-chemistry/nmrpipe/files/
Date: Thu, 26 Nov 2015 11:57:39
Message-Id: 1448539042.4c364af359ca5494e932dd10c0ee694df64ee049.jlec@gentoo
1 commit: 4c364af359ca5494e932dd10c0ee694df64ee049
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 26 11:57:22 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 26 11:57:22 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4c364af3
7
8 sci-chemistry/nmrpipe: Version Bump and cleanup
9
10 Package-Manager: portage-2.2.25
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 .../nmrpipe/files/{env-nmrpipe-new => env-nmrpipe} | 8 ++-
14 ....patch => nmrpipe-8.7.2015.320.15.26-lib.patch} | 0
15 ...r1.ebuild => nmrpipe-8.7.2015.320.15.26.ebuild} | 74 +++++++++-------------
16 3 files changed, 36 insertions(+), 46 deletions(-)
17
18 diff --git a/sci-chemistry/nmrpipe/files/env-nmrpipe-new b/sci-chemistry/nmrpipe/files/env-nmrpipe
19 similarity index 81%
20 rename from sci-chemistry/nmrpipe/files/env-nmrpipe-new
21 rename to sci-chemistry/nmrpipe/files/env-nmrpipe
22 index 87697f7..e155adc 100644
23 --- a/sci-chemistry/nmrpipe/files/env-nmrpipe-new
24 +++ b/sci-chemistry/nmrpipe/files/env-nmrpipe
25 @@ -1,8 +1,8 @@
26 # Platform
27 NMRCHECK="ALL"
28
29 -BINTYPE="linux9"
30 -NMRBINTYPE="linux9"
31 +BINTYPE="@BINTYPE@"
32 +NMRBINTYPE="@BINTYPE@"
33 PATH="/opt/nmrpipe/com:/opt/nmrpipe/bin:/opt/nmrpipe/dynamo/tcl:/opt/nmrpipe/talosplus/com:/opt/nmrpipe/dynamo/com"
34
35 # NMRPipe
36 @@ -40,3 +40,7 @@ PDBH_TAB="/opt/nmrpipe/pdb/resolution.tab"
37 TCLPATH="/opt/nmrpipe/com"
38
39 PROMEGA_DIR="/opt/nmrpipe/promega"
40 +
41 +NMR_PLUGIN_FN="/opt/nmrpipe/smile/NMR_PLUGIN_FN"
42 +NMR_PLUGIN_EXE="/opt/nmrpipe/smile/NMR_PLUGIN_EXE"
43 +NMR_PLUGIN_INFO="/opt/nmrpipe/smile/NMR_PLUGIN_INFO"
44
45 diff --git a/sci-chemistry/nmrpipe/files/nmrpipe-8.6.2015.271.07.19-lib.patch b/sci-chemistry/nmrpipe/files/nmrpipe-8.7.2015.320.15.26-lib.patch
46 similarity index 100%
47 rename from sci-chemistry/nmrpipe/files/nmrpipe-8.6.2015.271.07.19-lib.patch
48 rename to sci-chemistry/nmrpipe/files/nmrpipe-8.7.2015.320.15.26-lib.patch
49
50 diff --git a/sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild b/sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
51 similarity index 74%
52 rename from sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild
53 rename to sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
54 index 725c01d..2e80308 100644
55 --- a/sci-chemistry/nmrpipe/nmrpipe-8.6.2015.271.07.19-r1.ebuild
56 +++ b/sci-chemistry/nmrpipe/nmrpipe-8.7.2015.320.15.26.ebuild
57 @@ -20,6 +20,7 @@ SRC_URI="
58 http://spin.niddk.nih.gov/NMRPipe/install/download/install.com -> install-${PV}.com
59 http://spin.niddk.nih.gov/NMRPipe/install/download/binval.com -> binval-${PV}.com
60 http://spin.niddk.nih.gov/NMRPipe/install/download/NMRPipeX.tZ -> NMRPipeX-${PV}.tZ
61 + http://spin.niddk.nih.gov/NMRPipe/install/download/plugin.smile.tZ -> plugin.smile-${PV}.tZ
62 http://spin.niddk.nih.gov/NMRPipe/install/download/talos.tZ -> talos-${PV}.tZ
63 http://spin.niddk.nih.gov/NMRPipe/install/download/dyn.tZ -> dyn-${PV}.tZ
64 "
65 @@ -33,7 +34,6 @@ LICENSE="nmrpipe"
66 KEYWORDS=""
67 IUSE=""
68
69 -#RESTRICT="fetch strip"
70 RESTRICT="strip"
71
72 DEPEND="app-shells/tcsh"
73 @@ -53,76 +53,61 @@ RDEPEND="${DEPEND}
74 !prefix? ( >=x11-libs/libX11-1.6.2[abi_x86_32(-)] )
75 prefix? ( dev-util/patchelf )"
76
77 -S="${WORKDIR}"
78 +S="${WORKDIR}/NMR"
79
80 NMRBASE="/opt/${PN}"
81 ENMRBASE="${EPREFIX}/${NMRBASE}"
82
83 -QA_PREBUILT="
84 - opt/.*
85 - "
86 -
87 -pkg_nofetch() {
88 - einfo "Please visit:"
89 - einfo "\t${HOMEPAGE}"
90 - einfo
91 - einfo "Contact the author, then download the following files:"
92 - for i in ${A}; do
93 - einfo "\t${i}"
94 - done
95 - einfo
96 - einfo "Place the downloaded files in your distfiles directory:"
97 - einfo "\t${DISTDIR}"
98 -}
99 +QA_PREBUILT="opt/.*"
100
101 src_unpack() {
102 # The installation script will unpack the package. We just provide symlinks
103 # to the archive files, ...
104 - for i in NMRPipeX-${PV}.tZ talos-${PV}.tZ dyn-${PV}.tZ; do
105 + for i in NMRPipeX-${PV}.tZ plugin.smile-${PV}.tZ talos-${PV}.tZ dyn-${PV}.tZ; do
106 ln -sf "${DISTDIR}"/${i} ${i/-${PV}/} || die
107 done
108 + mkdir "${S}" && cd "${S}" || die
109 # ... copy the installation scripts ...
110 cp -L "${DISTDIR}"/install-${PV}.com install.com || die
111 cp -L "${DISTDIR}"/binval-${PV}.com binval.com || die
112 # ... and make the installation scripts executable.
113 chmod +x *.com || die
114 - # Unset DISPLAY to avoid the interactive graphical test.
115 - # This just unpacks the stuff
116 -# env DISPLAY="" csh ./install.com +type linux9 +dest "${S}"/NMR || die
117 - VIRTUALX_COMMAND="csh ./install.com +type linux9 +dest ${S}/NMR +nopost" virtualmake
118 + VIRTUALX_COMMAND="csh"
119 + virtualmake \
120 + ./install.com \
121 + +type $(usex x86 linux9 linux212_64) \
122 + +src "${WORKDIR}" \
123 + +dest "${S}" \
124 + +nopost +nocshrc
125 }
126
127 src_prepare() {
128 - local bin
129 + local bin i
130 epatch "${FILESDIR}"/${P}-lib.patch
131
132 - mv nmrbin.linux9/nmr{W,w}ish || die
133 + mv nmrbin.$(usex x86 linux9 linux212_64)/nmr{W,w}ish || die
134
135 ebegin "Cleaning installation"
136 - for i in ${A} ; do
137 - rm -f ${i/-${PV}/} || die "Failed to remove archive symlinks."
138 - done
139
140 # Remove some of the bundled applications and libraries; they are provided by Gentoo instead.
141 -# rm -r nmrbin.linux9/{lib/{libBLT24.so,libolgx.so*,libxview.so*,*.timestamp},*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
142 - rm -rf nmrbin.linux9/{lib/*.timestamp,*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
143 - nmrbin.{linux,mac,sgi6x,sol,winxp} nmruser format \
144 + rm -rf nmrbin.linux*/{lib/*.timestamp,*timestamp,xv,gnuplot*,rasmol*,nc,nedit} \
145 + nmrbin.{linux,mac} nmruser format \
146 + $(usex x86 nmrbin.linux212_64 nmrbin.linux9) \
147 || die "Failed to remove unnecessary libraries."
148 # As long as xview is not fixed for amd64 we do this
149 - rm nmrbin.linux9/lib/{libxview.so*,libolgx.so*} || die
150 + rm nmrbin.linux*/lib/{libxview.so*,libolgx.so*} || die
151 # Remove the initialisation script generated during the installation.
152 # It contains incorrect hardcoded paths; only the "nmrInit.com" script
153 # should be used.
154 - rm -f com/nmrInit.linux9.com || die "Failed to remove broken init script."
155 + rm -f com/nmrInit.linux*.com || die "Failed to remove broken init script."
156 # Remove installation log files.
157 - rm -f README_NMRPIPE_USERS *.log || die "Failed to remove installation log."
158 + rm -f README_NMRPIPE_USERS *.log install.com binval.com || die "Failed to remove installation log."
159 # Remove unused binaries
160 rm -f {talos*,spartaplus,promega}/bin/*{linux,mac,sgi6x,winxp} pdb/misc/addSeg || die
161
162 # Some scripts are on the wrong place
163 cp -f nmrtxt/*.com com/
164 - rm -f {acme,com}/{nmrproc,fid}.com || die
165 -
166 + rm -f {acme,com}/{nmrproc,fid,install}.com || die
167 eend
168
169 ebegin "Fixing paths in scripts"
170 @@ -143,7 +128,7 @@ src_prepare() {
171 -e "s: /usr/local/bin: ${EPREFIX}/usr/bin:g" \
172 -i $(find "${S}" \( -name "*.tcl" -o -name "*.com" -o -name "*.ksh" \)) \
173 {com/,nmrtxt/*.com,nmrtxt/nt/*.com,dynamo/tcl/,talos*/com/,dynamo/tcl/}* \
174 - nmrbin.linux9/{nmrDraw,xNotify} || die
175 + nmrbin.linux*/{nmrDraw,xNotify} || die
176 eend
177
178 if use prefix; then
179 @@ -155,7 +140,7 @@ src_prepare() {
180 -i com/* || die
181
182 ebegin "Setting RPATH in binaries"
183 - for bin in $(find nmrbin.linux9/ -type f -maxdepth 1); do
184 + for bin in $(find nmrbin.linux*/ -type f -maxdepth 1); do
185 patchelf --set-rpath "${EPREFIX}/usr/lib/" ${bin}
186 done
187 eend $?
188 @@ -187,20 +172,21 @@ src_install() {
189
190 sed \
191 -e "s:/opt/nmrpipe:${EPREFIX}/opt/nmrpipe:g" \
192 - "${FILESDIR}"/env-${PN}-new \
193 - > env-${PN}-new || die
194 - newenvd env-${PN}-new 40${PN}
195 + -e "s:@BINTYPE@:$(usex x86 linux9 linux212_64):g" \
196 + "${FILESDIR}"/env-${PN} \
197 + > "${T}"/env-${PN} || die
198 + newenvd "${T}"/env-${PN} 40${PN}
199
200 insinto ${NMRBASE}
201 doins -r *
202
203 - dosym nmrbin.linux9 ${NMRBASE}/bin
204 + dosym nmrbin.linux* ${NMRBASE}/bin
205
206 ebegin "Fixing permissions"
207 - chmod 775 "${ED}"/${NMRBASE}/{talos*/bin/,sparta*/bin/,nmrbin.linux9/,com/,dynamo/tcl/,nmrtxt/*.com,talos*/com/,promega/bin/}* || die
208 + chmod 775 "${ED}"/${NMRBASE}/{talos*/bin/,sparta*/bin/,nmrbin.linux*/,com/,dynamo/tcl/,nmrtxt/*.com,talos*/com/,promega/bin/}* || die
209 eend
210
211 - exeinto ${NMRBASE}/nmrbin.linux9
212 + exeinto ${NMRBASE}/nmrbin.$(usex x86 linux9 linux212_64)
213 doexe "${T}"/nmrWish
214
215 insinto ${NMRBASE}/nmrtxt