Ticket #38801: patch-Portfile.diff

File patch-Portfile.diff, 2.0 KB (added by lpsinger (Leo Singer), 11 years ago)

suggested changes for Portfile

  • Portfile

    old new  
    2929                        are compatible with other packages and can be \
    3030                        easily converted.
    3131
    32 depends_build           port:perl5 \
    33                         port:libtool
     32depends_lib             port:perl5
    3433
    35 depends_run             port:perl5 \
    36                         port:p5-archive-tar \
     34depends_run             port:p5-archive-tar \
    3735                        port:autoconf \
    3836                        port:automake \
    3937                        port:libtool
    4038
    4139master_sites            http://www.globus.org/ftppub/gt5/5.2/5.2.4/packages/src/
    4240
    43 distfiles               gpt-3.6.3.tar.gz
     41distname                gpt-${version}
    4442
    45 checksums               gpt-3.6.3.tar.gz \
    46                             sha256 9aa59106de539476ab0c8d8c119f168e877a696c48737e5583b3fb561068a4e8 \
    47                             rmd160 a4d7d12318ad990b576ac018f6fc903615ddd38e
     43checksums               sha256 9aa59106de539476ab0c8d8c119f168e877a696c48737e5583b3fb561068a4e8 \
     44                        rmd160 a4d7d12318ad990b576ac018f6fc903615ddd38e
    4845
    49 worksrcdir              gpt-3.6.3
     46use_autoreconf          yes
    5047
    5148configure.post_args     --libexecdir='\${datadir}/globus' \
    5249                        --mandir='\${datadir}/man' \
     
    5552
    5653destroot.target-append  install-man
    5754
    58 pre-configure {
    59     foreach i {config.guess config.sub} {
    60         file copy -force ${prefix}/share/libtool/config/$i ${worksrcpath}/$i
    61     }
    62 }
    63 
    6455post-destroot {
    65     # Rename libtoolize to glibtoolize
    66     reinplace "s/libtoolize/glibtoolize/g" \
    67         ${destroot}${prefix}/share/globus/gpt-bootstrap.sh
    68 
    6956    # Install documentation
    70     file mkdir ${destroot}${prefix}/share/doc/${name}-${version}
     57    xinstall -d ${destroot}${prefix}/share/doc/${name}
    7158    xinstall -m 644 ${worksrcpath}/CHANGES \
    7259        ${worksrcpath}/LICENSE ${worksrcpath}/README \
    73         ${destroot}${prefix}/share/doc/${name}-${version}
     60        ${destroot}${prefix}/share/doc/${name}
    7461}