the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: libxslt-py%type_pkg[python]
Version: 1.1.26
Revision: 1
Maintainer: Daniel Macks
Type: python (2.5 2.6 2.7)
Depends: <<
libiconv,
libxslt-shlibs (>= %v-1),
libxml2-py%type_pkg[python] (>= 2.7.8-1),
libxml2-shlibs (>= 2.7.8-1),
python%type_pkg[python]
<<
BuildDepends: <<
fink (>= 0.24.12-1),
fink-package-precedence,
libiconv-dev,
libxslt (>= %v-1),
libxml2 (>= 2.7.8-1)
<<
#Source: mirror:gnome:sources/libxslt/1.1/libxslt-%v.tar.bz2
Source: http://xmlsoft.org/sources/libxslt-%v.tar.gz
Source-MD5: e61d0364a30146aaa3001296f853b2b9
PatchFile: %{ni}.patch
PatchFile-MD5: 97924920dfd65afc1d4aacb3ef578c24
PatchScript: <<
%{default_script}
perl -pi -e 's/MAKEFLAGS\+=--silent//' `find . -name Makefile.in`
<<
ConfigureParams: --mandir=%p/share/man --with-python=%p/bin/python%type_raw[python] --without-crypto --disable-static --enable-dependency-tracking
CompileScript: <<
./configure %c
make -C python
make -C python tests
fink-package-precedence .
<<
InstallScript: <<
make -C python install DESTDIR=%d DOCS_DIR=%p/share/doc/%n EXAMPLE_DIR=%p/share/doc/%n/examples
%p/bin/python%type_raw[python] %p/lib/python%type_raw[python]/compileall.py -d %p/lib/python%type_raw[python] %i/lib/python%type_raw[python]
<<
DocFiles: AUTHORS COPYING ChangeLog Copyright FEATURES NEWS README
Description: Python bindings for libxslt library
DescPackaging: <<
Patch python module makefiles to use installed libxslt not locally-built
See: http://bugzilla.gnome.org/show_bug.cgi?id=341292
Uses libxml2 directly, so make sure to link against it.
<<
DescPort: <<
Doesn't use the automake piece that compiles .py -> .pyc, so do it
manually in IntallScript.
Same as: http://bugzilla.gnome.org/show_bug.cgi?id=460113
<<
License: BSD
Homepage: http://www.xmlsoft.org/XSLT/
<<
diff -Nurd -x'*~' libxslt-1.1.26.orig/python/Makefile.in libxslt-1.1.26/python/Makefile.in
--- libxslt-1.1.26.orig/python/Makefile.in 2009-09-24 10:43:14.000000000 -0400
+++ libxslt-1.1.26/python/Makefile.in 2011-03-10 10:29:36.000000000 -0500
@@ -67,7 +67,6 @@
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__installdirs = "$(DESTDIR)$(pythondir)"
LTLIBRARIES = $(python_LTLIBRARIES)
-@WITH_PYTHON_TRUE@libxsltmod_la_DEPENDENCIES = $(mylibs)
am__libxsltmod_la_SOURCES_DIST = libxslt.c types.c libxslt-py.c
@WITH_PYTHON_TRUE@am_libxsltmod_la_OBJECTS = libxslt.lo types.lo \
@WITH_PYTHON_TRUE@ libxslt-py.lo
@@ -76,7 +75,7 @@
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libxsltmod_la_LDFLAGS) $(LDFLAGS) -o $@
@WITH_PYTHON_TRUE@am_libxsltmod_la_rpath = -rpath $(pythondir)
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
@@ -311,10 +310,7 @@
SUBDIRS = . tests
INCLUDES = \
-I$(PYTHON_INCLUDES) \
- $(LIBXML_CFLAGS) \
- -I$(top_srcdir)/libxslt \
- -I$(top_srcdir) \
- -I../libexslt
+ $(LIBXML_CFLAGS)
DOCS_DIR = $(datadir)/doc/libxslt-python-$(LIBXSLT_VERSION)
# libxsltclass.txt is generated
@@ -331,8 +327,7 @@
libxsltmod_la_LDFLAGS = $(WIN32_EXTRA_LDFLAGS) -module -avoid-version
@WITH_PYTHON_TRUE@mylibs = \
-@WITH_PYTHON_TRUE@ $(top_builddir)/libxslt/libxslt.la \
-@WITH_PYTHON_TRUE@ $(top_builddir)/libexslt/libexslt.la
+@WITH_PYTHON_TRUE@ -lxslt -lexslt $(LIBXML_LIBS)
@WITH_PYTHON_TRUE@python_LTLIBRARIES = libxsltmod.la
@WITH_PYTHON_TRUE@libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c