[42899] trunk/dports/python

mcalhoun at macports.org mcalhoun at macports.org
Mon Dec 1 21:34:27 PST 2008


Revision: 42899
          http://trac.macports.org/changeset/42899
Author:   mcalhoun at macports.org
Date:     2008-12-01 21:34:27 -0800 (Mon, 01 Dec 2008)
Log Message:
-----------
py26-setuptools: New port

Added Paths:
-----------
    trunk/dports/python/py26-setuptools/
    trunk/dports/python/py26-setuptools/Portfile

Added: trunk/dports/python/py26-setuptools/Portfile
===================================================================
--- trunk/dports/python/py26-setuptools/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-setuptools/Portfile	2008-12-02 05:34:27 UTC (rev 42899)
@@ -0,0 +1,75 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem			1.0
+
+#######################################################################################################
+# PortGroup python26 1.0
+#######################################################################################################
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists frameworks_dir]} {
+    set frameworks_dir ${prefix}/Library/Frameworks
+}
+
+set python.bin	    ${prefix}/bin/python2.6
+set python.lib	    ${frameworks_dir}/Python.framework/Versions/2.6/Python
+set python.pkgd	    ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages
+set python.bindir	${frameworks_dir}/Python.framework/Versions/2.6/bin
+set python.include	${frameworks_dir}/Python.framework/Versions/2.6/include/python2.6
+
+categories		python
+
+dist_subdir		python
+
+depends_lib		port:python26
+
+use_configure	no
+
+build.cmd		${python.bin} setup.py --no-user-cfg
+build.target	build
+
+destroot.cmd	           ${python.bin} setup.py --no-user-cfg
+destroot.destdir	       --prefix=${frameworks_dir}/Python.framework/Versions/2.6 --root=${destroot}
+configure.pkg_config_path  ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig
+
+set env(PATH) "${python.bindir}:$env(PATH)"
+
+pre-destroot	{
+	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
+}
+#######################################################################################################
+
+name				py26-setuptools
+version				0.6c9
+categories-append	devel
+maintainers		    mcalhoun openmaintainer
+description			distutils enhancement for build and distribution
+long_description \
+	setuptools is a collection of enhancements to the Python distutils that \
+	allow you to more easily build and distribute Python packages, \
+	especially ones that have dependencies on other packages.
+
+platforms			darwin
+
+homepage			http://peak.telecommunity.com/DevCenter/setuptools
+master_sites		http://pypi.python.org/packages/source/s/setuptools
+distname			setuptools-${version}
+
+checksums           md5     3864c01d9c719c8924c455714492295e \
+                    sha1    79086433b341f0c1df45e10d586a7d3cc25089f1 \
+                    rmd160  bc0ee3821e76b57fd13425b16c4419dbccf95ed9
+
+post-destroot {
+	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+	xinstall -m 644 -W ${worksrcpath} EasyInstall.txt api_tests.txt \
+		pkg_resources.txt setuptools.txt \
+		${destroot}${prefix}/share/doc/${name}
+    ln -s ${python.bindir}/easy_install-2.6 ${destroot}${prefix}/bin/
+}
+
+test.run  yes
+test.cmd  ${python.bin} setup.py test
+
+livecheck.check  regex
+livecheck.url    [lindex ${master_sites} 0]?C=M&O=D
+livecheck.regex  setuptools-(\\d+(?:\\.\\d+)*c\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081201/4d57c836/attachment-0001.html>


More information about the macports-changes mailing list