Changeset 119132


Ignore:
Timestamp:
Apr 17, 2014, 10:40:25 PM (6 years ago)
Author:
pixilla@…
Message:

textproc/sgml-common:

  • Use new PortGroup xmlcatalog. See #41708
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/sgml-common/Portfile

    r99124 r119132  
    11# -*- 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
    22# $Id$
    3 
    4 PortSystem          1.0
     3PortSystem 1.0
     4PortGroup xmlcatalog 1.0
    55
    66name                sgml-common
    77version             0.6.3
    88set openjade_version 1.3.2
     9revision            1
    910categories          textproc
    1011platforms           darwin
     
    1213maintainers         fourpalms.org:lockhart openmaintainer
    1314supported_archs     noarch
    14 
    1515# Actually - there is no homepage of this project, on that URL
    1616# page you could get complete ISO 8879 listing as was on the
     
    1818homepage            http://www.w3.org/2003/entities/
    1919description         A collection of entities and DTDs common to multiple packages.
    20 long_description    The sgml-common package contains a collection of entities and DTDs \
    21                     that are useful for processing SGML, but that don't need to be \
    22                     included in multiple packages.  Sgml-common also includes an \
    23                     up-to-date Open Catalog file. \
    24                     Transcribed from the Fedora 15 RPM written originally by \
    25                     Tim Waugh <twaugh@redhat.com> based on work by Eric Bischoff \
    26                     and with recent maintenance by Ondrej Vasik <ovasik@redhat.com>.
     20long_description \
     21    The sgml-common package contains a collection of entities and DTDs \
     22    that are useful for processing SGML, but that don't need to be \
     23    included in multiple packages.  Sgml-common also includes an \
     24    up-to-date Open Catalog file. \
     25    Transcribed from the Fedora 15 RPM written originally by \
     26    Tim Waugh <twaugh@redhat.com> based on work by Eric Bischoff \
     27    and with recent maintenance by Ondrej Vasik <ovasik@redhat.com>.
    2728
    2829master_sites        ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/:redhat \
     
    4243                    sha256  1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
    4344
    44 depends_lib         port:perl5 \
    45                     port:libxml2 \
    46                     port:openjade \
    47                     port:docbook-dsssl \
    48                     port:docbook-sgml-4.2
     45depends_lib-append  port:perl5 \
     46                    port:libxml2
    4947
    50 depends_run         port:xmlcatmgr
    51 
    52 set bindir ${prefix}/bin
    53 set confdir ${prefix}/etc
    54 set datadir ${prefix}/share
    55 set sgmldir ${datadir}/sgml
    56 set sgmlcatalog ${confdir}/sgml/catalog
    57 set xmldir ${datadir}/xml
    58 set xmlcatalog ${confdir}/xml/catalog
    59 # xmlcatmgr as installed by MacPorts defaults to using
    60 # ${prefix}/etc/xml/catalog (for XML) and ${prefix}/etc/sgml/catalog (for
    61 # SGML) if no catalog is specified, but we'll specify the path just in case
    62 # users have another installation of xmlcatmgr and happen to have it before
    63 # ${prefix}/bin in their PATH.
    64 set xml.args       "-c ${xmlcatalog}"
    65 set sgml.args      "-s -c ${sgmlcatalog}"
     48set sgmldir ${prefix}/share/sgml
    6649
    6750patch.pre_args      -p1
     
    7861use_configure       no
    7962
    80 build {
    81     # XML catalog
    82     # Make the directory if it doesn't exist
    83     if {![file exists ${confdir}/xml]} {
    84         xinstall -m 755 -d ${confdir}/xml
    85     }
    86 
    87     # Create the catalog file if it doesn't exist
    88     if {![file exists ${xmlcatalog}]} {
    89         system "xmlcatmgr ${xml.args} create"
    90     }
    91 
    92     # SGML catalog
    93     # Make the directory if it doesn't exist
    94     if {![file exists ${confdir}/sgml]} {
    95         xinstall -m 755 -d ${confdir}/sgml
    96     }
    97 
    98     # Create the catalog file if it doesn't exist
    99     if {![file exists ${sgmlcatalog}]} {
    100         system "xmlcatmgr ${sgml.args} create"
    101     }
    102 
    103     # Now put the common DocBook entries in it
    104     # system "${bindir}/xmlcatalog --noout --add 'delegatePublic' \
    105     #     '-//OASIS//ENTITIES DocBook XML' \
    106     #     'file://${confdir}/sgml/docbook/xmlcatalog' ${worksrcpath}${xmlcatalog}"
    107     # system "${bindir}/xmlcatalog --noout --add 'delegatePublic' \
    108     #     '-//OASIS//DTD DocBook XML' \
    109     #     'file://${confdir}/sgml/docbook/xmlcatalog' ${worksrcpath}${xmlcatalog}"
    110     # system "${bindir}/xmlcatalog --noout --add 'delegatePublic' \
    111     #     'ISO 8879:1986' \
    112     #     'file://${confdir}/sgml/docbook/xmlcatalog' ${worksrcpath}${xmlcatalog}"
    113     # system "${bindir}/xmlcatalog --noout --add 'delegateSystem' \
    114     #     'http://www.oasis-open.org/docbook/' \
    115     #     'file://${confdir}/sgml/docbook/xmlcatalog' ${worksrcpath}${xmlcatalog}"
    116     # system "${bindir}/xmlcatalog --noout --add 'delegateURI' \
    117     #     'http://www.oasis-open.org/docbook/' \
    118     #     'file://${confdir}/sgml/docbook/xmlcatalog'
    119         # ${worksrcpath}${xmlcatalog}"
    120     # Also create the common DocBook catalog
    121     # xinstall -d ${worksrcpath}${confdir}/sgml/docbook
    122     # system "${bindir}/xmlcatalog --noout --create \
    123     #     ${worksrcpath}${confdir}/sgml/docbook/xmlcatalog"
    124 }
     63build {}
    12564
    12665destroot {
    127     xinstall -d ${destroot}${confdir}/sgml
    128     xinstall ${worksrcpath}/config/sgml.conf ${destroot}${prefix}/etc/sgml/sgml.conf
     66    xinstall -d ${destroot}${sgml.confdir}
     67    xinstall ${worksrcpath}/config/sgml.conf ${destroot}${sgml.confdir}/sgml.conf
    12968    xinstall -d ${destroot}${sgmldir}
    13069    # Following 4 from openjade/pubtext - same maintainer as in SGML-common, so up2date:
Note: See TracChangeset for help on using the changeset viewer.