ports/multimedia/tunapie/files/patch-src-compile
Ion-Mihai Tetcu 65f0fadb20 Update to 1.0.r2
PR:		ports/99805
Submitted by:	maintainer
2006-07-12 19:44:58 +00:00

17 lines
467 B
Text

$FreeBSD$
--- src/compile Sun Jul 2 10:49:31 2006
+++ src/compile.port Tue Jul 11 21:30:59 2006
@@ -1 +1,12 @@
-import Tunapie
+import os, os.path, re
+from compiler import compileFile
+
+def compile_tunapie(arg, dir, files):
+ for file in files:
+ path = os.path.join(dir, file)
+ path = os.path.normcase(path)
+ if re.search(r".*\.py$", path):
+ print " ==> Generating bytecode for " + path
+ compileFile(path)
+
+os.path.walk('.', compile_tunapie, 0)