Ticket #31915: dumpasn1-20110202.diff

File dumpasn1-20110202.diff, 1.8 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    11# $Id$
    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
    911long_description        The dumpasn1 program decodes BER and DER-encoded \
     
    1113                        many security-related objects.
    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
    3545destroot {
     
    3848        xinstall -c -m 0644 ${worksrcpath}/dumpasn1.cfg \
    3949                ${destroot}${prefix}/etc/dumpasn1.cfg
    4050}
     51
     52livecheck.type  moddate
     53livecheck.url   [lindex ${master_sites} 0][lindex ${distfiles} 0]