Update of /cvsroot/fink/experimental/gnome/2.5/main/finkinfo/libs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18899/2.5/main/finkinfo/libs

Added Files:
        libxml2.info libxml2.patch libxslt.info libxslt.patch 
Log Message:
Start of GNOME 2.5.x


--- NEW FILE: libxml2.info ---
Package: libxml2
Version: 2.6.6
Revision: 3
Maintainer: The Gnome Core Team <[EMAIL PROTECTED]>
Depends: %N-shlibs (>= %v-%r), %N-bin
BuildDepends: libiconv-dev
Source: mirror:gnome:sources/%n/2.6/%n-%v.tar.bz2
Source-MD5: 4aa5c05a92302b50d9a87e7c84527a8e
PatchScript: <<
  sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
  perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
<<
NoSetLDFLAGS: true
ConfigureParams: --mandir='${prefix}/share/man' --with-iconv=%p --without-python
InstallScript: <<
 make install prefix=%i
 mkdir -p %i/etc/xml
 mkdir -p %i/share/doc
 mv %i/share/doc/%n-%v %i/share/doc/%n
 mkdir -p %i/sbin
 install -c -m 755 update-xml-catalog %i/sbin/
 install -c -m 755 update-sgml-catalog %i/sbin/
<<
DocFiles: AUTHORS Copyright NEWS README TODO
BuildDependsOnly: True
SplitOff: <<
  Package: %N-shlibs
  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.6-1)
  DocFiles: Copyright README
<<
SplitOff2: <<
  Package: %N-bin
  Depends: %N-shlibs (>= %v-%r)
  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)
        update-xml-catalog
        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
DescPort: <<
The Makefile is too stupid to link the executables against the right
copy of the library, so we help by setting LDFLAGS.
<<
DescPackaging: <<
Uses pkgconfig, but there are no pkgconfig-related dependencies.

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.

Makefile.in is patched to not set LDFLAGS to avoid linking problems when an older
version of libxml2 is already installed while building.

Libtool gets patched to fix bundle (loadable module, .so file) building.

Previous versions by Christoph Pfisterer <[EMAIL PROTECTED]>
<<
License: LGPL
Homepage: http://www.xmlsoft.org/

--- NEW FILE: libxml2.patch ---
diff -Naur libxml2-2.6.4-old/catalog.c libxml2-2.6.4/catalog.c
--- libxml2-2.6.4-old/catalog.c Sat Nov 15 09:31:22 2003
+++ libxml2-2.6.4/catalog.c     Thu Feb  5 09:04:10 2004
@@ -62,10 +62,10 @@
 #define XML_URN_PUBID "urn:publicid:";
 #define XML_CATAL_BREAK ((xmlChar *) -1)
 #ifndef XML_XML_DEFAULT_CATALOG
-#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
+#define XML_XML_DEFAULT_CATALOG "file:///sw/etc/xml/catalog"
 #endif
 #ifndef XML_SGML_DEFAULT_CATALOG
-#define XML_SGML_DEFAULT_CATALOG "file:///etc/sgml/catalog"
+#define XML_SGML_DEFAULT_CATALOG "file:///sw/etc/sgml/catalog"
 #endif
 
 static int xmlExpandCatalog(xmlCatalogPtr catal, const char *filename);
diff -Naur libxml2-2.6.4-old/doc/xmllint.1 libxml2-2.6.4/doc/xmllint.1
--- libxml2-2.6.4-old/doc/xmllint.1     Fri Sep 26 09:18:41 2003
+++ libxml2-2.6.4/doc/xmllint.1 Thu Feb  5 09:04:10 2004
@@ -160,7 +160,7 @@
 
 .TP
 \fB--catalogs\fR
-Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog is used by 
default.
+Use the catalogs from $SGML_CATALOG_FILES. Otherwise /sw/etc/xml/catalog is used by 
default.
 
 .TP
 \fB--nocatalogs\fR
diff -Naur libxml2-2.6.4-old/ltmain.sh libxml2-2.6.4/ltmain.sh
--- libxml2-2.6.4-old/ltmain.sh Wed Dec 24 06:53:01 2003
+++ libxml2-2.6.4/ltmain.sh     Thu Feb  5 09:04:10 2004
@@ -2211,7 +2211,7 @@
           { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
          if test "$installed" = no; then
            notinst_deplibs="$notinst_deplibs $lib"
-           need_relink=yes
+           need_relink=no
          fi
          # This is a shared library
        
diff -Naur libxml2-2.6.4-old/update-sgml-catalog libxml2-2.6.4/update-sgml-catalog
--- libxml2-2.6.4-old/update-sgml-catalog       Wed Dec 31 19:00:00 1969
+++ libxml2-2.6.4/update-sgml-catalog   Thu Feb  5 09:04:10 2004
@@ -0,0 +1,28 @@
+#!/bin/sh -e
+#
+# update-sgml-catalog
+# see DescPackaging field of libxml2 .info file for usage.
+#
+
+CATALOG=/sw/etc/sgml/catalog
+CATALOG_D=/sw/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 -Naur libxml2-2.6.4-old/update-xml-catalog libxml2-2.6.4/update-xml-catalog
--- libxml2-2.6.4-old/update-xml-catalog        Wed Dec 31 19:00:00 1969
+++ libxml2-2.6.4/update-xml-catalog    Thu Feb  5 09:04:10 2004
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+#
+# update-xml-catalog
+# see DescPackaging field of libxml2 .info file for usage.
+#
+
+CATALOG=/sw/etc/xml/catalog
+CATALOG_D=/sw/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
diff -Naur libxml2-2.6.4-old/xmlcatalog.c libxml2-2.6.4/xmlcatalog.c
--- libxml2-2.6.4-old/xmlcatalog.c      Fri Dec 12 09:54:53 2003
+++ libxml2-2.6.4/xmlcatalog.c  Thu Feb  5 09:04:10 2004
@@ -42,7 +42,7 @@
 
 
 #ifndef XML_SGML_DEFAULT_CATALOG
-#define XML_SGML_DEFAULT_CATALOG "/etc/sgml/catalog"
+#define XML_SGML_DEFAULT_CATALOG "/sw/etc/sgml/catalog"
 #endif
 
 /************************************************************************
diff -Naur libxml2-2.6.4-old/xmllint.c libxml2-2.6.4/xmllint.c
--- libxml2-2.6.4-old/xmllint.c Wed Dec 10 05:16:04 2003
+++ libxml2-2.6.4/xmllint.c     Thu Feb  5 09:04:10 2004
@@ -94,7 +94,7 @@
 #endif
 
 #ifndef XML_XML_DEFAULT_CATALOG
-#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
+#define XML_XML_DEFAULT_CATALOG "file:///sw/etc/xml/catalog"
 #endif
 
 #ifdef LIBXML_DEBUG_ENABLED

--- NEW FILE: libxslt.info ---
Package: libxslt
Version: 1.1.3
Revision: 3
Maintainer: The Gnome Core Team <[EMAIL PROTECTED]>
BuildDepends: gdbm3, gmp, libxml2 (>= 2.6.6-1), libiconv-dev
DescPackaging: <<
  Uses pkgconfig.
  Any package which BuildDepends on this one must also BuildDepend on:
    libxml2 (>= 2.6.6-1)
  <<
Depends: %N-shlibs (= %v-%r)
Source: mirror:gnome:sources/%n/1.1/%n-%v.tar.bz2
Source-MD5: 1eb31a7c0933f438365ce6bf99e95234
Replaces: %N (<< 1.0.15-2)
Patch: %n.patch
PatchScript: perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure
NoSetLDFLAGS: true
SetLIBS: -L%p/lib
NoSetCFLAGS: true
SetCPPFLAGS: -I%p/include
ConfigureParams: --mandir='${prefix}/share/man' --without-python
InstallScript: <<
 mkdir -p %i/share/doc
 make install prefix=%i
 mv %i/share/doc/%n-%v %i/share/doc/%n
<<
DocFiles: README COPYING AUTHORS ChangeLog Copyright FEATURES NEWS TODO
SplitOff: <<
 Package: %N-shlibs
 Replaces: %N (<< 1.0.15-2)
 Depends: libxml2-shlibs (>= 2.6.0-1)
 Description: XML stylsheet transformation shared libraries
 Files: lib/libexslt.0*.dylib lib/libxslt.1*.dylib
 Shlibs: <<
  %p/lib/libexslt.0.dylib 9.0.0 %n (>= 1.1.0-1)
  %p/lib/libxslt.1.dylib 3.0.0 %n (>= 1.1.0-1)
 <<
 DocFiles: COPYING AUTHORS Copyright
<<
Description: XML stylesheet transformation library
License: GPL/LGPL
Homepage: http://www.xmlsoft.org/XSLT/

--- NEW FILE: libxslt.patch ---
diff -Naur libxslt-1.1.2-old/configure libxslt-1.1.2/configure
--- libxslt-1.1.2-old/configure Wed Dec 24 09:15:33 2003
+++ libxslt-1.1.2/configure     Thu Feb  5 10:33:02 2004
@@ -9446,7 +9446,7 @@
     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in 
older darwin ld's
                  archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e 
"s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC 
-dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags 
-install_name $rpath/$soname $verstring~nmedit -s 
$output_objdir/${libname}-symbols.expsym ${lib}'
                  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e 
"s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC 
-bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s 
$output_objdir/${libname}-symbols.expsym ${lib}'
-    hardcode_direct=no
+    hardcode_direct=yes
     hardcode_automatic=yes
     hardcode_shlibpath_var=unsupported
     whole_archive_flag_spec='-all_load $convenience'



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to