source: trunk/dports/textproc/docbook-utils/Portfile @ 119126

Last change on this file since 119126 was 119126, checked in by pixilla@…, 6 years ago

textproc/docbook-utils:

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 119126 2014-04-17 22:37:50Z pixilla@macports.org $
3
4PortSystem          1.0
5
6name                docbook-utils
7version             0.6.14
8revision            1
9categories          textproc
10platforms           darwin
11license             GPL-2+
12maintainers         fourpalms.org:lockhart openmaintainer
13homepage            http://sources.redhat.com/docbook-tools/
14description         Shell scripts for managing DocBook documents
15long_description \
16    This package contains scripts for easy conversion from DocBook \
17    files to other formats (for example, HTML, RTF, and PostScript), and \
18    for comparing SGML files. \
19    Transcribed from the Fedora 15 RPM written originally by \
20    Tim Waugh <twaugh@redhat.com> based on work by Eric Bischoff \
21    and with recent maintenance by Ondrej Vasik <ovasik@redhat.com>.
22master_sites        ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/
23
24checksums           rmd160  710fe047ea8a794cc6c0d944521184375a666e6b \
25                    sha256  48faab8ee8a7605c9342fb7b906e0815e3cee84a489182af38e8f7c0df2e92e9
26
27conflicts           docbook2X
28
29depends_lib         port:sgml-common \
30                    port:p5.12-sgmlspm \
31                    port:openjade \
32                    port:docbook-dsssl \
33                    port:docbook-sgml-4.2
34
35configure.args-append --mandir=${prefix}/share/man
36
37post-extract {
38    copy ${filespath}/docbook2man-spec.pl \
39        ${worksrcpath}/bin/
40}
41
42patch.pre_args      -p1
43patchfiles          docbook-utils-spaces.patch \
44                    docbook-utils-2ndspaces.patch \
45                    docbook-utils-w3mtxtconvert.patch \
46                    docbook-utils-grepnocolors.patch \
47                    docbook-utils-sgmlinclude.patch \
48                    docbook-utils-rtfmanpage.patch \
49                    docbook-utils-papersize.patch \
50                    docbook-utils-nofinalecho.patch \
51                    docbook-utils-newgrep.patch
52
53post-patch {
54    reinplace -E "s|^docdir=.+$|docdir='${prefix}/share/doc'|" \
55        ${worksrcpath}/configure
56    reinplace -E "s|^(htmldir = .+)(/html)(.+)$|\\1\\3\\2|" \
57        ${worksrcpath}/doc/HTML/Makefile.in
58
59    reinplace "s|/etc/sgml|${prefix}/etc/sgml|" \
60        ${worksrcpath}/bin/jw.in \
61        ${worksrcpath}/doc/man/Makefile.in \
62        ${worksrcpath}/doc/HTML/Makefile.in
63    reinplace "s|jade|openjade|" \
64        ${worksrcpath}/doc/man/Makefile.in \
65        ${worksrcpath}/doc/HTML/Makefile.in
66    reinplace "s|nsgmls|onsgmls|g" \
67        ${worksrcpath}/backends/man.in \
68        ${worksrcpath}/backends/texi.in \
69        ${worksrcpath}/helpers/docbook2man-spec.pl \
70        ${worksrcpath}/bin/sgmldiff.in \
71        ${worksrcpath}/doc/man/Makefile.in \
72        ${worksrcpath}/doc/HTML/Makefile.in
73
74    # Update content to docbook-4.x since we do not have 3.x available in MacPorts
75    reinplace "s|V3.1|V4.2|" ${worksrcpath}/doc/docbook-utils.sgml
76    reinplace "s|docinfo|chapterinfo|" \
77        ${worksrcpath}/doc/docbook-utils.sgml
78    reinplace "s|docinfo|refentryinfo|" \
79        ${worksrcpath}/doc/refentry/docbook2man-spec.pl.sgml \
80        ${worksrcpath}/doc/refentry/jw.sgml \
81        ${worksrcpath}/doc/refentry/frontend-spec.sgml \
82        ${worksrcpath}/doc/refentry/backend-spec.sgml \
83        ${worksrcpath}/doc/refentry/sgmldiff.sgml
84    reinplace "s|<Comment>|<!-- |" \
85        ${worksrcpath}/doc/refentry/docbook2man-spec.pl.sgml
86    reinplace "s|</Comment>| -->|" \
87        ${worksrcpath}/doc/refentry/docbook2man-spec.pl.sgml
88}
Note: See TracBrowser for help on using the repository browser.