source: trunk/dports/textproc/docbook2X/Portfile @ 127257

Last change on this file since 127257 was 127257, checked in by raimue@…, 5 years ago

textproc/docbook2X:
Ensure docbook2X uses the correct perl version instead of ${prefix}/bin/perl.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 127257 2014-10-24 12:37:03Z raimue@macports.org $
3
4PortSystem          1.0
5
6name                docbook2X
7version             0.8.8
8revision            6
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
22depends_lib         port:perl5.16 \
23                    port:p5.16-xml-namespacesupport \
24                    port:p5.16-xml-sax \
25                    port:p5.16-xml-parser \
26                    port:p5.16-xml-sax-expat \
27                    port:libiconv \
28                    port:libxml2
29
30configure.args      PERL=${prefix}/bin/perl5.16
31
32post-patch          {
33    reinplace "s|http://docbook2x.sf.net/latest/xslt|${prefix}/share/docbook2X/xslt|" \
34        ${worksrcpath}/perl/db2x_xsltproc.pl
35    reinplace "s|/etc/xml/catalog|${prefix}/etc/xml/catalog|" \
36        ${worksrcpath}/perl/db2x_xsltproc.pl \
37        ${worksrcpath}/doc/db2x_xsltproc.1 \
38        ${worksrcpath}/doc/db2x_xsltproc.html \
39        ${worksrcpath}/doc/docbook2X.info
40    reinplace "s|\${prefix}|${prefix}|" \
41        ${worksrcpath}/configure
42}
Note: See TracBrowser for help on using the repository browser.