Ticket #50953: change-gambit-c-compiler.diff

File change-gambit-c-compiler.diff, 2.4 KB (added by somebody-237654, 8 years ago)

Second version of .diff file

  • Portfile

    diff -u /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/gambit-c/Portfile ./Portfile
    old new  
    2525                        implemented, including: infinite precision integers \
    2626                        (bignums), rationals, inexact reals (floating point \
    2727                        numbers), and complex numbers.
     28notes                   "It is highly recommended to use the gcc5 compiler\
     29                        with gambit-c.  This recommendation applies to both\
     30                        building the gambit-c package, and to compiling\
     31                        Scheme code with it.  For details see\
     32                        https://trac.macports.org/ticket/50953"
    2833
    2934homepage                http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page
    3035
    3136platforms               darwin
    32 depends_build           port:autoconf
     37depends_build           port:autoconf port:gcc5
    3338
    3439master_sites            http://www.iro.umontreal.ca/~gambit/download/gambit/v${branch}/source/
    3540distname                gambc-v[strsed ${version} {g/\./_/}]-devel
     
    3843checksums           rmd160  aae275226d9cee234ed082de7f73bc52270576d5 \
    3944                    sha256  1c67c361c99d3d428a5c3fea4caa7791ada4963dcaf1f1ddb9becc1a89991625
    4045
    41 # https://trac.macports.org/ticket/46013
    42 compiler.blacklist {clang < 600} *llvm-gcc-4.2
     46# https://trac.macports.org/ticket/50953
     47compiler.whitelist macports-gcc-5
    4348
    4449configure.args          --infodir=${prefix}/share/info \
    4550                        --libdir=${prefix}/lib/gambit-c \
     51                        --enable-single-host \
    4652                        --docdir=${prefix}/share/doc
    4753
    48 if {[string match *gcc* ${configure.compiler}]} {
    49     configure.args-append --enable-single-host
    50 }
    51 
    5254use_parallel_build      no
    5355# gsc conficts with a binary installed by Ghostscript. Recommended
    5456# option (based on mailing list posts from Arch Linux and FreeBSD
     
    9092    configure.args-append --enable-profile
    9193}
    9294
     95variant cpp description "Compile with support for linking with C++ code" {
     96    configure.args-append --enable-cplusplus
     97}
     98
    9399livecheck.type      regex
    94100livecheck.regex     (\\d+\\.\\d+\\.\\d+)
    95101livecheck.url       ${homepage}