/[gentoo-x86]/app-sci/moldy/moldy-2.16e.ebuild
Gentoo

Contents of /app-sci/moldy/moldy-2.16e.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Fri Dec 24 16:47:08 2004 UTC (9 years, 7 months ago) by ribosome
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Moving to sci-chemistry/moldy

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/moldy/moldy-2.16e.ebuild,v 1.15 2004/12/07 18:12:06 gongloo Exp $
4
5 IUSE="X"
6
7 S=${WORKDIR}
8 DESCRIPTION="Program for performing molecular dynamics simulations."
9 SRC_URI="ftp://ftp.earth.ox.ac.uk/pub/${P}.tar.gz"
10 #For lack of a better homepage
11 HOMEPAGE="http://sal.kachinatech.com/Z/2/MOLDY.html"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="x86 ~ppc-macos"
16
17 DEPEND="virtual/libc
18 virtual/tetex
19 X? ( virtual/x11 )"
20
21 addwrite /var/cache/fonts
22
23 src_compile() {
24 local myconf
25
26 myconf=`use_with X`
27
28 #Individuals may want to edit the OPT* variables below.
29 #From the READ.ME:
30 #You may need to "hand-tune" compiler or optimization options,
31 #which may be specified by setting the OPT and OPT2 environment
32 #variables. OPT2 is used to compile only the most performance-critical
33 #modules and usually will select a very high level of optimization.
34 #It should be safe to select an optimization which means "treat all
35 #function arguments as restricted pointers which are not aliased to
36 #any other object". OPT is used for less preformance-critical modules
37 #and may be set to a lower level of optimization than OPT2.
38
39 OPT=${CFLAGS} OPT2=${CFLAGS} \
40 ./configure --prefix=/usr \
41 --host=${CHOST} \
42 ${myconf} || die
43
44 emake || die
45 make moldy.pdf || die
46 }
47
48 src_install() {
49 dodir /usr/bin
50 make prefix=${D}/usr install || die
51 rm Makefile.in configure.in config.h.in
52 insinto /usr/share/${PN}/examples/
53 doins *.in *.out control.*
54 dodoc BENCHMARK COPYING READ.ME RELNOTES
55 insinto /usr/share/doc/${P}/pdf
56 newins moldy.pdf moldy-manual.pdf
57 }

  ViewVC Help
Powered by ViewVC 1.1.20