Ticket #50069: py-gsl_Portfile.diff
File py-gsl_Portfile.diff, 1.9 KB (added by jjstickel (Jonathan Stickel), 8 years ago) |
---|
-
Portfile
old new 5 5 PortGroup python 1.0 6 6 7 7 name py-gsl 8 version 0.9.5 9 revision 1 8 version 2.2.0 10 9 categories-append science 11 10 license GPL-2+ 12 11 platforms darwin … … 19 18 homepage http://pygsl.sourceforge.net/ 20 19 master_sites sourceforge:pygsl 21 20 distname pygsl-${version} 22 checksums md5 fca5cbda1380218a28f2ebdc15a224fb \23 sha1 718064cd6c9d50cae5048c920ab7ab2324d27c88 \24 rmd160 0b9d2654bc1cfb84649603b2680932c4ce47a84925 21 26 python.versions 27 22 checksums rmd160 60858ec54a2713a6f9eb35d8f03dc865dd6f9f83 \ 23 sha256 200e7986c368cb815685e502993e5211702219e1a0bb79030d671c35df25a59e 24 25 python.versions 27 34 35 27 26 28 27 if {${name} ne ${subport}} { 29 build.env-append CPPFLAGS="-I${prefix}/include/gsl -I${python.include} ${configure.cppflags}"30 28 31 29 depends_build port:swig-python 32 depends_lib-append port:gsl 30 depends_lib-append port:gsl\ 31 port:py${python.version}-numpy 33 32 34 variant Numeric conflicts numpy description "Use Numeric as array-object" { 35 depends_lib-append port:py${python.version}-numeric 36 build.args --array-object=Numeric 37 } 38 variant numpy conflicts Numeric description "Use numpy as array-object" { 39 depends_lib-append port:py${python.version}-numpy 40 build.args --array-object=numpy 41 } 42 if {![variant_isset Numeric]} { 43 default_variants +numpy 44 } 33 # configure step is new, JJS 4/28/16 34 use_configure yes 35 configure.cmd ${python.bin} setup.py config 36 # blank pre_args 37 configure.pre_args 45 38 46 39 post-destroot { 47 40 xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${subport}