/[gentoo-x86]/sci-biology/mammoth/mammoth-1.0.ebuild
Gentoo

Contents of /sci-biology/mammoth/mammoth-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Oct 19 10:46:56 2012 UTC (2 years, 2 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -7 lines
sci-biology/mammoth: Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the updated fortran-2.eclass

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/mammoth/mammoth-1.0.ebuild,v 1.5 2011/06/21 16:07:37 jlec Exp $
4
5 inherit autotools eutils fortran-2 flag-o-matic toolchain-funcs
6
7 MY_P="${P}-src"
8
9 DESCRIPTION="MAtching Molecular Models Obtained from THeory"
10 HOMEPAGE="http://ub.cbm.uam.es/software.php"
11 SRC_URI="${MY_P}.tgz"
12
13 LICENSE="mammoth"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RESTRICT="fetch"
19
20 S=${WORKDIR}/${MY_P}
21
22 pkg_nofetch() {
23 einfo "Download the source code for MAMMOTH from"
24 einfo "${HOMEPAGE}"
25 einfo "and place it in ${DISTDIR}"
26 }
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31
32 # Broken with gfortran without this patch
33 epatch "${FILESDIR}"/${PV}-consistent-system-intrinsic.patch
34
35 case $(tc-getFC) in
36 g77) append-fflags -ffixed-line-length-none ;;
37 gfortran) append-fflags -ffixed-line-length-none ;;
38 esac
39
40 # It comes with a custom-modified configure for some reason,
41 # which forces you to pass in the Fortran compiler as a parameter.
42 # Let's do the standard stuff instead.
43 eautoreconf
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die "emake install failed"
48 dodoc README AUTHORS || die
49 }

  ViewVC Help
Powered by ViewVC 1.1.20