source: trunk/dports/math/minpack/Portfile

Last change on this file was 109677, checked in by jeremyhu@…, 4 years ago

minpack: Remove implied dependencies

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
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: Portfile 109677 2013-08-19 16:33:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                minpack
7version             19961126
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
29set patch_version       16
30
31distfiles           ${name}_${version}.orig.tar.gz\
32    ${name}_${version}-${patch_version}.diff.gz
33
34checksums           minpack_${version}.orig.tar.gz \
35                    rmd160  a22ca3230cd3a4cf9f71774a146d456ac48aff70 \
36                    sha256  afd0e514d256f053aca8b48071412a39c36ff74b76ec0d48ab3e9d9be9c48a11 \
37                    minpack_${version}-${patch_version}.diff.gz \
38                    rmd160  df70756913760ada08b7acbefec4f094b9c5db84 \
39                    sha256  5647d2a0f3d494b56c6fb249dd159d583c864a6a4bef9ab90d1717534fdd880a
40
41extract.only        ${name}_${version}.orig.tar.gz
42
43worksrcdir          ${name}-${version}.orig
44
45patchfiles           minpack_${version}-${patch_version}.diff.gz
46patch.pre_args       -p1
47
48post-patch {
49    system "chmod +x ${worksrcpath}/configure"
50}
51
52variant gcc47 conflicts gcc48 gcc49 description {Use the gcc47 compiler} {
53    configure.compiler  macports-gcc-4.7
54}
55variant gcc48 conflicts gcc47 gcc49 description {Use the gcc48 compiler} {
56    configure.compiler  macports-gcc-4.8
57}
58variant gcc49 conflicts gcc47 gcc48 description {Use the gcc49 compiler} {
59    configure.compiler  macports-gcc-4.9
60}
61if { ![variant_isset gcc48] && ![variant_isset gcc49] } {
62        default_variants      +gcc47
63}
64
65post-destroot {
66    set docdir ${destroot}${prefix}/share/doc/${name}
67    xinstall -m 755 -d ${docdir}
68    xinstall -m 644 ${worksrcpath}/ex/file06 ${docdir}/minpack-documentation.txt
69    xinstall -m 644 ${worksrcpath}/readme ${docdir}/readme
70    xinstall -m 644 ${worksrcpath}/debian/copyright ${docdir}/copyright
71}
Note: See TracBrowser for help on using the repository browser.