the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libxml2
Version: 2.7.8
Revision: 202
Maintainer: The Gnome Core Team
Depends: %N-bin (= %v-%r), %N-shlibs (= %v-%r), pkgconfig (>= 0.23)
BuildDepends: <<
fink (>= 0.24.12-1),
fink-package-precedence,
libiconv-dev,
libncurses5 (>= 5.4-20041023-1006),
readline5 (>= 5.0-1004)
<<
#Source: mirror:gnome:sources/%n/2.6/%n-%v.tar.bz2
Source: http://xmlsoft.org/sources/%n-%v.tar.gz
Source-MD5: 8127a65e8c3b08856093099b52599c86
PatchFile: %n.patch
PatchFile-MD5: 51675f66115d7ab64a5bf04ffbc455f7
PatchScript: <<
#!/bin/sh -ev
sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
perl -pi -e 's|/etc|%p/etc|g' catalog.c doc/catalog.html doc/guidelines.html doc/xml.html doc/xmlcatalog.1 doc/xmlcatalog_man.html doc/xmlcatalog_man.xml doc/xmllint.1 doc/xmllint.html runtest.c xmlcatalog.c doc/xmllint.xml
perl -pi -e 's/MAKEFLAGS\+=--silent//' `find . -name Makefile.in`
rm test/ebcdic_566012.xml
<<
SetLDFLAGS: -no-undefined
ConfigureParams: --mandir=%p/share/man --with-iconv=%p --without-python --enable-dependency-tracking --with-html-dir=%p/share/doc --with-html-subdir=%n --with-history
CompileScript: <<
## Work around a missing xhtml-dtd in catalog
## which obviously cannot be in
## and xmllint --nonet to rebuild the doc which
## makes vanish index.html
cp doc/index.html doc/index1.html
XMLLINT=/usr/bin/true XSLTPROC=/usr/bin/true ./configure %c
make
rm -f doc/index.html
mv doc/index1.html doc/index.html
fink-package-precedence --prohibit-bdep=%n .
<<
InfoTest: TestScript: make check || exit 2
InstallScript: <<
make install DESTDIR=%d DOC_MODULE=%n
mkdir -p %i/etc/xml/catalog.d
mkdir -p %i/etc/sgml/catalog.d
mkdir -p %i/sbin
install -c -m 755 update-xml-catalog %i/sbin/
install -c -m 755 update-sgml-catalog %i/sbin/
<<
DocFiles: AUTHORS ChangeLog COPYING Copyright NEWS README TODO TODO_SCHEMAS
BuildDependsOnly: True
SplitOff: <<
Package: %N-shlibs
Depends: libiconv
Replaces: libxml2 (<< 2.4.18-2)
Suggests: %N-bin
Files: lib/libxml2.2.dylib
Shlibs: %p/lib/libxml2.2.dylib 10.0.0 %n (>= 2.7.7-1)
DocFiles: Copyright README
<<
SplitOff2: <<
Package: %N-bin
Depends: %N-shlibs (>= %v-%r), libncurses5-shlibs (>= 5.4-20041023-1006), readline5-shlibs (>= 5.0-1004)
Replaces: libxml2 (<< 2.4.18-2)
Files: bin/xmlcatalog bin/xmllint sbin share/man/man1/xmlcatalog.1 share/man/man1/xmllint.1 etc/xml
DocFiles: Copyright README
RuntimeVars: <<
SGML_CATALOG_FILES: %p/etc/sgml/catalog
XML_CATALOG_FILES: %p/etc/xml/catalog
<<
PostInstScript: <<
case "$1" in
configure)
export SGML_CATALOG_FILES=%p/etc/sgml/catalog
export XML_CATALOG_FILES=%p/etc/xml/catalog
%p/sbin/update-xml-catalog
%p/sbin/update-sgml-catalog
;;
esac
<<
PostRmScript: <<
case "$1" in
abort-install|purge|remove)
rm -f %p/etc/xml/catalog
rm -f %p/etc/sgml/catalog
;;
esac
<<
<<
Description: XML parsing library, version 2
DescDetail: <<
This set of packages does *not* contain the python bindings. Those
are in libxml2-pyXX for various pythonX.X versions.
<<
DescPort: <<
Hide xmllint and xsltproc executables from ./configure to avoid
circular dependencies (on libxml2-bin (build here) and libxslt-bin
(depends on libxml2)) and network access during build. Fortunately,
these executables are only used to build docs that already come
prebuilt (we patch the targets instead of patching sources and
rebuilding).
Packages prior to 2.6.22-1 did not use --with-history, so they did
not need readline or ncurses. Now it does, but these libs are only
used for the -bin programs not the -shlibs libs. So no new flags in
.la or .pc, so no dependency and rebuilding nightmare for dependent
packages. Hooray!
Rebuild the doc/examples/index.html not present in the tarball
Changed the installation to avoid examples overriding top level
of doc.
<<
DescPackaging: <<
libxml2 uses XML/SGML super catalog to know location of DTDs installed on
local system. They are managed by update-xml-catalog and update-sgml-catalog
script. Each package that provides DTDs should also provide configuration
file(s) for these script and call them within Pre/PostInstScript.
When update-xml-catalog is called, it reads every configuration file belongs
to %p/etc/xml/catalog.d/. Each line of them contain 3 fields, TYPE, ORIG and
REPLACE, correspond to arguments of `xmlcatalog --add'. See xmlcatalog(1) for
detail.
Also, update-sgml-catalog reads every configuration file belongs to %p/etc/
sgml/catalog.d/ when it is called. Each line of them contain only 1 field,
reference to other SGML catalog file.
Previous versions by Christoph Pfisterer
disable the self-test of ebcdic handling because GNU
libiconv doesn't support ebcdic. See:
https://bugzilla.gnome.org/show_bug.cgi?id=603432
<<
License: BSD
Homepage: http://www.xmlsoft.org/
diff -Nurd -x'*~' libxml2-2.7.8.orig/doc/Makefile.in libxml2-2.7.8/doc/Makefile.in
--- libxml2-2.7.8.orig/doc/Makefile.in 2010-11-04 13:28:16.000000000 -0400
+++ libxml2-2.7.8/doc/Makefile.in 2010-11-04 22:30:04.000000000 -0400
@@ -849,7 +849,7 @@
install-data-local:
@MKDIR_P@ $(DESTDIR)$(HTML_DIR)
- -@INSTALL@ -m 0644 $(srcdir)/xml.html $(srcdir)/encoding.html $(srcdir)/FAQ.html $(srcdir)/structure.gif $(srcdir)/DOM.gif $(srcdir)/smallfootonly.gif $(srcdir)/redhat.gif $(srcdir)/libxml.gif $(srcdir)/w3c.png $(srcdir)/Libxml2-Logo-180x168.gif $(srcdir)/Libxml2-Logo-90x34.gif $(DESTDIR)$(HTML_DIR)
+ -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.gif $(srcdir)/*.png $(srcdir)/libxml2-api.xml $(DESTDIR)$(HTML_DIR)
@MKDIR_P@ $(DESTDIR)$(HTML_DIR)/html
-@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(HTML_DIR)/html
-@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(HTML_DIR)/html
diff -Nurd -x'*~' libxml2-2.7.8.orig/doc/examples/Makefile.in libxml2-2.7.8/doc/examples/Makefile.in
--- libxml2-2.7.8.orig/doc/examples/Makefile.in 2010-11-04 13:28:16.000000000 -0400
+++ libxml2-2.7.8/doc/examples/Makefile.in 2011-01-04 11:52:34.000000000 -0500
@@ -781,17 +781,19 @@
tags uninstall uninstall-am
+all: rebuild
+
rebuild: examples.xml index.html
examples.xml: index.py *.c
-@($(srcdir)/index.py)
index.html: examples.xml examples.xsl
- -@(xsltproc examples.xsl examples.xml && echo "Rebuilt web page" && xmllint --valid --noout index.html)
+ -@(xsltproc --nonet examples.xsl examples.xml && echo "Rebuilt web page")
install-data-local:
- @MKDIR_P@ $(DESTDIR)$(HTML_DIR)
- -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
+ @MKDIR_P@ $(DESTDIR)$(HTML_DIR)/examples
+ -@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)/examples
valgrind:
$(MAKE) CHECKER='valgrind' tests
diff -Nurd -x'*~' libxml2-2.7.8.orig/update-sgml-catalog libxml2-2.7.8/update-sgml-catalog
--- libxml2-2.7.8.orig/update-sgml-catalog 1969-12-31 19:00:00.000000000 -0500
+++ libxml2-2.7.8/update-sgml-catalog 2010-11-04 22:31:15.000000000 -0400
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+#
+# update-sgml-catalog
+# see DescPackaging field of libxml2 .info file for usage.
+#
+
+CATALOG=@PREFIX@/etc/sgml/catalog
+CATALOG_D=@PREFIX@/etc/sgml/catalog.d
+
+mkdir -p ${CATALOG_D}
+
+TMPFILE=`tempfile`
+
+if [ "`echo ${CATALOG_D}/*`" != "${CATALOG_D}/*" ]; then
+ cat ${CATALOG_D}/* | sed 's/#.*$//g' | {
+ while read cat; do
+ if [ -z "${cat}" ]; then
+ continue
+ fi
+ echo CATALOG ${cat} >>${TMPFILE}
+ done
+ }
+fi
+
+mv -f ${TMPFILE} ${CATALOG}
+chmod 0644 ${CATALOG}
+
+exit 0
diff -Nurd -x'*~' libxml2-2.7.8.orig/update-xml-catalog libxml2-2.7.8/update-xml-catalog
--- libxml2-2.7.8.orig/update-xml-catalog 1969-12-31 19:00:00.000000000 -0500
+++ libxml2-2.7.8/update-xml-catalog 2010-11-04 22:31:15.000000000 -0400
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+#
+# update-xml-catalog
+# see DescPackaging field of libxml2 .info file for usage.
+#
+
+CATALOG=@PREFIX@/etc/xml/catalog
+CATALOG_D=@PREFIX@/etc/xml/catalog.d
+
+mkdir -p ${CATALOG_D}
+
+TMPFILE=`tempfile`
+xmlcatalog --create >>${TMPFILE}
+
+if [ "`echo ${CATALOG_D}/*`" != "${CATALOG_D}/*" ]; then
+ cat ${CATALOG_D}/* | sed 's/#.*$//g' | {
+ while read type orig replace; do
+ if [ -z "${type}" -o -z "${orig}" -o -z "${replace}" ]; then
+ continue
+ fi
+ eval xmlcatalog --noout --add ${type} ${orig} ${replace} ${TMPFILE}
+ done
+ }
+fi
+
+mv -f ${TMPFILE} ${CATALOG}
+chmod 0644 ${CATALOG}
+
+exit 0