blob: 18b49bd0716d0775381b71065ef93da5326bb6d1 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/shelx/shelx-20060317.ebuild,v 1.5 2006/10/12 19:03:45 dberkholz Exp $
inherit autotools eutils fortran
MY_P="unix"
MY_SRC_URI="${MY_P}.tgz"
DESCRIPTION="Programs for crystal structure determination from single-crystal diffraction data"
HOMEPAGE="http://shelx.uni-ac.gwdg.de/SHELX/"
SRC_URI="${P}.tgz"
RESTRICT="fetch"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="dosformat"
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
FORTRAN="ifc gfortran"
pkg_nofetch() {
einfo "Go to ${HOMEPAGE}"
einfo "Fill out the application form, and send it in."
einfo "Download ${MY_SRC_URI}, rename it to ${SRC_URI},"
einfo "and place it in ${DISTDIR}."
}
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${PV}-autotool.patch
epatch ${FILESDIR}/${PV}-gfortran.patch
sed -i \
-e "s:CIFDIR='/usr/local/bin/':CIFDIR='${ROOT}usr/share/${PN}/':g" \
"${S}"/ciftab.f
if use dosformat; then
sed -i \
-e "s/KD=CHAR(32)/KD=CHAR(13)/g" \
"${S}"/*f
fi
cd "${S}"
eautoreconf
}
src_compile() {
econf \
FC="${FORTRANC}" \
|| die "configure failed"
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
}
|