Package: libxml2 Version: 2.6.27 Revision: 2 Maintainer: The Gnome Core Team Depends: %N-bin (= %v-%r), %N-shlibs (= %v-%r), pkgconfig (>= 0.20-1) BuildDepends: fink (>= 0.24.12-1), libiconv-dev, libncurses5, readline5 Source: mirror:gnome:sources/%n/2.6/%n-%v.tar.bz2 Source-MD5: 3617f7dc07534025a4898f2b62fb46df PatchFile: %n.patch PatchFile-MD5: 709894e4c9b52ed2dd93a2ff00a4c254 PatchScript: << 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` << SetLDFLAGS: -no-undefined ConfigureParams: --mandir=%p/share/man --with-iconv=%p --without-python --disable-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 << 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.%v.dylib lib/libxml2.2.dylib Shlibs: %p/lib/libxml2.2.dylib 9.0.0 %n (>= 2.6.1-1) DocFiles: Copyright README << SplitOff2: << Package: %N-bin Depends: %N-shlibs (>= %v-%r), libncurses5-shlibs, readline5-shlibs 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 << License: LGPL Homepage: http://www.xmlsoft.org/