Ticket #14315: patch-gcc_select-base.diff

File patch-gcc_select-base.diff, 1.7 KB (added by raimue (Rainer Müller), 16 years ago)
  • Users/Raim/src/macports/trunk/dports/sysutils/gcc_select/Portfile

     
    44
    55name                    gcc_select
    66version                 0.1
     7revision        1
    78categories              sysutils
    89platforms               darwin
    910maintainers             mww
     
    1920
    2021configure.args          --mandir=${prefix}/share/man --name=gcc
    2122
     23post-destroot {
     24    xinstall -m 644 -W ${filespath} base \
     25                        ${destroot}${prefix}/etc/select/gcc
     26}
     27
    2228# install & select gcc33
    2329platform darwin 7 {
    2430        post-destroot {
    25                 xinstall -m 644 -W ${filespath} base gcc33 \
     31                xinstall -m 644 -W ${filespath} gcc33 \
    2632                        ${destroot}${prefix}/etc/select/gcc
    2733                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc33"
    2834        }
     
    3137# install gcc33, gcc40 & select gcc40
    3238platform darwin 8 ppc {
    3339        post-destroot {
    34                 xinstall -m 644 -W ${filespath} base gcc40 gcc33 \
     40                xinstall -m 644 -W ${filespath} gcc40 gcc33 \
    3541                        ${destroot}${prefix}/etc/select/gcc
    3642                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
    3743        }
     
    4046# install & select gcc40
    4147platform darwin 8 i386 {
    4248        post-destroot {
    43                 xinstall -m 644 -W ${filespath} base gcc40 \
     49                xinstall -m 644 -W ${filespath} gcc40 \
     50                        ${destroot}${prefix}/etc/select/gcc
     51                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
     52        }
     53}
     54
     55# install & select gcc40
     56platform darwin 9 {
     57        post-destroot {
     58                xinstall -m 644 -W ${filespath} gcc40 \
    4459                        ${destroot}${prefix}/etc/select/gcc
    4560                system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
    4661        }