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

dweber at macports.org dweber at macports.org
Thu Mar 26 14:40:20 PDT 2009


Revision: 48656
          http://trac.macports.org/changeset/48656
Author:   dweber at macports.org
Date:     2009-03-26 14:40:19 -0700 (Thu, 26 Mar 2009)
Log Message:
-----------
install tweaks

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

Modified: trunk/dports/python/py25-pydb/Portfile
===================================================================
--- trunk/dports/python/py25-pydb/Portfile	2009-03-26 20:52:28 UTC (rev 48655)
+++ trunk/dports/python/py25-pydb/Portfile	2009-03-26 21:40:19 UTC (rev 48656)
@@ -1,48 +1,42 @@
 # -*- 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
 
-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/
+# 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
 
-platforms           darwin
+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"
 
-master_sites        sourceforge:bashdb
-distname            pydb-${version}
-use_bzip2           yes
+homepage         http://bashdb.sourceforge.net/pydb/
+platforms        darwin
 
-checksums           md5 a4b3005f92521461eb55663a1b8d1642 \
-                    sha1 c9c85d3c3003d7d2feebc081bb71bf5649d3e09c \
-                    rmd160 aebba569564dac9415ef6fc3b16f32f3157d1ce3
+master_sites     sourceforge:bashdb
 
-patchfiles          patch-Makefile.in.diff
+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 {
-    # 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
-    }
+    system "rm -f /opt/local/bin/pydb-${pyver}"
+    ln -s ${pysite}/pydb/pydb.py /opt/local/bin/pydb-${pyver}
 }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090326/9dbbca49/attachment.html>


More information about the macports-changes mailing list