Ticket #35719: Portfile_minpack.2

File Portfile_minpack.2, 3.3 KB (added by jjstickel (Jonathan Stickel), 12 years ago)

minor revision

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id:
3
4PortSystem          1.0
5
6name                minpack
7version             19961126.16
8categories          math devel
9license             bsd
10platforms           darwin
11maintainers         gmail.com:jjstickel openmaintainer
12
13description         Minpack includes software for solving nonlinear equations\
14    and nonlinear least squares problems.
15
16long_description    Minpack includes software for solving nonlinear\
17    equations and nonlinear least squares problems.  Five algorithmic\
18    paths each include a core subroutine and an easy-to-use driver.  The\
19    algorithms proceed either from an analytic specification of the\
20    Jacobian matrix or directly from the problem functions.  The paths\
21    include facilities for systems of equations with a banded Jacobian\
22    matrix, for least squares problems with a large amount of data, and\
23    for checking the consistency of the Jacobian matrix with the\
24    functions.
25
26homepage            http://www.netlib.org/minpack/
27master_sites        http://ftp.debian.org/debian/pool/main/m/minpack/
28
29distfiles           ${name}_19961126.orig.tar.gz\
30    ${name}_19961126-16.diff.gz
31
32checksums           minpack_19961126.orig.tar.gz \
33                    rmd160  a22ca3230cd3a4cf9f71774a146d456ac48aff70 \
34                    sha256  afd0e514d256f053aca8b48071412a39c36ff74b76ec0d48ab3e9d9be9c48a11 \
35                    minpack_19961126-16.diff.gz \
36                    rmd160  df70756913760ada08b7acbefec4f094b9c5db84 \
37                    sha256  5647d2a0f3d494b56c6fb249dd159d583c864a6a4bef9ab90d1717534fdd880a
38
39extract.only        ${name}_19961126.orig.tar.gz
40
41worksrcdir          ${name}-19961126.orig
42
43post-extract {
44    system "gunzip -c ${distpath}/${name}_19961126-16.diff.gz | patch -p1 -d ${worksrcpath}"
45    system "chmod +x ${worksrcpath}/configure"
46}
47
48patch {
49    reinplace "s|tagnames=$|#tagnames=$|" ${worksrcpath}/configure
50}
51
52configure.args     --prefix=${prefix}
53
54variant gcc43 conflicts gcc44 gcc45 gcc46 gcc47 description {Use the gcc43 compiler} {
55    depends_lib-append  port:gcc43
56    configure.compiler  macports-gcc-4.3
57}
58variant gcc44 conflicts gcc43 gcc45 gcc46 gcc47 description {Use the gcc44 compiler} {
59    depends_lib-append  port:gcc44
60    configure.compiler  macports-gcc-4.4
61}
62variant gcc45 conflicts gcc43 gcc44 gcc46 gcc47 description {Use the gcc45 compiler} {
63    depends_lib-append  port:gcc45
64    configure.compiler  macports-gcc-4.5
65}
66variant gcc46 conflicts gcc43 gcc44 gcc45 gcc47 description {Use the gcc46 compiler} {
67    depends_lib-append  port:gcc46
68    configure.compiler  macports-gcc-4.6
69}
70variant gcc47 conflicts gcc43 gcc44 gcc45 gcc46 description {Use the gcc47 compiler} {
71    depends_lib-append  port:gcc47
72    configure.compiler  macports-gcc-4.7
73}
74if { ![variant_isset gcc42] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc46] && ![variant_isset gcc47] } {
75        default_variants      +gcc45
76}
77
78post-destroot {
79    set docdir ${destroot}${prefix}/share/doc/${name}
80    xinstall -m 755 -d ${docdir}
81    xinstall -m 644 ${worksrcpath}/ex/file06 ${docdir}/minpack-documentation.txt
82    xinstall -m 644 ${worksrcpath}/readme ${docdir}/readme
83    xinstall -m 644 ${worksrcpath}/debian/copyright ${docdir}/copyright
84}