Ticket #29050: Portfile.2.diff

File Portfile.2.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 14 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 77595 2011-04-06 00:15:26Z blb@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  muniversal 1.0
     5
    46name             groff
    57version          1.21
     8revision         1
    69categories       sysutils textproc
    710maintainers      nomaintainer
    811description      GNU Troff (Groff)
     
    1922                 --mandir=${prefix}/share/man \
    2023                 --without-x
    2124
     25# README file lists the following as dependencies:
     26depends_lib-append port:ghostscript port:psutils port:netpbm port:texinfo port:bison
     27
    2228post-destroot {
    2329    delete ${destroot}${prefix}/lib/charset.alias
    2430}
     31
     32if {[variant_isset universal]} {
     33    # PDF file generated for different architectures differ only in ID and timestamp.
     34    # Copy file from last architecture to the rest, so the merge will be successful.
     35    # See #29050
     36    pre-destroot {
     37        set arch1 [lindex ${universal_archs_to_use} end]
     38        foreach arch [lrange ${universal_archs_to_use} 0 end-1] {
     39            system "/bin/cp -pf ${worksrcpath}-${arch1}/contrib/pdfmark/pdfmark.pdf ${worksrcpath}-${arch}/contrib/pdfmark/pdfmark.pdf"
     40        }
     41    }
     42}