1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 74165 2010-12-06 15:33:45Z jochen@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-gsl |
---|
8 | version 0.9.5 |
---|
9 | categories python science |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description Python interface to the GNU Scientific Library |
---|
13 | long_description Python interface to the GSL, the GNU Scientfic \ |
---|
14 | Library. Variants for the use of different \ |
---|
15 | array-objects supported by pygsl are provided. |
---|
16 | |
---|
17 | homepage http://pygsl.sourceforge.net/ |
---|
18 | master_sites sourceforge:pygsl |
---|
19 | distname pygsl-${version} |
---|
20 | checksums md5 fca5cbda1380218a28f2ebdc15a224fb \ |
---|
21 | sha1 718064cd6c9d50cae5048c920ab7ab2324d27c88 \ |
---|
22 | rmd160 0b9d2654bc1cfb84649603b2680932c4ce47a849 |
---|
23 | |
---|
24 | build.env CFLAGS="-I${prefix}/include/gsl -I${prefix}/include/python2.6 -I${prefix}/include" \ |
---|
25 | LDFLAGS=-L${prefix}/lib |
---|
26 | |
---|
27 | depends_build port:swig-python |
---|
28 | depends_lib port:gsl |
---|
29 | |
---|
30 | pre-build { |
---|
31 | # Resolve GSL version issue (1.9 vs 1.10/1.11) by re-creating this file using swig |
---|
32 | eval file delete [glob ${worksrcpath}/swig_src/gslwrap_wrap.c] |
---|
33 | } |
---|
34 | |
---|
35 | |
---|
36 | variant numarray conflicts numpy Numeric description "Use numarray as array-object" { |
---|
37 | depends_lib-append port:py26-numarray |
---|
38 | build.args --array-object=numarray |
---|
39 | } |
---|
40 | variant Numeric conflicts numarray numpy description "Use Numeric as array-object" { |
---|
41 | depends_lib-append port:py26-numeric |
---|
42 | build.args --array-object=Numeric |
---|
43 | } |
---|
44 | variant numpy conflicts numarray Numeric description "Use numpy as array-object" { |
---|
45 | depends_lib-append port:py26-numpy |
---|
46 | build.args --array-object=numpy |
---|
47 | } |
---|
48 | if { ![variant_isset numarray] && ![variant_isset Numeric] && ![variant_isset numpy] } { |
---|
49 | default_variants +numpy |
---|
50 | } |
---|
51 | |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} |
---|
55 | } |
---|