source: trunk/dports/textproc/dumpasn1/Portfile

Last change on this file was 87061, checked in by ryandesign@…, 6 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 87061 2011-11-08 23:41:02Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            dumpasn1
6version         20110202
7categories      textproc security
8platforms       darwin
9maintainers     cjr
10description     an ASN.1 decoder and pretty-printer
11long_description        The dumpasn1 program decodes BER and DER-encoded \
12                        ASN.1 data, and is configured with knowledge of \
13                        many security-related objects.
14homepage        http://www.cs.auckland.ac.nz/~pgut001/
15master_sites    ${homepage}
16dist_subdir     ${name}/${version}
17distfiles       dumpasn1.c dumpasn1.cfg
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}
30}
31
32post-patch {
33        reinplace "s|/etc/dumpasn1/|$prefix/etc/|g" \
34                "${worksrcpath}/dumpasn1.c"
35}
36
37use_configure   no
38
39variant universal {}
40
41build {
42        system -W ${worksrcpath} "${configure.cc} [get_canonical_archflags] -o dumpasn1 dumpasn1.c"
43}
44
45destroot {
46        xinstall -c -m 0755 ${worksrcpath}/dumpasn1 \
47                ${destroot}${prefix}/bin/dumpasn1
48        xinstall -c -m 0644 ${worksrcpath}/dumpasn1.cfg \
49                ${destroot}${prefix}/etc/dumpasn1.cfg
50}
51
52livecheck.type  moddate
53livecheck.url   [lindex ${master_sites} 0][lindex ${distfiles} 0]
Note: See TracBrowser for help on using the repository browser.