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

Last change on this file was 154379, checked in by mojca@…, 9 months ago

docbook-utils: explicit switch to perl5.24 (#52081) and revbump

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