[57445] trunk/dports/python

blb at macports.org blb at macports.org
Fri Sep 11 00:46:25 PDT 2009


Revision: 57445
          http://trac.macports.org/changeset/57445
Author:   blb at macports.org
Date:     2009-09-11 00:46:20 -0700 (Fri, 11 Sep 2009)
Log Message:
-----------
New port - python/py26-svn, Python Subversion Extension

Modified Paths:
--------------
    trunk/dports/python/py26-svn/Portfile

Added Paths:
-----------
    trunk/dports/python/py26-svn/
    trunk/dports/python/py26-svn/files/patch-Source_setup_configure.py.diff

Removed Paths:
-------------
    trunk/dports/python/py26-svn/files/patch-setup.py

Modified: trunk/dports/python/py26-svn/Portfile
===================================================================
--- trunk/dports/python/py-svn/Portfile	2009-09-10 20:47:50 UTC (rev 57409)
+++ trunk/dports/python/py26-svn/Portfile	2009-09-11 07:46:20 UTC (rev 57445)
@@ -1,12 +1,12 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python26 1.0
 
-name			py-svn
-version			1.5.1
+name			py26-svn
+version			1.7.0
 categories		python devel
-maintainers		gmail.com:yunzheng.hu
+maintainers		nomaintainer
 platforms		darwin
 description		Python Subversion Extension
 long_description	The pysvn module is a python interface to the \
@@ -16,29 +16,35 @@
 
 homepage		http://pysvn.tigris.org/
 
-master_sites		http://pysvn.tigris.org/files/documents/1233/36248
+master_sites		http://pysvn.barrys-emacs.org/source_kits/
 distname		pysvn-${version}
-checksums		md5 692b33cb82e2446c051df358d61b349a \
-			sha1 1f24b5b18bf93fc978afca049a219128c372ca57
+checksums		md5     77614676d24bca45749034ea6ec449d8 \
+			sha1    96f5217e7d74dbb2eee52e490e79d97b3959b0f0 \
+			rmd160  e343fd373559d138e7b8414034527a3721566594
 
-depends_lib		port:python24 \
-			port:subversion
+depends_lib-append	port:subversion
 
-patchfiles              patch-setup.py
+patchfiles              patch-Source_setup_configure.py.diff
 
+worksrcdir		${worksrcdir}/Source
+
 use_configure		yes
-configure.cmd		cd Source && ${python.bin} setup.py configure
+configure.cmd		${python.bin} setup.py configure
+configure.args		--svn-root-dir=${prefix}
+pre-configure {
+	system "cd ${worksrcpath} && ${python.bin} setup.py backport"
+}
 
-build.cmd		cd Source && make
-build.target		all
+build.cmd		make
+build.target
 
 destroot {
 	file mkdir ${destroot}${python.pkgd}
-	file copy ${worksrcpath}/Source/pysvn ${destroot}${python.pkgd}
+	file copy ${worksrcpath}/pysvn ${destroot}${python.pkgd}
 
-	file mkdir ${destroot}${prefix}/share/doc/${name}/examples
-	eval file copy [glob ${worksrcpath}/Examples/*] \
-		${destroot}${prefix}/share/doc/${name}/examples
-	eval file copy [glob ${worksrcpath}/Docs/*] \
+	file mkdir ${destroot}${prefix}/share/examples/${name}
+	eval file copy [glob ${worksrcpath}/../Examples/*] \
+		${destroot}${prefix}/share/examples/${name}
+	eval file copy [glob ${worksrcpath}/../Docs/*] \
 		${destroot}${prefix}/share/doc/${name}
 }

Added: trunk/dports/python/py26-svn/files/patch-Source_setup_configure.py.diff
===================================================================
--- trunk/dports/python/py26-svn/files/patch-Source_setup_configure.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-svn/files/patch-Source_setup_configure.py.diff	2009-09-11 07:46:20 UTC (rev 57445)
@@ -0,0 +1,12 @@
+--- setup_configure.py.orig	2009-04-04 03:20:59.000000000 -0600
++++ setup_configure.py	2009-09-11 01:31:07.000000000 -0600
+@@ -258,9 +258,6 @@
+             if self.is_mac_os_x_fink:
+                 makefile.write( self.makefile_template_macosx_fink % template_values )
+ 
+-            elif self.is_mac_os_x_darwin_ports:
+-                makefile.write( self.makefile_template_macosx_darwin_ports % template_values )
+-
+             elif self.mac_os_x_universal:
+                 template_values[ 'mac_os_x_sdk' ] = self.mac_os_x_sdk
+                 if sys.version_info[0] >= 3:

Deleted: trunk/dports/python/py26-svn/files/patch-setup.py
===================================================================
--- trunk/dports/python/py-svn/files/patch-setup.py	2009-09-10 20:47:50 UTC (rev 57409)
+++ trunk/dports/python/py26-svn/files/patch-setup.py	2009-09-11 07:46:20 UTC (rev 57445)
@@ -1,21 +0,0 @@
---- Source/setup.py.org	2007-03-31 15:05:46.000000000 +0200
-+++ Source/setup.py	2007-03-31 15:05:21.000000000 +0200
-@@ -198,7 +198,7 @@
- 
-                 # 10.4 needs the libintl.a but 10.3 does not
-                 template_values['extra_libs'] = '%(svn_lib_dir)s/libintl.a' % template_values
--                template_values['frameworks'] = '-framework System %s -framework CoreFoundation -framework Kerberos' % framework_lib
-+                template_values['frameworks'] = '-framework System %s -framework CoreFoundation -framework Kerberos -framework Security' % framework_lib
-             else:
-                 if self.verbose:
-                     print 'Info: Using Mac OS X 10.3 makefile template'
-@@ -209,9 +209,6 @@
-             if self.is_mac_os_x_fink:
-                 makefile.write( self.makefile_template_macosx_fink % template_values )
- 
--            elif self.is_mac_os_x_darwin_ports:
--                makefile.write( self.makefile_template_macosx_darwin_ports % template_values )
--
-             else:
-                 makefile.write( self.makefile_template_macosx % template_values )
-         elif sys.platform.startswith('aix'):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090911/1681b5af/attachment-0001.html>


More information about the macports-changes mailing list