aboutsummaryrefslogtreecommitdiff
blob: bbafdb8245e054d40ac7ca7124da911c909c1261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

MY_P="UNIO10-Distribution19Dec2013"

DESCRIPTION="Automated NMR Data Analysis"
HOMEPAGE="http://perso.ens-lyon.fr/torsten.herrmann/Herrmann/Software.html"
#SRC_URI="http://perso.ens-lyon.fr/torsten.herrmann/Academic//Academic_Download_files/${MY_P}.tar.gz"
SRC_URI="${MY_P}.tar.gz"

SLOT="0"
KEYWORDS=""
LICENSE="unio"
IUSE=""

RDEPEND="
	app-shells/ksh
	!prefix? (
		>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
		>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
	)"
DEPEND=""

S="${WORKDIR}/UNIO_10"
RESTRICT="fetch"

QA_PREBUILT="opt/unio/*"

pkg_nofetch() {
	einfo "Please visit ${HOMEPAGE}"
	einfo "and fetch ${A}"
	einfo "into ${DISTDIR}"
}

src_install() {
	mv Unio\'10 Unio10 || die
	mv Unio10/Linux/{Unio\'10,Unio10} || die
	rm -rf \
		Unio10/MacOSX \
		UnioAlgorithms/.DS_Store \
		UnioAlgorithms/unio-2.0.2/src/unio/unioexe.Darwin* \
		UnioAlgorithms/unio-2.0.2/src/echo/libEcho.a \
		UnioAlgorithms/unio-2.0.2/License.pdf || die

	insinto /opt/${PN}
	doins -r Unio10 UnioAlgorithms UnioDocumentations
	fperms 755 \
		/opt/${PN}/Unio10/Linux/Unio10 \
		/opt/${PN}/Unio10/Linux/Externals/revzip.so
	chmod 755 \
		"${ED}"/opt/${PN}/UnioAlgorithms/${PN}-2.0.2/bin/* \
		"${ED}"/opt/${PN}/UnioAlgorithms/${PN}-2.0.2/src/${PN}/* || die

	cat >> "${T}/${PN}" <<- EOF
	#!${EPREFIX}/bin/bash
	cd "${EPREFIX}/opt/${PN}"
	exec Unio10/Linux/Unio10 \$@
	EOF

	dobin "${T}/${PN}"

	local i
	for i in ExecuteMatch ExecuteAtnosCandid ExecuteAtnosAscan; do
		dosym ../${PN}/UnioAlgorithms/${PN}-2.0.2/bin/${i} /opt/bin/${i}
	done
}