[57531] trunk/dports/devel/opensync
takanori at macports.org
takanori at macports.org
Sat Sep 12 09:43:14 PDT 2009
Revision: 57531
http://trac.macports.org/changeset/57531
Author: takanori at macports.org
Date: 2009-09-12 09:43:14 -0700 (Sat, 12 Sep 2009)
Log Message:
-----------
opensync: switch to python 2.6
Modified Paths:
--------------
trunk/dports/devel/opensync/Portfile
trunk/dports/devel/opensync/files/patch-configure.diff
Modified: trunk/dports/devel/opensync/Portfile
===================================================================
--- trunk/dports/devel/opensync/Portfile 2009-09-12 16:42:42 UTC (rev 57530)
+++ trunk/dports/devel/opensync/Portfile 2009-09-12 16:43:14 UTC (rev 57531)
@@ -4,7 +4,7 @@
name opensync
version 0.22
-revision 2
+revision 3
categories devel
maintainers nomaintainer
description Synchronization framework
@@ -30,14 +30,17 @@
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:libiconv \
port:libxml2 \
- port:py25-gobject \
- port:py25-numeric \
- port:python25 \
+ port:py26-gobject \
+ port:py26-numeric \
+ port:python26 \
port:sqlite3 \
port:swig \
port:zlib
post-patch {
+ reinplace "s|__PYTHON_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
+ reinplace "s|__PYTHON_EXEC_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
+
fs-traverse f ${worksrcpath} {
if [string match "*/Makefile.in" ${f}] {
reinplace "s|-Werror||" ${f}
@@ -45,14 +48,12 @@
}
}
-configure.env PYTHON=${prefix}/bin/python2.5
-configure.args --disable-dependency-tracking --enable-python=2.5 --libexecdir=${prefix}/sbin
+configure.env PYTHON=${frameworks_dir}/Python.framework/Versions/2.6/bin/python2.6
+configure.args --disable-dependency-tracking --enable-python=2.6 --libexecdir=${prefix}/sbin
build.target
post-destroot {
- delete ${destroot}${prefix}/lib/python2.5/site-packages/opensync.pyc
-
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO ${destroot}${prefix}/share/doc/${name}
}
Modified: trunk/dports/devel/opensync/files/patch-configure.diff
===================================================================
--- trunk/dports/devel/opensync/files/patch-configure.diff 2009-09-12 16:42:42 UTC (rev 57530)
+++ trunk/dports/devel/opensync/files/patch-configure.diff 2009-09-12 16:43:14 UTC (rev 57531)
@@ -1,5 +1,17 @@
--- ./configure.orig 2007-03-27 21:21:55.000000000 +0900
-+++ ./configure 2008-12-08 03:59:47.000000000 +0900
++++ ./configure 2009-09-13 01:03:17.000000000 +0900
+@@ -21787,9 +21787,9 @@
+
+
+
+- PYTHON_PREFIX='${prefix}'
++ PYTHON_PREFIX=__PYTHON_PREFIX__
+
+- PYTHON_EXEC_PREFIX='${exec_prefix}'
++ PYTHON_EXEC_PREFIX=__PYTHON_EXEC_PREFIX__
+
+
+
@@ -22040,13 +22040,7 @@
{ echo "$as_me:$LINENO: checking for Python library path" >&5
echo $ECHO_N "checking for Python library path... $ECHO_C" >&6; }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090912/0264e179/attachment.html>
More information about the macports-changes
mailing list