[88822] trunk/dports/python

dports at macports.org dports at macports.org
Thu Jan 12 16:51:13 PST 2012


Revision: 88822
          http://trac.macports.org/changeset/88822
Author:   dports at macports.org
Date:     2012-01-12 16:51:13 -0800 (Thu, 12 Jan 2012)
Log Message:
-----------
py-gnuplot: unify (see also #28875)

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

Removed Paths:
-------------
    trunk/dports/python/py25-gnuplot/
    trunk/dports/python/py26-gnuplot/

Modified: trunk/dports/python/py-gnuplot/Portfile
===================================================================
--- trunk/dports/python/py-gnuplot/Portfile	2012-01-12 23:02:19 UTC (rev 88821)
+++ trunk/dports/python/py-gnuplot/Portfile	2012-01-13 00:51:13 UTC (rev 88822)
@@ -1,11 +1,14 @@
+# -*- 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 python24 1.0
+PortGroup python 1.0
 
 name                    py-gnuplot
 version                 1.8
+revision                1
 categories-append       devel math
+license                 LGPL
 maintainers             nomaintainer
 platforms               darwin
 supported_archs         noarch
@@ -21,15 +24,18 @@
                         sha1    1fab2850cd1881f4ede1f7978a8746af2aff9bb2 \
                         rmd160  0a06385a38e8b34d60d95e37b5d0a13dc682d520
 
-depends_lib-append      port:py24-numpy
-depends_run             port:gnuplot
+python.versions 24 25 26 27
 
-post-destroot {
+if {$subport != $name} {
+    depends_lib-append      port:py${python.version}-numpy
+    depends_run             port:gnuplot
+
+    post-destroot {
         xinstall -m 644 -W ${worksrcpath} \
-                ANNOUNCE.txt CREDITS.txt FAQ.txt Gnuplot.html \
-                LICENSE.txt NEWS.txt README.txt TODO.txt \
-                ${destroot}${prefix}/share/doc/${name}
+            ANNOUNCE.txt CREDITS.txt FAQ.txt Gnuplot.html \
+            LICENSE.txt NEWS.txt README.txt TODO.txt \
+            ${destroot}${prefix}/share/doc/${subport}
         file copy ${worksrcpath}/doc \
-                ${destroot}${prefix}/share/doc/${name}
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120112/79e495d2/attachment.html>


More information about the macports-changes mailing list