Ticket #55579: Portfile.2.diff

File Portfile.2.diff, 2.1 KB (added by lockhart (Thomas Lockhart), 7 years ago)

Patch to support multiple perl versions. Default to 5.26 per current MacPorts recommendation. Installs cleanly on High Sierra.

  • Portfile

    old new  
    55
    66name                docbook-utils
    77version             0.6.14
    8 revision            4
    9 perl5.branches      5.24
     8revision            5
    109categories          textproc
    1110platforms           darwin
    1211license             GPL-2+
     
    2524checksums           rmd160  710fe047ea8a794cc6c0d944521184375a666e6b \
    2625                    sha256  48faab8ee8a7605c9342fb7b906e0815e3cee84a489182af38e8f7c0df2e92e9
    2726
     27perl5.require_variant   yes
     28perl5.conflict_variants yes
     29perl5.branches          5.24 5.26
     30perl5.default_branch    5.26
     31perl5.create_variants   ${perl5.branches}
     32
    2833conflicts           docbook2X
    2934
    3035depends_lib         port:sgml-common \
    3136                    port:p${perl5.major}-sgmlspm \
    3237                    port:openjade \
    3338                    port:docbook-dsssl \
    34                     port:docbook-sgml-4.2
     39                    port:docbook-sgml-4.2 \
     40                    port:lynx \
     41                    port:links \
     42                    port:w3m
    3543
    3644configure.args-append --mandir=${prefix}/share/man
    3745
     
    6977        ${worksrcpath}/backends/texi.in \
    7078        ${worksrcpath}/helpers/docbook2man-spec.pl \
    7179        ${worksrcpath}/bin/sgmldiff.in \
    72         ${worksrcpath}/doc/man/Makefile.in \
    73         ${worksrcpath}/doc/HTML/Makefile.in
     80        ${worksrcpath}/doc/man/Makefile.in
    7481    reinplace -W ${worksrcpath} "s|sgmlspl|sgmlspl-${perl5.major}|g" \
    7582        backends/man.in \
    7683        backends/texi.in \
    7784        doc/man/Makefile.in
     85    reinplace "s|/usr|${prefix}|g" \
     86        ${worksrcpath}/backends/txt
    7887
    7988    # Update content to docbook-4.x since we do not have 3.x available in MacPorts
    8089    reinplace "s|V3.1|V4.2|" ${worksrcpath}/doc/docbook-utils.sgml
    8190    reinplace "s|docinfo|chapterinfo|" \
    8291        ${worksrcpath}/doc/docbook-utils.sgml
    8392    reinplace "s|docinfo|refentryinfo|" \
    84         ${worksrcpath}/doc/refentry/docbook2man-spec.pl.sgml \
    8593        ${worksrcpath}/doc/refentry/jw.sgml \
    8694        ${worksrcpath}/doc/refentry/frontend-spec.sgml \
    8795        ${worksrcpath}/doc/refentry/backend-spec.sgml \