source: trunk/dports/math/gsl/Portfile @ 33297

Last change on this file since 33297 was 33297, checked in by ryandesign@…, 11 years ago

For all nomaintainer and openmaintainer ports, remove occurrences of

platform darwin 8 {
    configure.compiler gcc-4.0
}

MacPorts 1.6 already ensures that GCC 4.0 is used by default on Tiger. See #14046.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 33297 2008-01-23 09:32:47Z ryandesign@macports.org $
3
4PortSystem          1.0
5name                gsl
6version             1.10
7categories          math science
8maintainers         openmaintainer jochen
9description         A numerical library for C and C++ programmers
10long_description    The GNU Scientific Library (GSL) is a numerical library  \
11                    for C and C++ programmers.  It is free software under the \
12                    GNU General Public License.  \
13                    \
14                    The library provides a wide range of mathematical routines \
15                    such as random number generators, special functions and \
16                    least-squares fitting. There are over 1000 functions in total. 
17
18master_sites        gnu
19checksums           md5 d67be4f2e5560d6cf907e18a428becdc \
20                    sha1 401d0203d362948e30d0b3c58601a3bc52d0bfd4 \
21                    rmd160 0b6ac2b1aec6a93521941620a824ae78f79adebb
22
23platforms           darwin
24# Lower optimization level (-O1) is required to avoid code generation
25# bugs in Apple's gcc 3.3 and earlier.
26platform darwin 6 7 {
27    configure.cflags-append "-O1"
28}
29
30configure.args      --mandir=${prefix}/share/man --infodir=${prefix}/share/info
31depends_build       port:texinfo
32test.run            yes
33test.target         check
34
35post-install    {
36    system "install-info ${destroot}${prefix}/share/info/gsl-ref.info ${prefix}/share/info/dir"
37}
38
39variant doc description "Install PDF and HTML documentation" {
40    depends_build   port:ghostscript port:texinfo bin:latex:teTeX
41    post-destroot   {
42        cd ${worksrcpath}
43        system "make dvi"
44        cd ${worksrcpath}/doc
45        system "dvipdf gsl-ref.dvi gsl-ref.pdf"
46        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
47        xinstall -c -m 644 ${worksrcpath}/doc/gsl-ref.pdf ${destroot}${prefix}/share/doc/${name}
48        cd ${worksrcpath}/doc
49        system "latex fftalgorithms"
50        system "bibtex fftalgorithms"
51        system "latex fftalgorithms"
52        system "latex fftalgorithms"
53        system "dvipdf fftalgorithms.dvi fftalgorithms.pdf"
54        xinstall -c -m 644 ${worksrcpath}/doc/fftalgorithms.pdf ${destroot}${prefix}/share/doc/${name}
55        cd ${worksrcpath}
56        system "make html"
57        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/html
58        eval xinstall -c -m 644 [glob ${worksrcpath}/doc/gsl-ref.html/*] \
59            ${destroot}${prefix}/share/doc/${name}/html
60    }
61}
Note: See TracBrowser for help on using the repository browser.