[91321] trunk/dports/python

robitaille at macports.org robitaille at macports.org
Thu Mar 29 13:08:02 PDT 2012


Revision: 91321
          https://trac.macports.org/changeset/91321
Author:   robitaille at macports.org
Date:     2012-03-29 13:07:59 -0700 (Thu, 29 Mar 2012)
Log Message:
-----------
py-sphinx: added select group (including new sphinx_select port)

Modified Paths:
--------------
    trunk/dports/python/py-sphinx/Portfile

Added Paths:
-----------
    trunk/dports/python/py-sphinx/files/
    trunk/dports/python/py-sphinx/files/py24-sphinx
    trunk/dports/python/py-sphinx/files/py25-sphinx
    trunk/dports/python/py-sphinx/files/py26-sphinx
    trunk/dports/python/py-sphinx/files/py27-sphinx
    trunk/dports/python/sphinx_select/
    trunk/dports/python/sphinx_select/Portfile
    trunk/dports/python/sphinx_select/files/
    trunk/dports/python/sphinx_select/files/base
    trunk/dports/python/sphinx_select/files/none

Modified: trunk/dports/python/py-sphinx/Portfile
===================================================================
--- trunk/dports/python/py-sphinx/Portfile	2012-03-29 17:05:38 UTC (rev 91320)
+++ trunk/dports/python/py-sphinx/Portfile	2012-03-29 20:07:59 UTC (rev 91321)
@@ -3,6 +3,7 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
+PortGroup           select 1.0
 
 name                py-sphinx
 version             1.1.3
@@ -31,9 +32,13 @@
 python.versions     24 25 26 27
 
 if {$subport != $name} {
+
     depends_lib     port:py${python.version}-docutils
+
     depends_run     port:py${python.version}-pygments \
-                    port:py${python.version}-jinja2
+                    port:py${python.version}-jinja2 \
+                    port:sphinx_select
+
     if {${python.version} <= 25} {
         post-destroot {
             foreach f [glob -directory "${destroot}${prefix}/bin" *] {
@@ -41,8 +46,21 @@
             }
         }
     }
+
+    select.group    sphinx
+    select.file     ${filespath}/py${python.version}-sphinx
+
+    notes \
+    "To make the Python ${python.branch} version of Sphinx the one that is run
+    when you execute the commands without a version suffix, e.g. 'sphinx-build',
+    run:
+        port select --set ${select.group} [file tail ${select.file}]"
+
     livecheck.type  none
+
 } else {
+
     livecheck.type  regex
     livecheck.regex {<p>Current version: <b>([0-9.]+)</b></p>}
+
 }

Added: trunk/dports/python/py-sphinx/files/py24-sphinx
===================================================================
--- trunk/dports/python/py-sphinx/files/py24-sphinx	                        (rev 0)
+++ trunk/dports/python/py-sphinx/files/py24-sphinx	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+bin/sphinx-apidoc-2.4
+bin/sphinx-quickstart-2.4
+bin/sphinx-autogen-2.4
+bin/sphinx-build-2.4

Added: trunk/dports/python/py-sphinx/files/py25-sphinx
===================================================================
--- trunk/dports/python/py-sphinx/files/py25-sphinx	                        (rev 0)
+++ trunk/dports/python/py-sphinx/files/py25-sphinx	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+bin/sphinx-apidoc-2.5
+bin/sphinx-quickstart-2.5
+bin/sphinx-autogen-2.5
+bin/sphinx-build-2.5

Added: trunk/dports/python/py-sphinx/files/py26-sphinx
===================================================================
--- trunk/dports/python/py-sphinx/files/py26-sphinx	                        (rev 0)
+++ trunk/dports/python/py-sphinx/files/py26-sphinx	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/sphinx-apidoc
+${frameworks_dir}/Python.framework/Versions/2.6/bin/sphinx-quickstart
+${frameworks_dir}/Python.framework/Versions/2.6/bin/sphinx-autogen
+${frameworks_dir}/Python.framework/Versions/2.6/bin/sphinx-build

Added: trunk/dports/python/py-sphinx/files/py27-sphinx
===================================================================
--- trunk/dports/python/py-sphinx/files/py27-sphinx	                        (rev 0)
+++ trunk/dports/python/py-sphinx/files/py27-sphinx	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/sphinx-apidoc
+${frameworks_dir}/Python.framework/Versions/2.7/bin/sphinx-quickstart
+${frameworks_dir}/Python.framework/Versions/2.7/bin/sphinx-autogen
+${frameworks_dir}/Python.framework/Versions/2.7/bin/sphinx-build

Added: trunk/dports/python/sphinx_select/Portfile
===================================================================
--- trunk/dports/python/sphinx_select/Portfile	                        (rev 0)
+++ trunk/dports/python/sphinx_select/Portfile	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,34 @@
+# -*- 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
+PortGroup           select 1.0
+
+name                sphinx_select
+version             0.1
+revision            0
+categories          python
+license             BSD
+
+maintainers         robitaille openmaintainer
+
+description         common files for selecting default sphinx version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of sphinx.
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install sphinx ${filespath}/base
+    select::install sphinx ${filespath}/none
+}
+
+livecheck.type      none


Property changes on: trunk/dports/python/sphinx_select/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/sphinx_select/files/base
===================================================================
--- trunk/dports/python/sphinx_select/files/base	                        (rev 0)
+++ trunk/dports/python/sphinx_select/files/base	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+bin/sphinx-apidoc
+bin/sphinx-quickstart
+bin/sphinx-autogen
+bin/sphinx-build

Added: trunk/dports/python/sphinx_select/files/none
===================================================================
--- trunk/dports/python/sphinx_select/files/none	                        (rev 0)
+++ trunk/dports/python/sphinx_select/files/none	2012-03-29 20:07:59 UTC (rev 91321)
@@ -0,0 +1,4 @@
+-
+-
+-
+-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120329/f42c244d/attachment.html>


More information about the macports-changes mailing list