blob: 4cd9dd9bfd07529b089c5d66c37c4dfd99a92c5d (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/ortep3/ortep3-1.0.3.ebuild,v 1.1 2005/12/16 05:36:57 spyderous Exp $
inherit fortran
FORTRAN="g77"
DESCRIPTION="Thermal ellipsoid plot program for crystal structure illustrations"
HOMEPAGE="http://www.ornl.gov/sci/ortep/"
SRC_URI="ftp://ftp.ornl.gov/pub/ortep/src/ortep.f"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="sci-libs/pgplot
|| ( x11-libs/libX11 virtual/x11 )"
DEPEND="${RDEPEND}"
S=${WORKDIR}
src_unpack() {
cp ${DISTDIR}/${A} ${S}
}
src_compile() {
COMMAND="${FORTRANC} -o ortep3 ${FFLAGS:- -O2} ortep.f -lpgplot -lX11"
echo ${COMMAND}
${COMMAND} || die "Compilation failed"
}
src_install() {
dobin ortep3
}
|