Ticket #12871: pstree-2.31_1.diff

File pstree-2.31_1.diff, 1.1 KB (added by nox@…, 17 years ago)
  • Portfile

     
    44
    55name                    pstree
    66version                 2.31
     7revision        1
    78categories              sysutils
    89maintainers             mww@macports.org
    910description             pstree shows the output of the ps command as a tree
     
    2425use_configure   no
    2526
    2627build.cmd       gcc
    27 build.args      pstree.c
     28build.args      pstree.c ${configure.cflags}
    2829build.target    -o pstree
    2930
    3031destroot        {
    31         xinstall -m 755 -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
    32         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    33         xinstall -m 644 ${worksrcpath}/README \
    34                 ${destroot}${prefix}/share/doc/${name}/README
     32        xinstall -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
     33
     34    set docdir ${prefix}/share/doc/${name}-${version}
     35        xinstall -d ${destroot}${docdir}
     36        xinstall -m 0644 ${worksrcpath}/README \
     37                ${destroot}${docdir}
     38}
     39
     40variant universal {
     41    build.args-append  ${configure.universal_cflags}
    3542}
    3643
    3744livecheck.check regex
    3845livecheck.url   ftp://ftp.thp.uni-duisburg.de/pub/source/
    3946livecheck.regex pstree.tar.gz -> pstree-(\[0-9\]+\\.\[0-9\]+)
     47