/[gentoo-x86]/app-sci/mpqc/mpqc-2.2.2.ebuild
Gentoo

Contents of /app-sci/mpqc/mpqc-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Dec 24 16:48:57 2004 UTC (9 years, 11 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Moving to sci-chemistry/mpqc

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/mpqc/mpqc-2.2.2.ebuild,v 1.7 2004/10/02 17:04:38 spyderous Exp $
4
5 DESCRIPTION="The Massively Parallel Quantum Chemistry Program"
6 HOMEPAGE="http://www.mpqc.org/"
7 SRC_URI="mirror://sourceforge/mpqc/${P}.tar.gz
8 doc? ( mirror://sourceforge/mpqc/${PN}-man-${PV}.tar.gz )"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 # Should work on x86, amd64 and ppc, at least
13 KEYWORDS="x86 ~ppc amd64"
14 IUSE="doc X"
15
16 DEPEND="sys-devel/flex
17 app-sci/blas
18 app-sci/lapack
19 dev-lang/perl
20 X? ( virtual/x11 )"
21
22 src_compile() {
23 CFLAGS_SAVE=${CFLAGS}; CXXFLAGS_SAVE=${CXXFLAGS}
24 myconf="${myconf} --prefix=/usr"
25 use X && myconf="${myconf} --x-includes=/usr/X11R6/include \
26 --x-libraries=/usr/X11R6/lib"
27 ./configure ${myconf} || die "configure failed"
28 sed -e "s:^CFLAGS =.*$:CFLAGS=${CFLAGS_SAVE}:" \
29 -e "s:^FFLAGS =.*$:FFLAGS=${CFLAGS_SAVE}:" \
30 -e "s:^CXXFLAGS =.*$:CXXFLAGS=${CXXFLAGS_SAVE}:" \
31 lib/LocalMakefile > lib/LocalMakefile.foo
32 mv lib/LocalMakefile.foo lib/LocalMakefile
33 emake || die "emake failed"
34 }
35
36 src_install() {
37 sed -e "s:^prefix=.*$:prefix=${D}/usr:" lib/LocalMakefile \
38 > lib/LocalMakefile.foo
39 mv lib/LocalMakefile.foo lib/LocalMakefile
40 use doc && doman ${WORKDIR}/${PN}-man-${PV}/man3/*
41 make install install_devel install_inc || die "install failed"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20