summaryrefslogtreecommitdiff
path: root/devel/phpsh/files/patch-setup.py
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-08-23 17:44:59 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-08-23 17:44:59 +0000
commit84b2c8f63744453c468fe55a8e5caefcffcb53e5 (patch)
treece907ca2c30d5708c9b87f1c4ab346b3c3b7ffb9 /devel/phpsh/files/patch-setup.py
parentTurns out that some geocities sites are more dead than others. (diff)
phpsh is an interactive shell for php that features readline
history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license. WWW: http://phpsh.org/
Diffstat (limited to 'devel/phpsh/files/patch-setup.py')
-rw-r--r--devel/phpsh/files/patch-setup.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/phpsh/files/patch-setup.py b/devel/phpsh/files/patch-setup.py
new file mode 100644
index 000000000000..8c437916cde7
--- /dev/null
+++ b/devel/phpsh/files/patch-setup.py
@@ -0,0 +1,36 @@
+
+$FreeBSD$
+
+--- setup.py.orig
++++ setup.py
+@@ -7,15 +7,15 @@
+ sys.path.insert(0, 'src')
+ from phpsh import __version__
+
+-if len(sys.argv) > 1 and sys.argv[1] == "build":
+- build_root = os.path.dirname(os.path.realpath(__file__))
+- make_dir = os.path.join(build_root, "src/xdebug-clients/geben")
+- p = Popen(["make", "-C", make_dir])
+- os.waitpid(p.pid, 0)
++### EMACS:if len(sys.argv) > 1 and sys.argv[1] == "build":
++### EMACS: build_root = os.path.dirname(os.path.realpath(__file__))
++### EMACS: make_dir = os.path.join(build_root, "src/xdebug-clients/geben")
++### EMACS: p = Popen(["gmake", "-C", make_dir])
++### EMACS: os.waitpid(p.pid, 0)
+
+ # something better than this?
+ if os.getenv("USER") == "root":
+- config_dir = "/etc/phpsh"
++ config_dir = "%%PREFIX%%/etc/phpsh"
+ else:
+ config_dir = os.getenv("HOME") + "/.phpsh"
+
+@@ -33,7 +33,7 @@
+ "xdebug-clients/geben/LICENSE",
+ "xdebug-clients/geben/Makefile",
+ "xdebug-clients/geben/geben.el",
+- "xdebug-clients/geben/geben.elc",
++### EMACS: "xdebug-clients/geben/geben.elc",
+ "xdebug-clients/geben/help",
+ "xdebug-clients/geben/tree-widget/geben/*.png"]},
+ scripts=["src/phpsh", "src/dbgp-phpsh.py"],