[106195] trunk/dports/python

jmr at macports.org jmr at macports.org
Sat May 18 08:21:40 PDT 2013


Revision: 106195
          https://trac.macports.org/changeset/106195
Author:   jmr at macports.org
Date:     2013-05-18 08:21:40 -0700 (Sat, 18 May 2013)
Log Message:
-----------
py26-pyepl: use unified portgroup, set license

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

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

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

Modified: trunk/dports/python/py-pyepl/Portfile
===================================================================
--- trunk/dports/python/py26-pyepl/Portfile	2013-05-18 12:32:25 UTC (rev 106187)
+++ trunk/dports/python/py-pyepl/Portfile	2013-05-18 15:21:40 UTC (rev 106195)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               python26 1.0
+PortGroup               python 1.0
 
-name                    py26-pyepl
+name                    py-pyepl
 version                 1.0.29
+license                 GPL-2+
 
 platforms               darwin
 maintainers             nomaintainer
@@ -15,54 +16,56 @@
 long_description        ${description}.  It supports presentation of both visual and auditory stimuli, and supports both manual (keyboard/joystick) and sound (microphone) input as responses.
 
 homepage                http://pyepl.sourceforge.net/
-
-depends_lib             port:libsndfile \
-                        port:libsamplerate \
-                        port:swig-python \
-                        port:py26-numpy \
-                        port:py26-pil \
-                        port:py26-opengl \
-                        port:py26-pyrex \
-                        port:py26-ode \
-                        port:py26-game \
-                        port:py26-distribute
-
-patchfiles              patch-setup.py.diff \
-                        patch-code-hardware-Makefile.diff \
-                        patch-code-hardware-sound-Makefile.diff \
-                        patch-code-hardware-vr-Makefile.diff \
-                        cflags.diff
      
-worksrcdir              pyepl-${version}
+distname                pyepl-${version}
 master_sites            sourceforge:pyepl
-extract.suffix          tgz
-distfiles               ${worksrcdir}.${extract.suffix}
+extract.suffix          .tgz
 
 checksums               md5     009e5a537bcf27b8810afa416487a8d6 \
                         sha1    bd84ad6b765e5aa49e5da3ab0c8ebdd0fd6b14b6 \
                         rmd160  7a83e6c0359e9b9ba856575e7d881a0770e8a57b
 
-pre-configure {
-  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py  
-  reinplace "s|\"_awCard.so\"|\"_awCard.so\", \"awCard.py\"|g" ${worksrcpath}/setup.py
+python.versions         26
+
+if {$subport != $name} {
+    depends_lib             port:libsndfile \
+                            port:libsamplerate \
+                            port:swig-python \
+                            port:py${python.version}-numpy \
+                            port:py${python.version}-pil \
+                            port:py${python.version}-opengl \
+                            port:py${python.version}-pyrex \
+                            port:py${python.version}-ode \
+                            port:py${python.version}-game \
+                            port:py${python.version}-distribute
+
+    patchfiles              patch-setup.py.diff \
+                            patch-code-hardware-Makefile.diff \
+                            patch-code-hardware-sound-Makefile.diff \
+                            patch-code-hardware-vr-Makefile.diff \
+                            cflags.diff
+
+    pre-configure {
+      reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.py  
+      reinplace "s|\"_awCard.so\"|\"_awCard.so\", \"awCard.py\"|g" ${worksrcpath}/setup.py
   
-  reinplace "s|@@PYTHON.INC@@|${python.include}|g" ${worksrcpath}/code/hardware/Makefile
+      reinplace "s|@@PYTHON.INC@@|${python.include}|g" ${worksrcpath}/code/hardware/Makefile
   
-  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/code/hardware/sound/Makefile
+      reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/code/hardware/sound/Makefile
   
-  reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/code/hardware/vr/Makefile
+      reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/code/hardware/vr/Makefile
   
-  reinplace "s|@@PYTHON@@|${python.bin}|g" ${worksrcpath}/code/hardware/vr/Makefile
+      reinplace "s|@@PYTHON@@|${python.bin}|g" ${worksrcpath}/code/hardware/vr/Makefile
   
-  set hroot "${worksrcpath}/code/hardware"
-  foreach {i} {/eeg/pulse /eeg/scalp /rt /sound /vr} {
-    reinplace "s|shell python|shell ${python.bin}|g" ${hroot}${i}/Makefile  
-  }
+      set hroot "${worksrcpath}/code/hardware"
+      foreach {i} {/eeg/pulse /eeg/scalp /rt /sound /vr} {
+        reinplace "s|shell python|shell ${python.bin}|g" ${hroot}${i}/Makefile  
+      }
   
-  reinplace "s|-law|-L${prefix}/lib -law|g" ${worksrcpath}/code/hardware/eeg/pulse/Makefile
+      reinplace "s|-law|-L${prefix}/lib -law|g" ${worksrcpath}/code/hardware/eeg/pulse/Makefile
+    }
+    livecheck.type  none
+} else {
+    livecheck.url   http://git.debian.org/?p=pkg-exppsy/pymvpa.git
+    livecheck.regex {upstream\/([0-9.]+)}
 }
-
-
-
-livecheck.url   http://git.debian.org/?p=pkg-exppsy/pymvpa.git
-livecheck.regex {upstream\/([0-9.]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130518/841e9bb8/attachment-0001.html>


More information about the macports-changes mailing list