[25245] trunk/dports/python/py-libxml2
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 16 05:46:27 PDT 2007
Revision: 25245
http://trac.macosforge.org/projects/macports/changeset/25245
Author: sfiera at macports.org
Date: 2007-05-16 05:46:27 -0700 (Wed, 16 May 2007)
Log Message:
-----------
* Take maintainership
* Moving to python-specific package
* Version unbump 2.6.23 => 2.6.21 (current users need not reinstall)
* Add livecheck
Modified Paths:
--------------
trunk/dports/python/py-libxml2/Portfile
Added Paths:
-----------
trunk/dports/python/py-libxml2/files/
trunk/dports/python/py-libxml2/files/patch-setup.py.diff
Modified: trunk/dports/python/py-libxml2/Portfile
===================================================================
--- trunk/dports/python/py-libxml2/Portfile 2007-05-16 12:46:22 UTC (rev 25244)
+++ trunk/dports/python/py-libxml2/Portfile 2007-05-16 12:46:27 UTC (rev 25245)
@@ -4,32 +4,39 @@
PortGroup python24 1.0
name py-libxml2
-version 2.6.23
+version 2.6.21
categories python textproc
platforms darwin
-maintainers nomaintainer at macports.org
+maintainers sfiera at macports.org
description Python bindings for libxml2
long_description ${description}
homepage http://xmlsoft.org/
-master_sites gnome:sources/libxml2/2.6/ ftp://xmlsoft.org/
-distname libxml2-${version}
-checksums md5 e98018a6b562f1fa454e705dde2269de
-use_bzip2 yes
+master_sites ftp://xmlsoft.org/libxml2/python/
+distname libxml2-python-${version}
+checksums md5 229dd2b3d110a77defeeaa73af83f7f3
+patchfiles patch-setup.py.diff
-dist_subdir libxml2
-
depends_lib-append port:libxml2 \
- port:zlib
+ port:zlib
-extract.post_args "| tar -xf - ${distname}/python ${distname}/doc/libxml2-api.xml"
+build.env LDFLAGS=-L${prefix}/lib
-worksrcdir ${distname}/python
-
-build.env CFLAGS="-I${prefix}/include/libxml2" \
- LDFLAGS=-L${prefix}/lib
-
post-destroot {
- xinstall -m 644 -W ${worksrcpath} README TODO \
- ${destroot}${prefix}/share/doc/${name}
+ # strip out anything related to libxslt, so py-libxml2 doesn't conflict with
+ # py-libxslt
+ cd ${destroot}
+ fs-traverse file . {
+ if {[file isfile ${file}]} {
+ if {[string match "*xslt*" ${file}]} {
+ file delete ${file}
+ }
+ }
+ }
+ xinstall -m 644 -W ${worksrcpath} README TODO \
+ ${destroot}${prefix}/share/doc/${name}
}
+
+livecheck.check md5
+livecheck.url ftp://xmlsoft.org/libxml2/python/
+livecheck.md5 a2cc31311f1b3fb52a08cf1056efda11
Added: trunk/dports/python/py-libxml2/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-libxml2/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-libxml2/files/patch-setup.py.diff 2007-05-16 12:46:27 UTC (rev 25245)
@@ -0,0 +1,24 @@
+--- setup.py 2005-09-04 19:12:47.000000000 -0400
++++ setup.py.new 2007-05-16 07:46:02.000000000 -0400
+@@ -56,11 +56,7 @@
+ # - iconv.h
+ # - libxslt/xsltconfig.h
+ includes_dir = [
+-"/usr/include",
+-"/usr/local/include",
+-"/opt/include",
+-os.path.join(ROOT,'include'),
+-HOME
++"/opt/local/include",
+ ];
+
+ xml_includes=""
+@@ -85,7 +81,7 @@
+
+ # those are added in the linker search path for libraries
+ libdirs = [
+-os.path.join(ROOT,'lib'),
++"/opt/local/lib"
+ ]
+
+ xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070516/f33427ef/attachment.html
More information about the macports-changes
mailing list