Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/molden: molden-4.8.ebuild ChangeLog molden-4.4.ebuild molden-4.6.ebuild
Date: Fri, 26 Feb 2010 05:33:41
Message-Id: E1NkspT-0003pG-5C@stork.gentoo.org
1 markusle 10/02/26 05:33:35
2
3 Modified: ChangeLog
4 Added: molden-4.8.ebuild
5 Removed: molden-4.4.ebuild molden-4.6.ebuild
6 Log:
7 Version bump (fixes #285220, #270941). Removed old ebuild.
8 (Portage version: 2.1.7.17/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 sci-chemistry/molden/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molden/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molden/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molden/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/molden/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 18 Jan 2010 19:17:56 -0000 1.31
24 +++ ChangeLog 26 Feb 2010 05:33:34 -0000 1.32
25 @@ -1,6 +1,16 @@
26 # ChangeLog for sci-chemistry/molden
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molden/ChangeLog,v 1.31 2010/01/18 19:17:56 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molden/ChangeLog,v 1.32 2010/02/26 05:33:34 markusle Exp $
30 +
31 +*molden-4.8 (26 Feb 2010)
32 +
33 + 26 Feb 2010; Markus Dittrich <markusle@g.o>
34 + -files/molden-3.9-fixMakefile.patch, -molden-4.4.ebuild,
35 + -files/molden-4.4-gfortran-gentoo.patch, -molden-4.6.ebuild,
36 + -files/molden-4.6-gfortran.patch, +molden-4.8.ebuild,
37 + +files/molden-4.8-ambfor.patch, +files/molden-4.8-ldflags.patch,
38 + +files/molden-4.8-overflow.patch:
39 + Version bump (fixes #285220, #270941). Removed old ebuild.
40
41 18 Jan 2010; Raúl Porcel <armin76@g.o> molden-4.7.ebuild:
42 alpha/ia64/x86 stable
43
44
45
46 1.1 sci-chemistry/molden/molden-4.8.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molden/molden-4.8.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molden/molden-4.8.ebuild?rev=1.1&content-type=text/plain
50
51 Index: molden-4.8.ebuild
52 ===================================================================
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molden/molden-4.8.ebuild,v 1.1 2010/02/26 05:33:34 markusle Exp $
56
57 EAPI="2"
58
59 inherit eutils toolchain-funcs flag-o-matic fortran
60
61 MY_P="${PN}${PV}"
62 DESCRIPTION="Display molecular density from GAMESS-UK, GAMESS-US, GAUSSIAN and Mopac/Ampac."
63 HOMEPAGE="http://www.cmbi.kun.nl/~schaft/molden/molden.html"
64 SRC_URI="ftp://ftp.cmbi.kun.nl/pub/molgraph/${PN}/${MY_P}.tar.gz"
65
66 LICENSE="as-is"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~ia64 ~x86"
69 IUSE="opengl"
70
71 RDEPEND="opengl? ( virtual/glut
72 virtual/opengl )
73 x11-libs/libXmu"
74 DEPEND="${RDEPEND}
75 app-editors/vim"
76 # vim provides ex, which the build system uses (surf/Makefile, at least)
77
78 S="${WORKDIR}/${MY_P}"
79
80 FORTRAN="g77 gfortran"
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${P}-ambfor.patch
84 epatch "${FILESDIR}"/${P}-overflow.patch
85 epatch "${FILESDIR}"/${P}-ldflags.patch
86 }
87
88 src_compile() {
89 # Use -mieee on alpha, according to the Makefile
90 use alpha && append-flags -mieee
91
92 # Honor CC, CFLAGS, FC, and FFLAGS from environment;
93 # unfortunately a bash bug prevents us from doing typeset and
94 # assignment on the same line.
95 typeset -a args
96 args=( CC="$(tc-getCC) ${CFLAGS}" \
97 FC="${FORTRANC}" LDR="${FORTRANC}" FFLAGS="${FFLAGS}" )
98
99 einfo "Building Molden..."
100 emake -j1 "${args[@]}" || die "molden emake failed"
101 if use opengl ; then
102 einfo "Building Molden OpenGL helper..."
103 emake -j1 "${args[@]}" moldenogl || die "moldenogl emake failed"
104 fi
105 }
106
107 src_install() {
108 dobin molden || die "failed to install molden executable."
109 if use opengl ; then
110 dobin moldenogl || die "failed to install moldenogl."
111 fi
112
113 dodoc HISTORY README REGISTER || die "failed to install docs."
114 cd doc
115 uncompress * && dodoc * || die "failed to install docs."
116 }