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

unarj (closes #12681):

  • Added standard doc installation.
  • Added universal support.
  • Added livecheck and sha1 and rmd160 checksums.
  • Removed useless patch (replaced by correct build.target).
  • Now uses default destroot procedure.
Location:
trunk/dports/archivers/unarj
Files:
1 deleted
1 edited

Legend:

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

    r28748 r29069  
    22
    33PortSystem        1.0
     4
    45name              unarj
    56version           2.63a
     7revision          1
    68categories        archivers sysutils
    79description       extract files from dos .arj archives
    810maintainers       jc@crazic.ru
     11
    912long_description  ${description}
     13
    1014homepage          http://ibiblio.org/pub/Linux/utils/compress/
    11 master_sites      http://ibiblio.org/pub/Linux/utils/compress/
    12 checksums         md5 a83d139c245f911f22cb1b611ec9768f
     15master_sites      ${homepage}
    1316
    14 patchfiles        patch-Makefile
     17checksums         md5 a83d139c245f911f22cb1b611ec9768f \
     18                  sha1 abd35d894444fea1a0bdc7472ed2346f0f8c6ba4 \
     19                  rmd160 cebee016ffc2b7eb74a13f8246d82ea68519e500
    1520
    16 build.target      all
    17 use_configure     no
     21build.target      unarj
    1822
    19 destroot    {
    20     xinstall -m 755 -d ${destroot}/${prefix}/bin
    21     xinstall -m 755 -d ${destroot}/${prefix}/share/doc/unarj
    22     file copy ${build.dir}/unarj ${destroot}/${prefix}/bin
    23     file copy ${build.dir}/unarj.txt ${destroot}/${prefix}/share/doc/unarj
     23configure {
     24    reinplace -E "/^CFLAGS/s|-ansi -pedantic|[join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
    2425}
    2526
    26 universal_variant no
     27destroot.destdir  INSTALLDIR=${destroot}${prefix}/bin
     28
     29post-destroot {
     30    set docdir ${prefix}/share/doc/${name}-${version}
     31    xinstall -d ${destroot}${docdir}
     32    xinstall -m 0644 ${worksrcpath}/unarj.txt ${destroot}${docdir}
     33}
     34
     35livecheck.check regex
     36livecheck.url   ${homepage}?C=M&O=D
     37livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\[a-z\])
     38
Note: See TracChangeset for help on using the changeset viewer.