Import py-wxPython 2.6.3.2

wxPython is a GUI toolkit for the Python programming language. It allows
Python programmers to create programs with a robust, highly functional
graphical user interface, simply and easily. It is implemented as a
Python extension module (native code) that wraps the popular wxWidgets
cross platform GUI library, which is written in C++.
This commit is contained in:
alek 2006-10-17 10:04:16 +00:00
parent 468cdce980
commit eb3f750834
5 changed files with 1238 additions and 0 deletions

41
x11/py-wxPython/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/10/17 10:04:16 alek Exp $
SHARED_ONLY= Yes
COMMENT= "Python bindings for wxWidgets C++ class library"
DISTNAME= wxPython-src-2.6.3.2
PKGNAME= ${DISTNAME:S/^/py-/:S/-src//}
CATEGORIES= x11 devel
HOMEPAGE= http://www.wxpython.org/
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
# modified LGPL
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wxpython/}
MODULES= lang/python
LIB_DEPENDS= wx_gtk2_gizmos,wx_gtk2_stc,wx_base_xml,wx_gtk2_qa,wx_base_odbc,wx_gtk2_html,wx_gtk2_gl,wx_base,wx_gtk2_adv,wx_gtk2_xrc,wx_gtk2_core,wx_base_net,wx_gtk2_dbgrid,wx_gtk2_animate:wxWidgets-gtk2->=2.6.3:x11/wxWidgets
WRKSRC= ${WRKDIST}/wxPython
NO_REGRESS= Yes
pre-build:
@perl -pi -e "s,!!WRKINST!!,${WRKINST},g" ${WRKSRC}/config.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython/demo
cd ${WRKSRC}/demo; tar -cf - * | \
(cd ${PREFIX}/share/examples/py-wxPython/demo; tar -xf -)
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython/samples
cd ${WRKSRC}/samples; tar -cf - * | \
(cd ${PREFIX}/share/examples/py-wxPython/samples; tar -xf -)
.include <bsd.port.mk>

4
x11/py-wxPython/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (wxPython-src-2.6.3.2.tar.gz) = a27546fab8a8d77eb6b67954e6362269
RMD160 (wxPython-src-2.6.3.2.tar.gz) = 4fabaefa4c066d1cccc5301bdd31cda16a55647b
SHA1 (wxPython-src-2.6.3.2.tar.gz) = 2f845459e089c615e15ac165b5135b688b9d62cf
SIZE (wxPython-src-2.6.3.2.tar.gz) = 18946956

View File

@ -0,0 +1,73 @@
$OpenBSD: patch-wxPython_config_py,v 1.1.1.1 2006/10/17 10:04:17 alek Exp $
--- wxPython/config.py.orig Tue Apr 4 06:00:19 2006
+++ wxPython/config.py Fri Oct 13 12:46:25 2006
@@ -107,7 +107,7 @@ FULL_DOCS = 0 # Some docstrings are
# cause the two strings to be combined and output
# as the full docstring.
-UNICODE = 0 # This will pass the 'wxUSE_UNICODE' flag to SWIG and
+UNICODE = 1 # This will pass the 'wxUSE_UNICODE' flag to SWIG and
# will ensure that the right headers are found and the
# right libs are linked.
@@ -123,7 +123,7 @@ UNDEF_NDEBUG = 1 # Python 2.2 on Unix/
NO_SCRIPTS = 0 # Don't install the tool scripts
NO_HEADERS = 0 # Don't install the wxPython *.h and *.i files
-INSTALL_MULTIVERSION = 1 # Install the packages such that multiple versions
+INSTALL_MULTIVERSION = 0 # Install the packages such that multiple versions
# can co-exist. When turned on the wx and wxPython
# pacakges will be installed in a versioned subdir
# of site-packages, and a *.pth file will be
@@ -136,7 +136,7 @@ INSTALL_MULTIVERSION = 1 # Install the p
FLAVOUR = "" # Optional flavour string to be appended to VERSION
# in MULTIVERSION installs
-EP_ADD_OPTS = 1 # When doing MULTIVERSION installs the wx port and
+EP_ADD_OPTS = 0 # When doing MULTIVERSION installs the wx port and
# ansi/unicode settings can optionally be added to the
# subdir path used in site-packages
@@ -179,7 +179,7 @@ CONTRIBS_INC = "" # A dir to add as an
# Some MSW build settings
-MONOLITHIC = 1 # The core wxWidgets lib can be built as either a
+MONOLITHIC = 0 # The core wxWidgets lib can be built as either a
# single monolithic DLL or as a collection of DLLs.
# This flag controls which set of libs will be used
# on Windows. (For other platforms it is automatic
@@ -512,13 +512,13 @@ class wx_install_headers(distutils.comma
if not headers:
return
- root = self.root
+ root = "!!WRKINST!!"
if root is None or WXPREFIX.startswith(root):
root = ''
for header, location in headers:
install_dir = os.path.normpath(root +
WXPREFIX +
- '/include/wx-%d.%d/wx' % (VER_MAJOR, VER_MINOR) +
+ '/include/wx' +
location)
self.mkpath(install_dir)
(out, _) = self.copy_file(header, install_dir)
@@ -573,7 +573,7 @@ def find_data_files(srcdir, *wildcards):
def makeLibName(name):
if os.name == 'posix':
- libname = '%s_%s-%s' % (WXBASENAME, name, WXRELEASE)
+ libname = '%s_%s' % (WXBASENAME, name)
elif name:
libname = 'wxmsw%s%s_%s' % (WXDLLVER, libFlag(), name)
else:
@@ -780,8 +780,6 @@ elif os.name == 'posix':
if debug:
cflags.append('-g')
cflags.append('-O0')
- else:
- cflags.append('-O3')
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
lflags = lflags.split()

View File

@ -0,0 +1,5 @@
wxPython is a GUI toolkit for the Python programming language. It allows
Python programmers to create programs with a robust, highly functional
graphical user interface, simply and easily. It is implemented as a
Python extension module (native code) that wraps the popular wxWidgets
cross platform GUI library, which is written in C++.

1115
x11/py-wxPython/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff