source: trunk/dports/textproc/xhtml1/Portfile

Last change on this file was 119133, checked in by pixilla@…, 3 years ago

textproc/xhtml1:

  • Use new PortGroup xmlcatalog. See #41708
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 119133 2014-04-17 22:40:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           xmlcatalog 1.0
6
7name                xhtml1
8version             2.0
9revision            1
10categories          textproc
11platforms           darwin
12maintainers         nomaintainer
13supported_archs     noarch
14description         A reformulation of HTML 4 in XML 1.0
15long_description \
16    The Second Edition of XHTML 1.0, a reformulation \
17    of HTML 4 as an XML 1.0 application, and three DTDs \
18    corresponding to the ones defined by HTML 4. \
19    These DTDs are useful for validating or processing \
20    world wide web pages with XML tools.
21homepage            http://www.w3.org/TR/xhtml1/
22master_sites        http://www.w3.org/TR/xhtml1/
23
24dist_subdir         ${name}/${version}
25distfiles           ${name}.tgz
26worksrcdir          ${name}-20020801
27
28checksums           sha1    6fb14e70047f4b56681cd64032ca5ec5eb9396cd \
29                    rmd160  923b346b4cd7e2fac147692c95abca93cacfc828
30
31depends_run         port:xmlcatmgr
32
33use_configure       no
34build               {}
35
36set instdir         share/xml/html/4
37
38xml.entity "-//W3C//DTD XHTML 1.0 Strict//EN" "${prefix}/${instdir}/xhtml1-strict.dtd"
39xml.entity "-//W3C//DTD XHTML 1.0 Transitional//EN" "${prefix}/${instdir}/xhtml1-transitional.dtd"
40xml.entity "-//W3C//DTD XHTML 1.0 Frameset//EN" "${prefix}/${instdir}/xhtml1-frameset.dtd"
41xml.entity "-//W3C//ENTITIES Latin 1 for XHTML//EN" "${prefix}/${instdir}/xhtml-lat1.ent"
42xml.entity "-//W3C//ENTITIES Special for XHTML//EN" "${prefix}/${instdir}/xhtml-special.ent"
43xml.entity "-//W3C//ENTITIES Symbols for XHTML//EN" "${prefix}/${instdir}/xhtml-symbol.ent"
44
45xml.rewrite System "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
46xml.rewrite System "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
47xml.rewrite URI "http://www.w3.org/TR/xhtml1/DTD/" "${prefix}/${instdir}/"
48xml.rewrite URI "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/" "${prefix}/${instdir}/"
49
50destroot {
51    xinstall -m 755 -d ${destroot}${prefix}/${instdir}
52    xinstall -m 644 -W ${worksrcpath}/DTD/ xhtml.soc xhtml-lat1.ent xhtml-special.ent xhtml-symbol.ent xhtml1-frameset.dtd xhtml1-strict.dtd xhtml1-transitional.dtd xhtml1.dcl ${destroot}${prefix}/${instdir}
53}
54
55if {${registry.format} == "receipt_flat"} {
56    notes \
57"######################################################################
58# As the flat registry format does not support post-deactivate hooks,
59# you will need to ensure that you manually remove the catalog
60# entres for this port when you uninstall it.  To do so, run
61# \"xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Strict//EN'\"
62# \"xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Transitional//EN'\"
63# \"xmlcatmgr remove public '-//W3C//DTD XHTML 1.0 Frameset//EN'\"
64# \"xmlcatmgr remove public '-//W3C//ENTITIES Latin 1 for XHTML//EN'\"
65# \"xmlcatmgr remove public '-//W3C//ENTITIES Special for XHTML//EN'\"
66# \"xmlcatmgr remove public '-//W3C//ENTITIES Symbols for XHTML//EN'\"
67# \"xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/xhtml1/DTD/'\"
68# \"xmlcatmgr remove rewriteSystem 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'\"
69# \"xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/xhtml1/DTD/'\"
70# \"xmlcatmgr remove rewriteURI 'http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/'\"
71######################################################################"
72}
73
74livecheck.type      none
Note: See TracBrowser for help on using the repository browser.