Ignore:
Timestamp:
Sep 14, 2007, 12:53:38 PM (12 years ago)
Author:
nox@…
Message:

unalz (closes #12680):

  • Updated to 0.61.
  • Added libiconv dependency.
  • Added standard doc installation.
  • Added universal support.
  • Added livecheck and sha1 and rmd160 checksums.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/unalz/Portfile

    r28064 r29068  
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem      1.0
    44
    55name                    unalz
    6 version                 0.50
     6version         0.61
    77categories              archivers
    88platforms               darwin
    99maintainers             minskim@bawi.org
    1010description             unarchiver for the AlZip format
     11
    1112long_description        Unalz is a BSD-licensed unarchiver for AlZip format which \
    1213                                requires proprietary and win32-only software but widely used \
     
    1516homepage                http://www.kipple.pe.kr/win/unalz/
    1617master_sites    ${homepage}
    17 checksums               md5 bc26fc608412f73aaf48db0b51e13593
    1818extract.suffix  .tgz
     19
     20depends_lib     port:libiconv
     21
     22checksums       md5 f3ee5bad439f10e06b089b8db38b7566 \
     23                sha1 a6cab2a02b7f44957211e694b7d8d144840b2255 \
     24                rmd160 68cb957aeacfc8452e01637f7e0a50939d515ab6
    1925
    2026worksrcdir              unalz
    2127
    22 use_configure   no
     28post-patch {
     29    reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile
     30}
     31
     32configure {
     33    set CFLAGS [join ${configure.cflags} " "]
     34    reinplace -E "/^CFLAGS/s|\$|${CFLAGS}\\\nCPPFLAGS=${CFLAGS}|" ${worksrcpath}/Makefile
     35    reinplace -E "/^LDFLAGS/s|\$|[join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
     36}
    2337
    2438build.target    posix-utf8
    2539
    26 destroot {
    27         xinstall -m 755 -s ${worksrcpath}/unalz ${destroot}${prefix}/bin
     40post-destroot {
     41    set docdir ${prefix}/share/doc/${name}-${version}
     42    xinstall -d ${destroot}${docdir}
     43    xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${docdir}
    2844}
    2945
    30 universal_variant no
     46livecheck.check regex
     47livecheck.url   ${homepage}
     48livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
    3149
Note: See TracChangeset for help on using the changeset viewer.