Ticket #11691: py-svn.diff

File py-svn.diff, 2.8 KB (added by yunzheng.hu@…, 17 years ago)

diff to add py-svn port to dports (this one also installs docs and examples)

  • py-svn/files/patch-setup.py

     
     1--- Source/setup.py.org 2007-03-31 15:05:46.000000000 +0200
     2+++ Source/setup.py     2007-03-31 15:05:21.000000000 +0200
     3@@ -198,7 +198,7 @@
     4 
     5                 # 10.4 needs the libintl.a but 10.3 does not
     6                 template_values['extra_libs'] = '%(svn_lib_dir)s/libintl.a' % template_values
     7-                template_values['frameworks'] = '-framework System %s -framework CoreFoundation -framework Kerberos' % framework_lib
     8+                template_values['frameworks'] = '-framework System %s -framework CoreFoundation -framework Kerberos -framework Security' % framework_lib
     9             else:
     10                 if self.verbose:
     11                     print 'Info: Using Mac OS X 10.3 makefile template'
     12@@ -209,9 +209,6 @@
     13             if self.is_mac_os_x_fink:
     14                 makefile.write( self.makefile_template_macosx_fink % template_values )
     15 
     16-            elif self.is_mac_os_x_darwin_ports:
     17-                makefile.write( self.makefile_template_macosx_darwin_ports % template_values )
     18-
     19             else:
     20                 makefile.write( self.makefile_template_macosx % template_values )
     21         elif sys.platform.startswith('aix'):
  • py-svn/Portfile

     
     1# $Id: $
     2
     3PortSystem 1.0
     4PortGroup python24 1.0
     5
     6name                    py-svn
     7version                 1.5.1
     8categories              python devel
     9maintainers             yunzheng.hu@gmail.com
     10platforms               darwin
     11description             Python Subversion Extension
     12long_description        The pysvn module is a python interface to the \
     13                        Subversion version control system. This API exposes \
     14                        client interfaces for managing a working copy, \
     15                        querying a repository, and synchronizing the two.
     16
     17homepage                http://pysvn.tigris.org/
     18
     19master_sites            http://pysvn.tigris.org/files/documents/1233/36248
     20distname                pysvn-${version}
     21checksums               md5 692b33cb82e2446c051df358d61b349a \
     22                        sha1 1f24b5b18bf93fc978afca049a219128c372ca57
     23
     24depends_lib             port:python24 \
     25                        port:subversion
     26
     27patchfiles              patch-setup.py
     28
     29use_configure           yes
     30configure.cmd           cd Source && ${python.bin} setup.py configure
     31
     32build.cmd               cd Source && make
     33build.target            all
     34
     35destroot {
     36        file mkdir ${destroot}${python.pkgd}
     37        file copy Source/pysvn ${destroot}${python.pkgd}
     38
     39        file mkdir ${destroot}${prefix}/share/doc/${name}/examples
     40        eval file copy [glob ${worksrcpath}/Examples/*] \
     41                ${destroot}${prefix}/share/doc/${name}/examples
     42        eval file copy [glob ${worksrcpath}/Docs/*] \
     43                ${destroot}${prefix}/share/doc/${name}
     44}