Ticket #38732: Portfile.2.diff

File Portfile.2.diff, 7.0 KB (added by howarth@…, 11 years ago)

add requested epoch

  • Portfile

    old new  
    55PortGroup compiler_blacklist_versions 1.0
    66
    77name                gcc48
    8 subport             libstdcxx-devel {}
     8subport             libstdcxx {}
     9epoch               1
    910
    10 # Remove the revision in libstdcxx-devel when bumping
    11 version             4.8-20130404
    12 revision            1
     11version             4.8.0
    1312platforms           darwin
    1413categories          lang
    1514maintainers         mww openmaintainer
    1615# an exception in the license allows dependents to not be GPL
    1716license             {GPL-3+ Permissive}
    18 description         The GNU compiler collection, prerelease BETA
     17description         The GNU compiler collection
    1918long_description    The GNU compiler collection, including front ends for \
    20                     C, C++, Objective-C, Objective-C++, Fortran and Java. \
    21                     This is a prerelease BETA version!
     19                    C, C++, Objective-C, Objective-C++, Fortran and Java.
    2220
    2321homepage            http://gcc.gnu.org/
    24 master_sites        http://gcc.petsads.us/snapshots/${version} \
    25                     ftp://ftp.gwdg.de/pub/linux/gcc/snapshots/${version}/ \
    26                     ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/snapshots/${version}/ \
    27                     ftp://gcc.gnu.org/pub/gcc/snapshots/${version}/ \
    28                     http://mirrors-us.seosue.com/gcc/snapshots/${version}/ \
    29                     http://gcc.skazkaforyou.com/snapshots/${version}/
     22master_sites        ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/:gcc \
     23                    ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/:gcc \
     24                    ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/:gcc \
     25                    ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/:gcc \
     26                    gnu:gcc/gcc-${version}:gcc \
     27                    ftp://sourceware.org/pub/java/:ecj \
     28                    http://mirrors.kernel.org/sources.redhat.com/java/:ecj \
     29                    http://www.mirrorservice.org/sites/sources.redhat.com/pub/java/:ecj \
     30                    http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/java/:ecj
    3031
    3132distname            gcc-${version}
    3233
    33 checksums           rmd160  b5ac698129f3be6c4a6e6424b71ee51041ce9bb9 \
    34                     sha256  428088223bec4ab6b832196ac84da1ae25ac72bf26403b49851a20a19d4d915e
     34set ecj             ecj-4.5.jar
    3535
    36 supported_archs     i386 x86_64
     36checksums           gcc-${version}.tar.bz2 \
     37                    rmd160  0000f2af2aa4daa32108ba4725938833684f6937 \
     38                    sha256  b037fe5132b71ecad2ea7141ec92292b5d32427bf90fd90cde432b1d5abacc2c \
     39                    ${ecj} \
     40                    rmd160  d3f4da657f086b6423f74e93f001132f4855368a \
     41                    sha256  98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
    3742
    3843use_bzip2           yes
    3944
     45distfiles           [suffix ${distname}]:gcc ${ecj}:ecj
     46
     47extract.only        [suffix ${distname}]
     48
    4049depends_lib         port:gmp port:mpfr port:libiconv port:libmpc port:ppl port:cloog
    41 depends_run         port:gcc_select port:ld64 port:cctools port:libstdcxx-devel
     50depends_run         port:gcc_select port:ld64 port:cctools path:lib/libstdc\\\\+\\\\+.6.dylib:libstdcxx
    4251
    4352depends_skip_archcheck-append gcc_select ld64 cctools
    4453license_noconflict  gmp mpfr ppl libmpc
    4554
     55patchfiles          skip-libffi-install.patch
    4656patch.dir           ${workpath}/gcc-${version}
    4757
    4858set major           4.8
     
    5161
    5262post-extract {
    5363    file mkdir ${worksrcpath}
     64    copy ${distpath}/${ecj} ${workpath}/${distname}/ecj.jar
    5465}
    5566
    5667platform darwin {
     
    5869}
    5970
    6071configure.cmd       ../gcc-${version}/configure
    61 configure.args      --enable-languages=c,c++,objc,obj-c++,fortran,java \
     72configure.args      --enable-languages=c,c++,objc,obj-c++,lto,fortran,java \
    6273                    --libdir=${prefix}/lib/${name} \
    6374                    --includedir=${prefix}/include/${name} \
    6475                    --infodir=${prefix}/share/info \
    6576                    --mandir=${prefix}/share/man \
    6677                    --datarootdir=${prefix}/share/gcc-${major} \
     78                    --with-libiconv-prefix=${prefix} \
    6779                    --with-local-prefix=${prefix} \
    6880                    --with-system-zlib \
    6981                    --disable-nls \
     
    7890                    --enable-stage1-checking \
    7991                    --disable-multilib \
    8092                    --enable-lto \
    81                     --enable-libstdcxx-time \
    8293                    --with-as=${prefix}/bin/as \
    8394                    --with-ld=${prefix}/bin/ld \
    8495                    --with-ar=${prefix}/bin/ar \
     
    110121
    111122destroot.target     install install-info-host
    112123
    113 if {${subport} == "libstdcxx-devel"} {
    114     conflicts       libstdcxx
    115 
    116     patchfiles-append  force-static-gcc.patch
     124if {${subport} == "libstdcxx"} {
     125    conflicts       libstdcxx-devel
    117126
    118     depends_run-delete port:${subport}
     127    depends_run-delete path:lib/libstdc\\\\+\\\\+.6.dylib:libstdcxx
    119128
    120129    configure.args-delete --libdir=${prefix}/lib/${name}
    121130
    122131    configure.args-delete --enable-languages=c,c++,objc,obj-c++,lto,fortran,java
    123     configure.args-append --enable-languages=c++
     132    configure.args-append --enable-languages=c,c++
    124133
    125134    # http://trac.macports.org/ticket/36116
    126135    compiler.blacklist-append {clang < 425}
    127136
    128     configure.args-append --disable-bootstrap
    129     build.target        all
     137    build.target
    130138
    131139    destroot.target     install-target-libstdc++-v3
    132140
    133141    post-destroot {
    134142        eval file delete [glob ${destroot}${prefix}/lib/*{a,py}]
    135         eval file delete [glob ${destroot}${prefix}/lib/libgcc*]
    136143        file delete -force ${destroot}${prefix}/lib/gcc
    137144        file delete -force ${destroot}${prefix}/share/gcc-${major}
    138145        file delete -force ${destroot}${prefix}/include/${name}
     
    179186
    180187    # http://trac.macports.org/ticket/35770
    181188    eval delete [glob ${destroot}${prefix}/lib/${name}/libstdc++*]
     189    eval delete [glob ${destroot}${prefix}/lib/${name}/libgcc*dylib]
    182190
    183191    ln -s ${prefix}/lib/libstdc++.6.dylib ${destroot}${prefix}/lib/${name}/libstdc++.dylib
     192    ln -s ${prefix}/lib/libgcc_ext.10.4.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.4.dylib
     193    ln -s ${prefix}/lib/libgcc_ext.10.5.dylib ${destroot}${prefix}/lib/${name}/libgcc_ext.10.5.dylib
     194    ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s.1.dylib
     195    ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_ppc64.1.dylib
     196    ln -s ${prefix}/lib/libgcc_s.1.dylib ${destroot}${prefix}/lib/${name}/libgcc_s_x86_64.1.dylib
    184197
    185198    # This symlink is provided as a transition aide and will be removed
    186199    # with a future revision of this port.
     
    215228configure.universal_args
    216229
    217230livecheck.type      regex
    218 livecheck.url       ftp://gcc.gnu.org/pub/gcc/snapshots/
    219 livecheck.regex     LATEST-4.8 -> (4.8-\[0-9\]+)
     231livecheck.url       http://gcc.gnu.org/gcc-4.8/
     232livecheck.regex     GCC (4\\.8\\.\[0-9\])