tclexpat stable port information

Package: tclexpat
Version: 2.6
Revision: 13
Description: XML/expat parsing routines for Tcl scripts
DescPort: <<
There's something weird with file locations between the parent
directory and this one.

The installed headers have generic names so move them into a subdir in
include/ so not conflict with other packages (or be accidentally
loaded in preference to other subdirs). To build against this package,
pass a -I%p/include/%n to your compiler.

This compiles a shared library but does not set the compatibility
version info, nor does it install a .la or the full set of versioned
and versionless links for .dylib files. The whole thing goes in a
private place in lib/ so not going to fix this nor make a -shlibs.
<<
Homepage: http://www.garshol.priv.no/download/xmltools/prod/tclexpat.html
License: GPL
Maintainer: Daniel Macks
Depends: tcltk (>= 8.3-1), tcllib (>= 1.2-1), tclxml
BuildDepends: tclxml-dev, tcltk-dev (>= 8.3-1), fink (>= 0.28-1)
BuildConflicts: lclint
# lclint installs %p/lib/Makefile, which leads configure to believe
# it is using tcltk from tcltk's builddir, hence failure
Source: mirror:sourceforge:tclxml/tclxml-%v.tar.gz
Source-MD5: a54d1d6965e2123529e80d2a7ed251ec
PatchFile: %n.patch
PatchFile-MD5: aed2105b57db51d73eda19c8d5108c57
PatchScript: <<
%{default_script}
cd expat; ln -s ../tclexpat.c .
<<
ConfigureParams: --enable-shared --with-tcl=%p/lib --with-Tclxml=%p/lib
SetCPPFLAGS: -I..
CompileScript: <<
cd expat; ./configure %c
cd expat; make
<<
InstallScript: <<
cd expat; make install DESTDIR=%d
mkdir -m 0755 %i/include/%n
mv %i/include/*.h %i/include/%n
<<
DocFiles: expat/expat.html
Shlibs: !%p/lib/Tclexpat2.6/libTclexpat2.6.dylib
SplitOff: <<
Package: %N-dev
Replaces: %N (<< 2.6-11)
BuildDependsOnly: true
Files: include
DocFiles: expat/expat.html
<<

tclexpat stable port .patch

diff -Nurd -x'*~' tclxml-3.1.orig/expat/Makefile.in tclxml-3.1/expat/Makefile.in
--- tclxml-3.1.orig/expat/Makefile.in 2002-10-09 17:17:21.000000000 -0400
+++ tclxml-3.1/expat/Makefile.in 2009-07-31 15:35:21.000000000 -0400
@@ -143,7 +143,7 @@
RANLIB = @RANLIB@
SHLIB_CFLAGS = @SHLIB_CFLAGS@
SHLIB_LD = @SHLIB_LD@
-SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
+SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ -install_name ${pkglibdir}/$@
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
STLIB_LD = @STLIB_LD@
TCL_DEFS = @TCL_DEFS@

tclexpat _unstable_ port .patch