Ticket #41708: Portfile.diff

File Portfile.diff, 4.5 KB (added by lockhart (Thomas Lockhart), 10 years ago)

openjade Portfile difference with the current version in svn

  • Portfile

    old new  
    22# $Id: Portfile 115642 2014-01-07 19:12:38Z ryandesign@macports.org $
    33
    44PortSystem 1.0
     5PortGroup xmlcatalog 1.0
    56
    67name            openjade
    78version         1.3.2
    8 revision        7
     9revision        8
    910categories      textproc
    1011license         MIT
    1112maintainers     fourpalms.org:lockhart openmaintainer
    1213description     James Clark's implementation of DSSSL
     14long_description \
     15    OpenJade is an implementation of ISO/IEC 10179:1996 \
     16    standard DSSSL language.
    1317homepage        http://openjade.sourceforge.net/
    1418platforms       darwin freebsd
    15 
    16 long_description OpenJade is an implementation of ISO/IEC 10179:1996 \
    17                  standard DSSSL language.
    18 
    19 master_sites    sourceforge:project/openjade/openjade/${version}
     19master_sites    sourceforge
    2020
    2121checksums       md5 7df692e3186109cc00db6825b777201e
    2222
     
    3030depends_lib     port:opensp
    3131depends_run     port:xmlcatmgr
    3232
    33 # xmlcatmgr as installed by MacPorts defaults to using
    34 # ${prefix}/etc/sgml/catalog (for XML) and ${prefix}/etc/sgml/catalog (for
    35 # SGML). For historic reasons, openjade expects the catalog to be in
    36 # share/sgml/catalog. To avoid breaking existing setup, we simply add
    37 # a reference to the root catalog (/etc/sgml/catalog) to openjade's
    38 # catalog (/share/sgml/catalog)
    39 set catalog.sgml      ${prefix}/etc/sgml/catalog
    40 set catalog.openjade  ${prefix}/share/sgml/catalog
    41  
    42 configure.args  --enable-http --enable-html --enable-mif \
    43                 --disable-dependency-tracking \
    44                 --enable-default-catalog=${catalog.openjade} \
    45                 --datadir=${prefix}/share/sgml/openjade \
    46                 --mandir=${prefix}/share/man
    47 
    48 configure.env-append        LIBS="-L${prefix}/lib"
    49 configure.cxxflags-append   "-isystem ${prefix}/include -fno-rtti"
    50 configure.ldflags-delete    "-L${prefix}/lib"
     33set openjade.catalog ${prefix}/share/sgml/catalog
     34set openjade.rootcatalog ${prefix}/share/sgml/openjade/catalog
     35
     36sgml.catalog ${openjade.rootcatalog}
     37# Add the root catalog to the openjade catalog
     38sgml.addtocatalog "${openjade.catalog}" "${sgml.rootcatalog}"
     39
     40configure.args --enable-http --enable-html --enable-mif \
     41               --disable-dependency-tracking \
     42               --enable-default-catalog=${openjade.catalog} \
     43               --datadir=${prefix}/share/sgml/openjade \
     44               --mandir=${prefix}/share/man
    5145
    5246# Fix build failure on Tiger due to use of -isystem
    5347compiler.blacklist    gcc-4.0 gcc-3.3
     
    5852    set cxx_stdlibflags "-stdlib=${configure.cxx_stdlib}"
    5953}
    6054
     55configure.env-append      LIBS="-L${prefix}/lib"
     56configure.cxxflags-append "-isystem ${prefix}/include -fno-rtti"
     57configure.ldflags-delete  "-L${prefix}/lib"
     58
    6159post-configure  {
    6260    reinplace "s|^#pragma implementation||g" ${worksrcpath}/grove/Node.cxx
    6361    reinplace "s|^#pragma implementation||g" ${worksrcpath}/msggen.pl
     
    7573
    7674destroot.target install install-man
    7775
    78 post-destroot   {
     76post-destroot {
    7977    system "install -d -m 755 ${destroot}${prefix}/share/sgml/openjade"
    8078    system "install -m 644 ${worksrcpath}/dsssl/* ${destroot}${prefix}/share/sgml/openjade"
    8179}
    82 
    83 post-activate {
    84     # Make the directory if it doesn't exist
    85     if {![file exists ${prefix}/etc/sgml]} {
    86         xinstall -m 755 -d ${prefix}/etc/sgml
    87     }
    88 
    89     # Create the root catalog file if it doesn't exist
    90     if {![file exists ${catalog.sgml}]} {
    91         system "xmlcatmgr -s -c ${catalog.sgml} create"
    92     }
    93 
    94     # Create the openjade catalog file if it doesn't exist
    95     if {![file exists ${catalog.openjade}]} {
    96         system "xmlcatmgr -s -c ${catalog.openjade} create"
    97     }
    98 
    99     # Add the root catalog to openjade's catalog
    100     if {[catch {exec xmlcatmgr -s -c ${catalog.openjade} lookup ${catalog.sgml}}]} {
    101         system "xmlcatmgr -s -c ${catalog.openjade} add CATALOG ${catalog.sgml}"
    102     }
    103 
    104     # And add openjade's catalog to the root catalog
    105     if {[catch {exec xmlcatmgr -s -c ${catalog.sgml} lookup ${prefix}/share/sgml/openjade/catalog}]} {
    106         system "xmlcatmgr -s -c ${catalog.sgml} add CATALOG ${prefix}/share/sgml/openjade/catalog"
    107     }
    108 }
    109 
    110 # This will remove the catalog entry for this port.
    111 post-deactivate {
    112     # Remove the CATALOG entry from the catalog
    113     system "xmlcatmgr -s -c ${catalog.sgml} remove CATALOG ${prefix}/share/sgml/openjade/catalog"
    114 }