[48670] trunk/dports/python/py25-pydb/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Thu Mar 26 18:04:24 PDT 2009


Revision: 48670
          http://trac.macports.org/changeset/48670
Author:   mcalhoun at macports.org
Date:     2009-03-26 18:04:23 -0700 (Thu, 26 Mar 2009)
Log Message:
-----------
py25-pydb: At the request of maintainer, undo r48656 and r48659, which were intended for py26-pydb.
See #12447.

Modified Paths:
--------------
    trunk/dports/python/py25-pydb/Portfile

Modified: trunk/dports/python/py25-pydb/Portfile
===================================================================
--- trunk/dports/python/py25-pydb/Portfile	2009-03-27 00:52:33 UTC (rev 48669)
+++ trunk/dports/python/py25-pydb/Portfile	2009-03-27 01:04:23 UTC (rev 48670)
@@ -1,42 +1,46 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem       1.0
+PortSystem          1.0
 
-# Set general python version parameters
-set pyver        2.6
-set python       python${pyver}
-set pyport       [join [lrange [split ${python} .] 0 1] ""]
-set pyframe      ${frameworks_dir}/Python.framework/Version/${pyver}
-set pysite       ${prefix}/Library/Frameworks/Python.framework/Versions/${pyver}/lib/${python}/site-packages
+name                py25-pydb
+version             1.25
+categories          python
+maintainers         macfreek.nl:software dweber openmaintainer
+description         Extended Python debugger
+long_description    pydb is an expanded version of the Python debugger loosely \
+                    based on the gdb command set. To use pydb in a GUI, also \
+                    install the ddd packages, and run "ddd --pydb"
+homepage            http://bashdb.sourceforge.net/pydb/
 
-name             py26-pydb
-version          1.25
-categories       python
-maintainers      software at macfreek.nl dweber openmaintainer
-description      Extended Python Debugger
-long_description \
-    pydb is an expanded version of the Python debugger loosely based on the gdb command set. \
-    To use pydb in a GUI, also install the ddd packages, and run "ddd --pydb"
+platforms           darwin
 
-homepage         http://bashdb.sourceforge.net/pydb/
-platforms        darwin
+master_sites        sourceforge:bashdb
+distname            pydb-${version}
+use_bzip2           yes
 
-master_sites     sourceforge:bashdb
+checksums           md5 a4b3005f92521461eb55663a1b8d1642 \
+                    sha1 c9c85d3c3003d7d2feebc081bb71bf5649d3e09c \
+                    rmd160 aebba569564dac9415ef6fc3b16f32f3157d1ce3
 
-distname         pydb-${version}
+depends_lib         port:python25
 
-checksums        md5  86ab5dcd4f1c81192aeb7e0828371b6c \
-                 sha1 9e6242c051089e53f3da4fcecba469c2d868de55 \
-                 rmd160 afc83ea56149c3b1fba84089386b6974f01b1344
+# Install binaries and man pages in a different location to avoid conflict
+#    with other Python versions
+set python_prefix   ${frameworks_dir}/Python.framework/Version/2.5
+configure.pre_args  --prefix=${python_prefix}
 
-depends_lib-append port:${pyport}
+configure.python    ${prefix}/bin/python2.5
 
-configure.args-append \
-    --with-python=${prefix}/bin/${python}
+# python2.5 gives the incorrect location of site-packages (see #16334).
+configure.args      --with-site-packages=${prefix}/lib/python2.5
 
 post-destroot {
-    system "rm -f /opt/local/bin/pydb-${pyver}"
-    ln -s ${pysite}/pydb/pydb.py /opt/local/bin/${name}
+    # Install binaries and man pages with version appended.
+    foreach fl [glob -tails -directory ${destroot}${python_prefix}/bin *] {
+        ln -s ${python_prefix}/bin/${fl} ${destroot}${prefix}/bin/${fl}2.5
+    }
+    foreach fl {pydb} {
+        ln -s ${python_prefix}/share/man/man1/${fl}.1 ${destroot}${prefix}/share/man/man1/${fl}2.5.1
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090326/7691b4cf/attachment.html>


More information about the macports-changes mailing list