[121055] trunk/dports/python/py-simpy/Portfile

g5pw at macports.org g5pw at macports.org
Mon Jun 16 06:05:55 PDT 2014


Revision: 121055
          https://trac.macports.org/changeset/121055
Author:   g5pw at macports.org
Date:     2014-06-16 06:05:55 -0700 (Mon, 16 Jun 2014)
Log Message:
-----------
python/py-simpy
  - update to 3.0.5
  - upstream moved to bitbucket, using bitbucket portgroup
  - add docs variant
  - update license
  - add python34 subport, remove unsupported subports

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

Modified: trunk/dports/python/py-simpy/Portfile
===================================================================
--- trunk/dports/python/py-simpy/Portfile	2014-06-16 09:41:56 UTC (rev 121054)
+++ trunk/dports/python/py-simpy/Portfile	2014-06-16 13:05:55 UTC (rev 121055)
@@ -3,10 +3,11 @@
 
 PortSystem 1.0
 PortGroup python 1.0
+PortGroup bitbucket 1.0
 
-name            py-simpy
-version         2.3
-license         LGPL-2.1+
+bitbucket.setup simpy simpy 3.0.5
+name            py-${name}
+license         MIT
 maintainers     mcalhoun openmaintainer
 platforms       darwin freebsd
 supported_archs noarch
@@ -15,28 +16,32 @@
     SimPy is an object-oriented, process-based \
     discrete-event simulation language based on standard Python.
 
-homepage        http://simpy.sourceforge.net/
-master_sites    sourceforge:project/simpy/simpy/SimPy-${version}
-distname        SimPy-${version}
+homepage        http://simpy.readthedocs.org
 
-checksums       rmd160  d392e8d47f6726f604ff0332bb41fd826ee7c29f \
-                sha256  f08cc17476e7aeaf927f3cb03a0c0566dbcae7794cbecc4f32a21f7ab195cd78
+python.versions 27 32 33 34
 
-python.versions 24 25 26 27 32 33
+if {${name} ne ${subport}} {
+    checksums           rmd160  2c9ec3ca81b7893e12181291920a1cd0b75a95b9 \
+                        sha256  32f100aa12a0e76826110489d8b4a61ef4f04452c5a0141775ef2cf1ceb1d249
 
-if {${name} ne ${subport}} {
-    depends_lib-append port:py${python.version}-tkinter
+    variant docs description {Install Sphinx-generated docs} {
+        depends_build-append       port:py${python.version}-sphinx
+    }
+
     post-destroot {
-        copy ${worksrcpath}/docs/html \
-            ${destroot}${prefix}/share/doc/${subport}
-        delete ${destroot}${prefix}/share/doc/${subport}/examples
-        copy ${worksrcpath}/docs/examples \
-            ${destroot}${prefix}/share/doc/${subport}
-        file delete -force ${destroot}${prefix}/share/doc/${subport}/html/.buildinfo \
-                           ${destroot}${prefix}/share/doc/${subport}/html/_sources
-        
+        if {[variant_isset docs]} {
+            system -W ${worksrcpath}/docs "SPHINXBUILD=${prefix}/sphinx-build-3.4 make html man"
+            set doc_build_dir ${worksrcpath}/docs/_build
+            file delete -force ${doc_build_dir}/html/.buildinfo \
+                                ${doc_build_dir}/html/_sources
+            copy ${doc_build_dir}/html \
+                ${destroot}${prefix}/share/doc/${subport}
+            xinstall -d ${destroot}${prefix}/share/examples
+            move ${destroot}${prefix}/share/doc/${subport}/examples \
+                ${destroot}${prefix}/share/examples/${subport}
+            move ${doc_build_dir}/man \
+                    ${destroot}${python.prefix}
+        }
     }
     livecheck.type  none
-} else {
-    livecheck.regex <title>simpy SimPy-(\\d+(?:\\.\\d+)*) released.*</title>
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140616/0c6bcc1d/attachment.html>


More information about the macports-changes mailing list