Ticket #47940: Portfile-atool.diff

File Portfile-atool.diff, 2.9 KB (added by xuchunyang (Chunyang Xu), 9 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 64162 2010-02-24 13:30:53Z vinc17@macports.org $
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2# $Id$
    23
    3 PortSystem      1.0
     4PortSystem          1.0
    45
    5 name            atool
    6 version         0.37.0
    7 categories      archivers
    8 platforms       darwin
    9 maintainers     devils.com:expiation
    10 homepage        http://www.nongnu.org/atool/
    11 description     An archival front-end
    12 long_description atool is a script for managing file archives of various \
    13                 types (tar, tar+gzip, zip etc).
    14 
    15 master_sites    http://download.savannah.gnu.org/releases/atool/
    16 
    17 checksums       md5     2607e9b19518af4145be8a6bed454477 \
    18                 sha1    26dc7799db048183e106df5adc9748e831b37490 \
    19                 rmd160  d497e14963701920c530c85d7cdd3e57b58ffdce
     6name                atool
     7version             0.39.0
     8categories          archivers
     9platforms           darwin
     10license             GPL-3
     11maintainers         devils.com:expiation
     12homepage            http://www.nongnu.org/atool/
     13description         An archival front-end
     14long_description    ${name} is a script for managing file archives of various \
     15                    types (tar, tar+gzip, zip etc).
     16
     17master_sites        http://download.savannah.gnu.org/releases/atool/
     18
     19checksums           rmd160  ca067ba295ff2ad11dc1c9147a13f8a1becaf078 \
     20                    sha256  aaf60095884abb872e25f8e919a8a63d0dabaeca46faeba87d12812d6efc703b
    2021
    2122post-patch {
    22         # /usr/bin/sed does not work, use ${prefix}/bin/gsed instead
    23         reinplace -E \
    24                 "s|(\[\t \])sed |\\1${prefix}/bin/gsed |g" \
    25                 ${worksrcpath}/configure \
    26                 ${worksrcpath}/Makefile.in
     23    # /usr/bin/sed does not work, use ${prefix}/bin/gsed instead
     24    reinplace -E \
     25        "s|(\[\t \])sed |\\1${prefix}/bin/gsed |g" \
     26        ${worksrcpath}/configure \
     27        ${worksrcpath}/Makefile.in
    2728}
    2829
    29 depends_build   port:gsed
    30 depends_lib     path:bin/perl:perl5
     30depends_build       port:gsed
     31depends_lib         path:bin/perl:perl5
    3132
    32 configure.perl  ${prefix}/bin/perl
     33configure.perl      ${prefix}/bin/perl
    3334
    3435post-destroot {
    35         set docdir ${prefix}/share/doc/${name}
    36         xinstall -d ${destroot}${docdir}
    37         xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
    38                 ${destroot}${docdir}
     36    set docdir ${prefix}/share/doc/${name}
     37    xinstall -d ${destroot}${docdir}
     38    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
     39        ${destroot}${docdir}
    3940}
    4041
    4142universal_variant   no
    4243
    43 livecheck.type  regex
    44 livecheck.url   ${homepage}
    45 livecheck.regex "latest version of atool is (\[0-9.\]+),"
     44livecheck.type      regex
     45livecheck.url       ${homepage}
     46livecheck.regex     "latest version of atool is (\[0-9.\]+),"