ortep3-1.0.3-r1.ebuild 716 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit fortran-2 toolchain-funcs
  5. DESCRIPTION="Thermal ellipsoid plot program for crystal structure illustrations"
  6. HOMEPAGE="http://www.ornl.gov/sci/ortep/"
  7. SRC_URI="ftp://ftp.ornl.gov/pub/ortep/src/ortep.f"
  8. SLOT="0"
  9. LICENSE="public-domain"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="
  13. sci-libs/pgplot
  14. x11-libs/libX11"
  15. DEPEND="${RDEPEND}"
  16. S="${WORKDIR}"
  17. src_unpack() {
  18. cp "${DISTDIR}"/${A} "${S}" || die
  19. }
  20. src_compile() {
  21. COMMAND="$(tc-getFC) ${FFLAGS:- -O2} ${LDFLAGS} -o ${PN} ortep.f -lpgplot -lX11"
  22. echo ${COMMAND}
  23. ${COMMAND} || die "Compilation failed"
  24. }
  25. src_install() {
  26. dobin ${PN}
  27. }