aboutsummaryrefslogtreecommitdiff
blob: 34c254df104852ac33f5c71eae3955651279bcb4 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="X-ray Detector Software for processing single-crystal monochromatic diffraction data."
SRC_URI="XDS-linux_ifc_Intel+AMD-${PV}.tar.gz
		 XDS_html_doc-${PV}.tar.gz"
HOMEPAGE="http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/"
RESTRICT="fetch"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="smp X"
RDEPEND="X? ( x11-libs/libXdmcp
			  x11-libs/libXau
			  x11-libs/libX11 )"
DEPEND=""

pkg_nofetch(){
	ewarn "Fetch XDS-linux_ifc_Intel+AMD.tar.gz and XDS_html_doc.tar.gz"
	ewarn "from ${HOMEPAGE}html_doc/downloading.html"
	ewarn "rename it to $A and"
	ewarn "place it in $DISTDIR"
}

src_install() {
	exeinto /opt/${PN}
	doexe XDS-linux_ifc_Intel+AMD/*
	if use smp; then
		rm "${D}"/opt/${PN}/{xds,mintegrate,mcolspot,xscale}
		dosym xds_par /opt/${PN}/xds
		dosym xscale_par /opt/${PN}/xscale
		dosym mintegrate_par /opt/${PN}/mintegrate
		dosym mcolspot_par /opt/${PN}/mcolspot
	else
		rm "${D}"/opt/${PN}/*par
	fi
	if ! use X; then
		rm "${D}"/opt/${PN}/VIEW
	fi
	dohtml -r XDS_html_doc/*
	dodoc XDS_html_doc/html_doc/INPUT_templates/*

	cat >> "${T}"/20xds <<- EOF
	PATH="/opt/${PN}/"
	EOF
	doenvd "${T}"/20xds
}

pkg_postinst() {
	elog "This package will expire on December 31, 2008"
}