[106398] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri May 24 15:17:42 PDT 2013


Revision: 106398
          https://trac.macports.org/changeset/106398
Author:   jmr at macports.org
Date:     2013-05-24 15:17:42 -0700 (Fri, 24 May 2013)
Log Message:
-----------
py26-impressive: use unified portgroup, license, noarch

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

Added Paths:
-----------
    trunk/dports/python/py-impressive/

Removed Paths:
-------------
    trunk/dports/python/py26-impressive/

Modified: trunk/dports/python/py-impressive/Portfile
===================================================================
--- trunk/dports/python/py26-impressive/Portfile	2013-05-24 20:47:31 UTC (rev 106396)
+++ trunk/dports/python/py-impressive/Portfile	2013-05-24 22:17:42 UTC (rev 106398)
@@ -2,12 +2,13 @@
 # $Id$
 
 PortSystem      1.0
-PortGroup       python26 1.0
+PortGroup       python 1.0
 
-name            py26-impressive
+name            py-impressive
 version         0.10.2
 revision        6
 categories-append   graphics
+license         GPL-2
 maintainers     nomaintainer
 description     slide presentation tool
 long_description \
@@ -19,6 +20,7 @@
     for presentations.
 homepage        http://impressive.sourceforge.net/
 platforms       darwin
+supported_archs noarch
 master_sites    sourceforge:impressive
 
 distname        Impressive-${version}
@@ -26,32 +28,37 @@
                 sha1   636515909f2b2e06bed46162a6f648ef0d348c84 \
                 rmd160 44f5d6d7d76f3128f1780caba33432a4866cb1b2
 
-depends_lib     port:python26   \
-                port:py26-opengl   \
-                port:py26-game     \
-                port:py26-pil      \
-                port:xpdf        \
-                port:ghostscript \
-                port:pdftk
+python.versions 26
 
-patch {
-    reinplace "s|env python|env python2.6|" ${worksrcpath}/impressive.py
-}
-build {}
+if {$subport != $name} {
+    depends_lib     port:py${python.version}-opengl   \
+                    port:py${python.version}-game     \
+                    port:py${python.version}-pil      \
+                    port:xpdf        \
+                    port:ghostscript \
+                    port:pdftk
 
-python.link_binaries no
-destroot {
-    xinstall -d ${destroot}${prefix}/bin
-    xinstall -d ${destroot}${prefix}/share/impressive
-    xinstall -d ${destroot}${prefix}/share/doc/impressive
-    xinstall -m 775 ${worksrcpath}/impressive.py \
-                    ${worksrcpath}/demo.pdf \
-                    ${destroot}${prefix}/share/impressive
-    xinstall -m 644 ${worksrcpath}/impressive.1 \
-                    ${destroot}${prefix}/share/man/man1
-    xinstall -m 664 ${worksrcpath}/license.txt \
-                    ${worksrcpath}/changelog.txt \
-                    ${worksrcpath}/impressive.html \
-                    ${destroot}${prefix}/share/doc/impressive
-    ln -s ${prefix}/share/impressive/impressive.py ${destroot}${prefix}/bin/impressive
+    post-patch {
+        reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/impressive.py
+    }
+    build {}
+
+    python.link_binaries no
+    # this is bad, a py27-impressive would conflict with py26-impressive
+    # make non-conflicting or change name to just 'impressive'
+    destroot {
+        xinstall -d ${destroot}${prefix}/bin
+        xinstall -d ${destroot}${prefix}/share/impressive
+        xinstall -d ${destroot}${prefix}/share/doc/impressive
+        xinstall -m 775 ${worksrcpath}/impressive.py \
+                        ${worksrcpath}/demo.pdf \
+                        ${destroot}${prefix}/share/impressive
+        xinstall -m 644 ${worksrcpath}/impressive.1 \
+                        ${destroot}${prefix}/share/man/man1
+        xinstall -m 664 ${worksrcpath}/license.txt \
+                        ${worksrcpath}/changelog.txt \
+                        ${worksrcpath}/impressive.html \
+                        ${destroot}${prefix}/share/doc/impressive
+        ln -s ${prefix}/share/impressive/impressive.py ${destroot}${prefix}/bin/impressive
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130524/a2038082/attachment-0001.html>


More information about the macports-changes mailing list