source: trunk/dports/textproc/xml2rfc/Portfile

Last change on this file was 128579, checked in by khindenburg@…, 3 years ago

xml2rfc: add patch that fixes building #45974; add license; fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 128579 2014-11-24 03:54:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xml2rfc
7version             1.36
8categories          textproc
9platforms           darwin
10license             BSD
11maintainers         nomaintainer
12supported_archs     noarch
13
14description         RFC formatting utility using XML source
15long_description \
16    xml2rfc is a tool for creating Internet-Drafts and RFCs \
17    using the format described in RFC 2629.
18
19homepage            http://xml.resource.org/
20master_sites        http://xml.resource.org/authoring/
21extract.suffix      .tgz
22
23checksums           rmd160  4e9a76b0419443a9368854924ef364676b7d831c \
24                    sha256  eb1c59597fcb40575bf56e2d04e1c8d7e1b3e965c32e20801354d7404e1f270c
25
26depends_build       bin:unzip:unzip
27patchfiles          fast-sync.sh.diff \
28                    patch-example.xml.diff
29
30use_configure       no
31destroot {
32    xinstall -m 755 ${worksrcpath}/xml2rfc.tcl \
33        ${destroot}${prefix}/bin/xml2rfc
34    system "ln -s xml2rfc ${destroot}${prefix}/bin/xml2html; \
35        ln -s xml2rfc ${destroot}${prefix}/bin/xml2txt; \
36        ln -s xml2rfc ${destroot}${prefix}/bin/xml2nroff"
37    xinstall -d ${destroot}${prefix}/share/doc/xml2rfc
38    foreach file [glob -directory ${worksrcpath} \
39                "README.*" "draft-mrose-writing-rfcs.*" "rfc2629.*" \
40                "*.ent" "sample.*"] {
41        xinstall -m 644 ${file} \
42            ${destroot}${prefix}/share/doc/xml2rfc/
43    }
44    xinstall -d ${destroot}${prefix}/share/xsl/xml2rfc
45}
46
47livecheck.type      regex
48livecheck.url       [lindex $master_sites 0]
49livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.