xhtml-dtd stable port information

Package: xhtml-dtd
Version: 1.0
Revision: 2
Maintainer: Damien Pollet
BuildDepends: fink (>= 0.24.12)
Depends: libxml2-bin
Source: http://www.w3.org/TR/xhtml1/xhtml1.tgz
Source-MD5: 1fdad567eecb5deb8e32e3892cfe0074
Source2: http://www.w3.org/TR/xhtml11/xhtml11.tgz
Source2-MD5: 00c3fe896f3d29419dbda4186aa98fe1
NoSourceDirectory: true
PatchFile: %n.patch
PatchFile-MD5: b33c2fb090c33d8f98600a4fa85c7ce0
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: <<
echo 'Fink: No compilation phase needed'
<<
InstallScript: <<
mkdir -p %i/share/xml/dtd/xhtml

touch %i/share/xml/dtd/xhtml/catalog
echo 'CATALOG "1.0/xhtml.soc"' >> %i/share/xml/dtd/xhtml/catalog
echo 'CATALOG "1.1/xhtml11.cat"' >> %i/share/xml/dtd/xhtml/catalog

mkdir -p %i/share/xml/dtd/xhtml/1.0
mv xhtml1-20020801/DTD/* %i/share/xml/dtd/xhtml/1.0/
mkdir -p %i/share/xml/dtd/xhtml/1.1
mv xhtml11-20010531/DTD/* %i/share/xml/dtd/xhtml/1.1/

mkdir -p %i/etc/xml/catalog.d
cp xhtml-1.0-catalog %i/etc/xml/catalog.d/xhtml-1.0
cp xhtml-1.1-catalog %i/etc/xml/catalog.d/xhtml-1.1
mkdir -p %i/etc/sgml/catalog.d
touch %i/etc/sgml/catalog.d/xhtml
echo '"%p/share/xml/dtd/xhtml/catalog"' > %i/etc/sgml/catalog.d/xhtml

mkdir -p %i/share/doc/%n
head -n 27 %i/share/xml/dtd/xhtml/1.1/xhtml11.dtd > %i/share/doc/%n/COPYRIGHT
<<
PostInstScript: <<
case "$1" in
configure)
test -x %p/sbin/update-xml-catalog && update-xml-catalog
test -x %p/sbin/update-sgml-catalog && update-sgml-catalog
;;
esac
<<
PostRmScript: <<
case "$1" in
abort-install|purge|remove)
test -x %p/sbin/update-xml-catalog && update-xml-catalog
test -x %p/sbin/update-sgml-catalog && update-sgml-catalog
;;
esac
<<
Description: W3C XHTML DTDs official release
DescDetail: <<
XHTML is a family of current and future document types and modules
that reproduce, subset, and extend HTML. XHTML family document types
are XML based, and ultimately are designed to work in conjunction with
XML-based user agents.
<<
#DescUsage: <<
#<<
License: OSI-Approved
Homepage: http://www.w3.org/

xhtml-dtd stable port .patch

diff -Naur before/xhtml-1.0-catalog after/xhtml-1.0-catalog
--- before/xhtml-1.0-catalog Thu Jan 1 01:00:00 1970
+++ after/xhtml-1.0-catalog Tue Sep 7 16:42:32 2004
@@ -0,0 +1,23 @@
+# XHTML 1.0
+"public" \
+ "-//W3C//DTD XHTML 1.0 Strict//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml1-strict.dtd"
+"public" \
+ "-//W3C//DTD XHTML 1.0 Transitional//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml1-transitional.dtd"
+"public" \
+ "-//W3C//DTD XHTML 1.0 Frameset//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml1-frameset.dtd"
+"public" \
+ "-//W3C//ENTITIES Latin 1 for XHTML//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml-lat1.ent"
+"public" \
+ "-//W3C//ENTITIES Symbols for XHTML//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml-symbol.ent"
+"public" \
+ "-//W3C//ENTITIES Special for XHTML//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.0/xhtml-special.ent"
+
+# this is in the catalog file
+#OVERRIDE YES
+#SGMLDECL "xhtml1.dcl"
diff -Naur before/xhtml-1.1-catalog after/xhtml-1.1-catalog
--- before/xhtml-1.1-catalog Thu Jan 1 01:00:00 1970
+++ after/xhtml-1.1-catalog Tue Sep 7 20:40:10 2004
@@ -0,0 +1,11 @@
+# XHTML 1.1
+"public" \
+ "-//W3C//DTD XHTML 1.1//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.1/xhtml11-flat.dtd"
+"public" \
+ "-//W3C//ENTITIES XHTML 1.1 Document Model 1.0//EN" \
+ "file:///@PREFIX@/share/xml/dtd/xhtml/1.1/xhtml11-model-1.mod"
+
+# this is in the catalog file
+#OVERRIDE YES
+#SGMLDECL "xml1.dcl"

xhtml-dtd _unstable_ port .patch