source: trunk/dports/textproc/docbook2X/Portfile

Last change on this file was 154093, checked in by mojca@…, 11 months ago

docbook2X: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 154093 2016-10-20 02:56:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                docbook2X
7version             0.8.8
8revision            8
9categories          textproc
10platforms           darwin
11license             MIT
12maintainers         gmail.com:tlockhart1976 openmaintainer
13homepage            http://docbook2x.sourceforge.net/
14description         Converts DocBook documents into the traditional Unix man \
15                    page format and the GNU Texinfo format.
16long_description    ${description}
17master_sites        sourceforge:docbook2x
18checksums           md5 b9b76a6af198c4f44574cfd17a322f01
19
20conflicts           docbook-utils
21
22set perl_version    5.24
23depends_lib         port:perl${perl_version} \
24                    port:p${perl_version}-xml-namespacesupport \
25                    port:p${perl_version}-xml-sax \
26                    port:p${perl_version}-xml-parser \
27                    port:p${perl_version}-xml-sax-expat \
28                    port:libiconv \
29                    port:libxml2
30
31configure.args      PERL=${prefix}/bin/perl${perl_version}
32
33post-patch          {
34    reinplace "s|http://docbook2x.sf.net/latest/xslt|${prefix}/share/docbook2X/xslt|" \
35        ${worksrcpath}/perl/db2x_xsltproc.pl
36    reinplace "s|/etc/xml/catalog|${prefix}/etc/xml/catalog|" \
37        ${worksrcpath}/perl/db2x_xsltproc.pl \
38        ${worksrcpath}/doc/db2x_xsltproc.1 \
39        ${worksrcpath}/doc/db2x_xsltproc.html \
40        ${worksrcpath}/doc/docbook2X.info
41    reinplace "s|\${prefix}|${prefix}|" \
42        ${worksrcpath}/configure
43}
Note: See TracBrowser for help on using the repository browser.