Ticket #12060: info-Portfile.diff

File info-Portfile.diff, 2.0 KB (added by jochen@…, 17 years ago)
  • dports/lang/gcc42/Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    34PortSystem 1.0
     
    8081
    8182destroot.target         install install-info-host
    8283
    83 post-destroot {
    84         file delete -force ${destroot}${prefix}/share/man/man7 \
    85                 ${destroot}${prefix}/share/info
    86 }
    8784
    8885#platform darwin 7 {
    8986#       configure.cflags-append -force_cpusubtype_ALL
     
    108105                file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
    109106        }
    110107        xinstall -m 755 -d ${destroot}${prefix}/etc/select/gcc
    111         xinstall -m 444 ${filespath}/mp-gcc42 ${destroot}${prefix}/etc/select/gcc/
     108    file delete -force ${destroot}${prefix}/share/man/man7
     109    if { ! [variant_isset info] } {
     110        file delete -force ${destroot}${prefix}/share/info
     111    } else {
     112        system "install-info ${destroot}${prefix}/share/info/cpp.info ${prefix}/share/info/dir"
     113        system "install-info ${destroot}${prefix}/share/info/cppinternals.info ${prefix}/share/info/dir"
     114        system "install-info ${destroot}${prefix}/share/info/gcc.info ${prefix}/share/info/dir"
     115        system "install-info ${destroot}${prefix}/share/info/gccinstall.info ${prefix}/share/info/dir"
     116        system "install-info ${destroot}${prefix}/share/info/gccint.info ${prefix}/share/info/dir"
     117        system "install-info ${destroot}${prefix}/share/info/gcj.info ${prefix}/share/info/dir"
     118        system "install-info ${destroot}${prefix}/share/info/gfortran.info ${prefix}/share/info/dir"
     119        system "install-info ${destroot}${prefix}/share/info/libgomp.info ${prefix}/share/info/dir"
     120    }
    112121}
    113122
     123variant info description "Install info files" {
     124        # This only changes post-destroot, see there for actions
     125}
     126
    114127# odcctools currently do not compile for x64 - move to variant for the time being
    115128variant odcctools {
    116129        depends_lib-append      bin:odas:odcctools