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

textproc/iso8879:

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

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/iso8879/Portfile

    r86410 r119130  
    11# $Id$
     2# -*- 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
    23
    3 PortSystem 1.0
    4 name            iso8879
    5 version         1986
    6 revision        1
    7 categories      textproc
    8 license         Permissive
    9 maintainers     nomaintainer
    10 description     Character entity sets from ISO 8879:1986 (SGML)
    11 platforms       darwin
     4PortSystem      1.0
     5PortGroup       xmlcatalog 1.0
     6
     7name            iso8879
     8version         1986
     9revision        2
     10categories      textproc
     11license         Permissive
     12maintainers     nomaintainer
     13description     Character entity sets from ISO 8879:1986 (SGML)
     14platforms       darwin
    1215
    1316long_description $description
    1417
    15 master_sites    freebsd
     18master_sites    freebsd
    1619
    17 distname        isoENTS
    18 checksums       md5 c8a9561212c1a2ec6e48919640de9c67
     20distname        isoENTS
     21checksums       md5 c8a9561212c1a2ec6e48919640de9c67
    1922
    20 use_zip         yes
     23use_zip         yes
    2124
    22 depends_run     port:xmlcatmgr
     25use_configure   no
     26build {}
    2327
    24 use_configure   no
    25 build           {}
     28set install_dir ${prefix}/share/sgml/${name}
     29sgml.catalog "${install_dir}/catalog"
    2630
    27 set install_dir ${prefix}/share/sgml/${name}
     31destroot.args prefix=${destroot}${prefix}
    2832
    29 # xmlcatmgr as installed by MacPorts defaults to using
    30 # ${prefix}/etc/sgml/catalog (for XML) and ${prefix}/etc/sgml/catalog (for
    31 # SGML) if no catalog is specified, but we'll specify the path just in case
    32 # users have another installation of xmlcatmgr and happen to have it before
    33 # ${prefix}/bin in their PATH.
    34 set catalog.sgml ${prefix}/etc/sgml/catalog
    35 set xmlcatmgr.args "-s -c ${catalog.sgml}"
    36 
    37 destroot        {
    38         xinstall -m 755 -d ${destroot}${install_dir}
    39         xinstall -m 644 ${portpath}/${filesdir}/catalog ${destroot}${install_dir}
    40         eval xinstall -m 644 [glob ${workpath}/ISO*] ${destroot}${install_dir}
     33destroot {
     34    xinstall -m 755 -d ${destroot}${install_dir}
     35    xinstall -m 644 ${portpath}/${filesdir}/catalog ${destroot}${install_dir}
     36    eval xinstall -m 644 [glob ${workpath}/ISO*] ${destroot}${install_dir}
    4137}
    42 
    43 destroot.args   prefix=${destroot}${prefix}
    44 
    45 post-activate {
    46     # Make the directory if it doesn't exist
    47     if {![file exists ${prefix}/etc/sgml]} {
    48         xinstall -m 755 -d ${prefix}/etc/sgml
    49     }
    50 
    51     # Create the catalog file if it doesn't exist
    52     if {![file exists ${catalog.sgml}]} {
    53         system "xmlcatmgr ${xmlcatmgr.args} create"
    54     }
    55 
    56     # Add the CATALOG entry to the catalog if it doesn't exist
    57     if {[catch {exec xmlcatmgr ${xmlcatmgr.args} lookup ${install_dir}/catalog}]} {
    58         system "xmlcatmgr ${xmlcatmgr.args} add CATALOG ${install_dir}/catalog"
    59     }
    60 }
    61 
    62 # This will remove the catalog entry for this port.
    63 post-deactivate {
    64     # Remove the CATALOG entry from the catalog
    65     system "xmlcatmgr ${xmlcatmgr.args} remove CATALOG ${install_dir}/catalog"
    66 }
Note: See TracChangeset for help on using the changeset viewer.