Ticket #12679: lzo2-doc.diff

File lzo2-doc.diff, 1.8 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem      1.0
    44
    55name                    lzo2
     6set my_name     lzo
    67version                 2.02
    7 revision                1
     8revision        2
    89categories              archivers
    910platforms               darwin
    1011maintainers             yunzheng.hu@gmail.com
    1112description             Real-time data compression library
    12 long_description        \
     13
     14long_description \
    1315        LZO is a portable lossless data compression library written in ANSI C. \
    1416        It offers pretty fast compression and very fast decompression. \
    1517        Decompression requires no memory. \
     
    1921        LZO is distributed under the GNU General Public License.
    2022
    2123homepage                http://www.oberhumer.com/opensource/lzo/
    22 master_sites    http://www.oberhumer.com/opensource/lzo/download/
    23 distname                lzo-${version}
     24master_sites    ${homepage}download/
     25distname        ${my_name}-${version}
     26
    2427checksums               md5 6760e5819f4238328709bf93bf10071c \
    2528                                sha1 82e1ae75663623516156542f4975a64d3a264b91 \
    2629                                rmd160 382154ec7d076e66fdcb6114818193dca180e3ac
     
    3538}
    3639
    3740post-destroot {
    38         file mkdir "${destroot}/${prefix}/share/doc/${name}"
    39         xinstall -m 644 ${worksrcpath}/doc/LZOTEST.TXT \
    40                 ${worksrcpath}/doc/LZO.FAQ \
    41                 ${worksrcpath}/doc/LZO.TXT \
    42                 ${worksrcpath}/doc/LZOAPI.TXT \
    43                 ${destroot}/${prefix}/share/doc/${name}
     41    set docdir ${prefix}/share/doc/${my_name}-${version}
     42
     43    xinstall -d ${destroot}${docdir}
     44    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog NEWS README THANKS \
     45        ${destroot}${docdir}
     46    eval xinstall -m 0644 [glob ${worksrcpath}/doc/*] ${destroot}${docdir}
    4447}
     48
     49livecheck.check regex
     50livecheck.url   ${homepage}
     51livecheck.regex "Version (\\d+(?:\\.\\d+)*)"
     52