Ticket #28057: Portfile

File Portfile, 2.2 KB (added by lsinger@…, 13 years ago)

new Portfile using pygsl 0.9.5

Line 
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
4PortSystem              1.0
5PortGroup               python26 1.0
6
7name                    py26-gsl
8version                 0.9.5
9categories              python science
10platforms               darwin
11maintainers             nomaintainer
12description             Python interface to the GNU Scientific Library
13long_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
17homepage                http://pygsl.sourceforge.net/
18master_sites            sourceforge:pygsl
19distname                pygsl-${version}
20checksums               md5     fca5cbda1380218a28f2ebdc15a224fb \
21                        sha1    718064cd6c9d50cae5048c920ab7ab2324d27c88 \
22                        rmd160  0b9d2654bc1cfb84649603b2680932c4ce47a849
23
24build.env               CFLAGS="-I${prefix}/include/gsl -I${prefix}/include/python2.6 -I${prefix}/include" \
25                        LDFLAGS=-L${prefix}/lib
26
27depends_build           port:swig-python
28depends_lib             port:gsl
29
30pre-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
36variant numarray conflicts numpy Numeric description "Use numarray as array-object" {
37    depends_lib-append      port:py26-numarray
38    build.args              --array-object=numarray
39}
40variant Numeric conflicts numarray numpy description "Use Numeric as array-object" {
41    depends_lib-append      port:py26-numeric
42    build.args              --array-object=Numeric
43}
44variant numpy conflicts numarray Numeric description "Use numpy as array-object" {
45    depends_lib-append      port:py26-numpy
46    build.args              --array-object=numpy
47}
48if { ![variant_isset numarray] && ![variant_isset Numeric] && ![variant_isset numpy] } {
49    default_variants        +numpy
50}
51
52
53post-destroot {
54    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
55}