Changeset 87061


Ignore:
Timestamp:
Nov 8, 2011, 11:41:02 PM (8 years ago)
Author:
ryandesign@…
Message:

dumpasn1: update to 20110202; ensure we're UsingTheRightCompiler and arch flags; add universal variant; fix livecheck; see #31915 (maintainer timeout)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/dumpasn1/Portfile

    r50980 r87061  
    22
    33PortSystem 1.0
     4
    45name            dumpasn1
    5 version         20060622
     6version         20110202
    67categories      textproc security
     8platforms       darwin
    79maintainers     cjr
    810description     an ASN.1 decoder and pretty-printer
     
    1214homepage        http://www.cs.auckland.ac.nz/~pgut001/
    1315master_sites    ${homepage}
    14 distname       
     16dist_subdir     ${name}/${version}
    1517distfiles       dumpasn1.c dumpasn1.cfg
    16 checksums       dumpasn1.c md5 0855c6f21a9e2c7f984b1e48ce9c1f58 \
    17                 dumpasn1.cfg md5 ffb5d3c3f7b5216149dcc7bbf462408c
    18 platforms       darwin
    19 extract {
    20         system "cp ${distpath}/dumpasn1.c ${worksrcpath}"
    21         system "cp ${distpath}/dumpasn1.cfg ${worksrcpath}"
     18
     19checksums       dumpasn1.c \
     20                rmd160  65fbc959dcf36729f29d2c81d148002e934d192a \
     21                sha256  514e3b49adb0b2e49f8bcfc47c20c5f4202bc7e9f7b1e90bcd4d4cf592d469f4 \
     22                dumpasn1.cfg \
     23                rmd160  27c96f45ae762b202fe7ee5a3973d7e7447415ca \
     24                sha256  b7c0ad5a4186fcef9b37d5a95419886e8ed16f0c69603f9725c4007026958241
     25
     26extract.only
     27extract.mkdir   yes
     28post-extract {
     29        xinstall -m 644 -W ${distpath} dumpasn1.c dumpasn1.cfg ${worksrcpath}
    2230}
    2331
    24 configure       {}
    25 
    26 post-configure {
     32post-patch {
    2733        reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
    2834                "${worksrcpath}/dumpasn1.c"
    2935}
    3036
     37use_configure   no
     38
     39variant universal {}
     40
    3141build {
    32         system "cc -o ${worksrcpath}/dumpasn1 ${worksrcpath}/dumpasn1.c"
     42        system -W ${worksrcpath} "${configure.cc} [get_canonical_archflags] -o dumpasn1 dumpasn1.c"
    3343}
    3444
     
    3949                ${destroot}${prefix}/etc/dumpasn1.cfg
    4050}
     51
     52livecheck.type  moddate
     53livecheck.url   [lindex ${master_sites} 0][lindex ${distfiles} 0]
Note: See TracChangeset for help on using the changeset viewer.