Feedback from landry@ and sthen@; ok sthen@ pkg/DESCR: wxGlade is a GUI designer written in Python with the popular GUI toolkit wxPython, that helps you create wxWidgets/wxPython user interfaces. At the moment it can generate Python, C++, Perl, Lisp and XRC (wxWidgets' XML resources) code. As you can guess by the name, its model is Glade, the famous GTK+/GNOME GUI builder, with which wxGlade shares the philosophy and the look & feel (but not a line of code). It is not (and will never be) a full featured IDE, but simply a "designer": the generated code does nothing apart from displaying the created widgets.
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
$OpenBSD: patch-wxglade,v 1.1.1.1 2015/10/13 16:58:07 jca Exp $
|
|
|
|
Fix path to the wxglade python package.
|
|
|
|
--- wxglade.orig Fri Oct 9 16:12:29 2015
|
|
+++ wxglade Fri Oct 9 16:16:43 2015
|
|
@@ -6,14 +6,8 @@
|
|
# Copyright 2011-2013 Carsten Grohmann
|
|
#
|
|
# Shell script to start wxGlade
|
|
-#
|
|
-# The wxGlade main script is called wxglade.py. It will be searched at
|
|
-# three places:
|
|
-# 1. parallel to this script
|
|
-# 2. in the module directory of the current Python
|
|
-# 3. in a parallel Python module directory
|
|
|
|
-PYTHON_BIN=${PYTHON_BIN:=python2}
|
|
+PYTHON_BIN=${MODPY_BIN}
|
|
|
|
${PYTHON_BIN} --version > /dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
@@ -21,29 +15,7 @@ if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
-# determined current python version
|
|
-PY_VERSION=$(${PYTHON_BIN} -c 'import sys; print sys.version[:3]')
|
|
-
|
|
-# determined prefix of the Python module directory structure
|
|
-if [ -e /etc/debian_version ]; then
|
|
- WXGLADE_MODULE_PATH="/usr/lib/pymodules/python${PY_VERSION}/wxglade"
|
|
-else
|
|
- WXGLADE_MODULE_PATH="/usr/lib/python${PY_VERSION}/wxglade"
|
|
-fi
|
|
-
|
|
-CURR_DIR=$(dirname $0)
|
|
-
|
|
-# search wxglade.py
|
|
-if [ -e "${CURR_DIR}/wxglade.py" ]; then
|
|
- WXG_PATH="${CURR_DIR}/wxglade.py"
|
|
-elif [ -e "${WXGLADE_MODULE_PATH}/wxglade.py" ]; then
|
|
- WXG_PATH="${WXGLADE_MODULE_PATH}/wxglade.py"
|
|
-elif [ -e "${CURR_DIR}/../lib/python${PY_VERSION}/site-packages/wxglade/wxglade.py" ]; then
|
|
- WXG_PATH="${CURR_DIR}/../lib/python${PY_VERSION}/site-packages/wxglade/wxglade.py"
|
|
-else
|
|
- echo "ERROR: wxglade.py not found!"
|
|
- exit 1
|
|
-fi
|
|
+WXG_PATH=${TRUEPREFIX}/lib/python${MODPY_VERSION}/site-packages/wxglade/wxglade.py
|
|
|
|
# exec wxGlade
|
|
exec ${PYTHON_BIN} "${WXG_PATH}" "$@"
|