[71880] trunk/dports/games/sounddecompress

ryandesign at macports.org ryandesign at macports.org
Sat Sep 25 19:07:30 PDT 2010


Revision: 71880
          http://trac.macports.org/changeset/71880
Author:   ryandesign at macports.org
Date:     2010-09-25 19:07:29 -0700 (Sat, 25 Sep 2010)
Log Message:
-----------
sounddecompress: update for latest libhsplasma

Modified Paths:
--------------
    trunk/dports/games/sounddecompress/Portfile

Added Paths:
-----------
    trunk/dports/games/sounddecompress/files/patch-sounddecompress.py.diff

Removed Paths:
-------------
    trunk/dports/games/sounddecompress/files/sounddecompress.py.in

Modified: trunk/dports/games/sounddecompress/Portfile
===================================================================
--- trunk/dports/games/sounddecompress/Portfile	2010-09-26 02:07:05 UTC (rev 71879)
+++ trunk/dports/games/sounddecompress/Portfile	2010-09-26 02:07:29 UTC (rev 71880)
@@ -5,7 +5,7 @@
 
 name                        sounddecompress
 version                     1.11
-revision                    1
+revision                    2
 platforms                   darwin
 categories                  games audio sysutils
 maintainers                 ryandesign
@@ -45,12 +45,9 @@
 
 extract.mkdir               yes
 
-post-extract {
-    copy ${filespath}/sounddecompress.py.in ${workpath}/sounddecompress.py
-}
+patchfiles                  patch-sounddecompress.py.diff \
+                            patch-wxSoundDecompress.py.diff
 
-patchfiles                  patch-wxSoundDecompress.py.diff
-
 post-patch {
     reinplace "s|^#!/usr/bin/env python$|#!${prefix}/bin/python2.6|g" \
         ${worksrcpath}/sounddecompress.py \
@@ -61,14 +58,10 @@
 
 use_configure               no
 
-build {
-    reinplace "s|@PREFIX@|${prefix}|g" ${workpath}/sounddecompress.py
-}
+build                       {}
 
 destroot {
-    xinstall ${workpath}/sounddecompress.py ${destroot}${prefix}/bin
-    xinstall -d ${destroot}${prefix}/libexec/${name}
-    xinstall ${worksrcpath}/sounddecompress.py ${destroot}${prefix}/libexec/${name}
+    xinstall ${worksrcpath}/sounddecompress.py ${destroot}${prefix}/bin
 #    xinstall ${worksrcpath}/wxSoundDecompress.py ${destroot}${prefix}/bin
     set docdir ${destroot}${prefix}/share/doc/${name}
     xinstall -d ${docdir}

Added: trunk/dports/games/sounddecompress/files/patch-sounddecompress.py.diff
===================================================================
--- trunk/dports/games/sounddecompress/files/patch-sounddecompress.py.diff	                        (rev 0)
+++ trunk/dports/games/sounddecompress/files/patch-sounddecompress.py.diff	2010-09-26 02:07:29 UTC (rev 71880)
@@ -0,0 +1,15 @@
+--- sounddecompress.py.orig	2010-03-08 12:32:51.000000000 -0600
++++ sounddecompress.py	2010-09-25 02:15:46.000000000 -0500
+@@ -87,9 +87,11 @@
+                 ##  which are not set to StreamCompressed
+                 for pageNum in range(0, age.getNumPages()):
+                     page = plResMgr.FindPage(age.getPageLoc(pageNum, plResMgr.getVer()))
++                    if (page == None):
++                        raise Exception("Unable to completely load age "+age.name+": Can't find page "+str(age.getPageLoc(pageNum, plResMgr.getVer())))
+                     if PyHSPlasma.plFactory.kSoundBuffer in plResMgr.getTypes(page.location):
+                         for key in plResMgr.getKeys(page.location, PyHSPlasma.plFactory.kSoundBuffer):	            
+-                            soundBuffer = PyHSPlasma.plSoundBuffer.Convert(key.object)
++                            soundBuffer = key.object
+ 
+                             if soundBuffer.fileName in queue.keys():
+                                 channelOptions = queue[soundBuffer.fileName]

Deleted: trunk/dports/games/sounddecompress/files/sounddecompress.py.in
===================================================================
--- trunk/dports/games/sounddecompress/files/sounddecompress.py.in	2010-09-26 02:07:05 UTC (rev 71879)
+++ trunk/dports/games/sounddecompress/files/sounddecompress.py.in	2010-09-26 02:07:29 UTC (rev 71880)
@@ -1,7 +0,0 @@
-#!/bin/sh
-# $Id$
-
-# http://code.google.com/p/libhsplasma/issues/detail?id=63
-ulimit -n 2000
-
-"@PREFIX@/libexec/sounddecompress/sounddecompress.py" "$@"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100925/78507df6/attachment.html>


More information about the macports-changes mailing list