Ticket #46401: gnudatalanguage.python.patch

File gnudatalanguage.python.patch, 2.8 KB (added by larryv (Lawrence Velázquez), 10 years ago)
  • dports/math/gnudatalanguage/Portfile

    diff --git a/dports/math/gnudatalanguage/Portfile b/dports/math/gnudatalanguage/Portfile
    index 499be51..cdb6ffe 100644
    a b PortGroup mpi 1.0 
    88
    99name                        gnudatalanguage
    1010version                     0.9.5
    11 revision                    1
     11revision                    2
    1212epoch                       1
    1313
    1414compilers.choose            cc cxx
    post-destroot { 
    121121    xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog HACKING NEWS MAP_INSTALL TODO \
    122122        ${destroot}${prefix}/share/doc/${name}
    123123    file copy ${worksrcpath}/testsuite ${destroot}${prefix}/share/${name}/
    124     if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     124    if {[variant_isset python27]} {
    125125        xinstall -m 644 ${worksrcpath}/PYTHON.txt ${destroot}${prefix}/share/doc/${name}
    126126        file copy ${worksrcpath}/src/py ${destroot}${prefix}/share/${name}/
    127127    }
    variant wxWidgets description {deprecated compatibility variant} { 
    154154#    #configure.env-append    LDFLAGS=\"-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\"
    155155}
    156156
    157 if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     157if {[variant_isset python27]} {
    158158    configure.args-delete   -DPYTHON=OFF
    159159    configure.args-append   -DPYTHON=ON
    160160}
    161161
    162 variant python requires python26 description {Legacy compatibility variant} {}
     162# TODO: Remove after 2016-01-04.
     163variant python25 requires python27 description {Legacy variant} {}
     164variant python26 requires python27 description {Legacy variant} {}
    163165
    164 variant python25 conflicts python26 python27 description {build with support for calling Python (2.5) from GDL (using numpy)} {
    165     depends_lib-append      port:py25-numpy
    166     configure.args-append   -DPYTHONDIR=${frameworks_dir}/Python.framework/Versions/2.5 \
    167                             -DPYTHONVERSION=2.5
    168 }
    169 
    170 variant python26 conflicts python25 python27 description {build with support for calling Python (2.6) from GDL (using numpy)} {
    171     depends_lib-append      port:py26-numpy
    172     configure.args-append   -DPYTHONDIR=${frameworks_dir}/Python.framework/Versions/2.6 \
    173                             -DPYTHONVERSION=2.6
    174 }
    175 
    176 variant python27 conflicts python25 python26 description {build with support for calling Python (2.7) from GDL (using numpy)} {
     166variant python27 description {build with support for calling Python (2.7) from GDL (using numpy)} {
    177167    depends_lib-append      port:py27-numpy
    178168    configure.args-append   -DPYTHONDIR=${frameworks_dir}/Python.framework/Versions/2.7 \
    179169                            -DPYTHONVERSION=2.7