Ticket #12060: gcc42-info.diff

File gcc42-info.diff, 2.0 KB (added by jochen@…, 17 years ago)

Patch for Portfile to install info pages and add them to dir file

  • dports/lang/gcc42/Portfile

     
    1212                                C++, Objective-C, Objective-C++, Java and Fortran95.
    1313
    1414homepage                http://gcc.gnu.org/
    15 master_sites    ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
     15master_sites            ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/releases/gcc-${version}/ \
    1616                                ftp://ftp.gwdg.de/pub/linux/gcc/releases/gcc-${version}/ \
    1717                                ftp://gcc.ftp.nluug.nl/mirror/languages/gcc/releases/gcc-${version}/ \
    1818                                ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
     
    5858                                --with-gmp=${prefix} \
    5959                                --with-mpfr=${prefix}
    6060
    61 build.target    bootstrap
     61build.target            bootstrap
    6262build.args              -j 2
    6363
    64 post-destroot {
    65         file delete -force ${destroot}${prefix}/share/man/man7 \
    66                 ${destroot}${prefix}/share/info
    67 }
    68 
    6964#platform darwin 7 {
    7065#       configure.env   CFLAGS=-force_cpusubtype_ALL \
    7166#                                       BOOT_CFLAGS="-g -O2 -force_cpusubtype_ALL"
     
    7974post-destroot {
    8075        system "cd ${destroot}${prefix}/include/${name} && \
    8176                cp ../../lib/${name}/gcc/*/4.2.0/include/ffitarget.h ."
     77        system "install-info ${prefix}/share/info/cpp.info ${prefix}/share/info/dir"
     78        system "install-info ${prefix}/share/info/cppinternals.info ${prefix}/share/info/dir"
     79        system "install-info ${prefix}/share/info/gcc.info ${prefix}/share/info/dir"
     80        system "install-info ${prefix}/share/info/gccinstall.info ${prefix}/share/info/dir"
     81        system "install-info ${prefix}/share/info/gccint.info ${prefix}/share/info/dir"
     82        system "install-info ${prefix}/share/info/gcj.info ${prefix}/share/info/dir"
     83        system "install-info ${prefix}/share/info/gfortran.info ${prefix}/share/info/dir"
     84        system "install-info ${prefix}/share/info/libgomp.info ${prefix}/share/info/dir"
    8285}
    8386
    8487# odcctools currently do not compile for x64 - move to variant for the time being