summaryrefslogtreecommitdiff
blob: 541cbfb83802bb3b354deb193002eb5b3db6b9b5 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

DESCRIPTION="Programs for crystal structure determination from single-crystal diffraction data"
HOMEPAGE="http://shelx.uni-ac.gwdg.de/SHELX/"
SRC_URI="
	amd64? (
		anode_amd64.bz2
		ciftab_amd64.bz2
		shelxc_amd64.bz2
		shelxd_amd64.bz2
		shelxe_amd64.bz2
		shelxl_amd64.bz2
		shelxs_amd64.bz2
		shelxt_amd64.bz2
		shredcif_amd64.bz2
	)
	x86? (
		anode_x86.bz2
		ciftab_x86.bz2
		shelxc_x86.bz2
		shelxd_x86.bz2
		shelxe_x86.bz2
		shelxl_x86.bz2
		shelxs_x86.bz2
		shelxt_x86.bz2
		shredcif_x86.bz2
	)
"

SLOT="0"
LICENSE="free-noncomm"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
IUSE=""

S="${WORKDIR}"

RESTRICT="fetch"

QA_PREBUILT="opt/bin/*"

pkg_nofetch() {
	elog "Go to ${HOMEPAGE}"
	elog "Fill out the application form, and send it in."
	elog "Download ${A} and rename them to"
	use amd64 && elog "*_amd64.bz2"
	use x86 && elog "*_x86.bz2"
	elog "and place renamed tarballs in ${DISTDIR}."
}

src_install() {
	local i
	into /opt
	for i in *; do
		newbin ${i} ${i/_*/}
	done
}