/[gentoo-x86]/sci-chemistry/molden/molden-4.8.ebuild
Gentoo

Contents of /sci-chemistry/molden/molden-4.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Jun 23 11:21:23 2012 UTC (11 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
sci-chemistry/molden: Fix buffer overflow, #342907; Version Bump, #355741; Fix build failures, #358917, #423015; drop old

(Portage version: 2.2.0_alpha111/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molden/molden-4.8.ebuild,v 1.5 2011/06/21 16:03:06 jlec Exp $
4
5 EAPI="2"
6
7 inherit eutils fortran-2 toolchain-funcs flag-o-matic
8
9 MY_P="${PN}${PV}"
10
11 DESCRIPTION="Display molecular density from GAMESS-UK, GAMESS-US, GAUSSIAN and Mopac/Ampac."
12 HOMEPAGE="http://www.cmbi.kun.nl/~schaft/molden/molden.html"
13 SRC_URI="ftp://ftp.cmbi.kun.nl/pub/molgraph/${PN}/${MY_P}.tar.gz"
14
15 LICENSE="as-is"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~ia64 ~x86"
18 IUSE="opengl"
19
20 RDEPEND="
21 virtual/fortran
22 opengl? ( media-libs/freeglut
23 virtual/opengl )
24 x11-libs/libXmu"
25 DEPEND="${RDEPEND}
26 app-editors/vim"
27 # vim provides ex, which the build system uses (surf/Makefile, at least)
28
29 S="${WORKDIR}/${MY_P}"
30
31 src_prepare() {
32 epatch \
33 "${FILESDIR}"/${P}-ambfor.patch \
34 "${FILESDIR}"/${P}-overflow.patch \
35 "${FILESDIR}"/${P}-ldflags.patch
36 }
37
38 src_compile() {
39 # Use -mieee on alpha, according to the Makefile
40 use alpha && append-flags -mieee
41
42 # Honor CC, CFLAGS, FC, and FFLAGS from environment;
43 # unfortunately a bash bug prevents us from doing typeset and
44 # assignment on the same line.
45 typeset -a args
46 args=( CC="$(tc-getCC) ${CFLAGS}" \
47 FC="$(tc-getFC)" LDR="$(tc-getFC)" FFLAGS="${FFLAGS}" )
48
49 einfo "Building Molden..."
50 emake -j1 "${args[@]}" || die "molden emake failed"
51 if use opengl ; then
52 einfo "Building Molden OpenGL helper..."
53 emake -j1 "${args[@]}" moldenogl || die "moldenogl emake failed"
54 fi
55 }
56
57 src_install() {
58 dobin molden || die "failed to install molden executable."
59 if use opengl ; then
60 dobin moldenogl || die "failed to install moldenogl."
61 fi
62
63 dodoc HISTORY README REGISTER || die "failed to install docs."
64 cd doc
65 uncompress * && dodoc * || die "failed to install docs."
66 }

  ViewVC Help
Powered by ViewVC 1.1.13