mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Finish py-wxPython28 removal and unbreak INDEX
This commit is contained in:
parent
6d70a5c95e
commit
e51a516185
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544942
1
MOVED
1
MOVED
@ -15375,3 +15375,4 @@ x11-toolkits/py-wxPython30||2020-08-15|Has expired: Uses deprecated version of p
|
||||
net-im/py-skype4py||2020-08-15|Has expired: Uses deprecated version of python
|
||||
net-im/telepathy-haze||2020-08-15|Has expired: Uses deprecated version of python
|
||||
www/halberd||2020-08-15|Has expired: Uses deprecated version of python
|
||||
x11-toolkits/py-wxPython28||2020-08-15|Has expired: Uses deprecated version of python
|
||||
|
@ -133,9 +133,6 @@ _WX_LIB_wx_2.8= wx_base${_WX_UC}-2.8
|
||||
_WX_PORT_contrib_2.8= x11-toolkits/wxgtk28-contrib
|
||||
_WX_LIB_contrib_2.8= wx_gtk2${_WX_UC}_fl-2.8
|
||||
|
||||
_WX_PORT_python_2.8= x11-toolkits/py-wxPython28
|
||||
_WX_FILE_python_2.8= ${PYTHON_SITELIBDIR}/wx-2.8-gtk2${_WX_PYSUFX}/wx/__init__.py
|
||||
|
||||
# wxgtk 3.0
|
||||
_WX_PORT_wx_3.0= x11-toolkits/wxgtk30
|
||||
_WX_LIB_wx_3.0= wx_baseu-3.0
|
||||
|
@ -180,7 +180,6 @@
|
||||
SUBDIR += py-qt5-widgets
|
||||
SUBDIR += py-tkinter
|
||||
SUBDIR += py-tktreectrl
|
||||
SUBDIR += py-wxPython28
|
||||
SUBDIR += py-wxPython40
|
||||
SUBDIR += py-xlib
|
||||
SUBDIR += pypy-tkinter
|
||||
|
@ -1,136 +0,0 @@
|
||||
# Created by: nectar@FreeBSD.org
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= wxPython
|
||||
PORTVERSION= 2.8.12.1
|
||||
DISTVERSIONPREFIX= src-
|
||||
PORTREVISION?= 12
|
||||
CATEGORIES= x11-toolkits python
|
||||
MASTER_SITES= SF/wxpython/wxPython/${PORTVERSION}
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
PKGNAMESUFFIX= 28
|
||||
|
||||
MAINTAINER= python@FreeBSD.org
|
||||
COMMENT= Python bindings for the wxWidgets/GTK GUI toolkit
|
||||
|
||||
DEPRECATED= Uses deprecated version of python
|
||||
EXPIRATION_DATE= 2020-08-15
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}PyOpenGL>=0:graphics/py-PyOpenGL@${PY_FLAVOR}
|
||||
|
||||
WRKSRC_SUBDIR= wxPython
|
||||
|
||||
DIST_SUBDIR= python
|
||||
USE_PYTHON= distutils
|
||||
USES= gettext gmake pkgconfig python:2.7 shebangfix tar:bzip2
|
||||
SHEBANG_FILES= wx/tools/Editra/Editra.pyw
|
||||
|
||||
PYDISTUTILS_BUILDARGS= \
|
||||
WX_CONFIG="${WX_CONFIG}" \
|
||||
WXPORT="${WXPORT}"
|
||||
PYDISTUTILS_CONFIGUREARGS= ${PYDISTUTILS_BUILDARGS}
|
||||
PYDISTUTILS_EGGINFODIR= ${PYTHONPREFIX_SITELIBDIR}/${WX_PYTHON_DIR}
|
||||
USE_WX= 2.8
|
||||
WX_COMPS= contrib
|
||||
WX_PREMK= yes
|
||||
DEMO_DIR= ${PYTHONPREFIX_SITELIBDIR}/wxPython/demo
|
||||
WXPORT= gtk2
|
||||
|
||||
CONFIGURE_ARGS+= --enable-aui
|
||||
|
||||
post-extract:
|
||||
# only keep the scripts we need
|
||||
@${RM} ${WRKSRC}/scripts/*.py
|
||||
|
||||
post-patch:
|
||||
# fix python location
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|/usr/bin/env python|${PYTHON_CMD}|' \
|
||||
${WRKSRC}/scripts/*
|
||||
@${RM} ${WRKSRC}/scripts/*.bak
|
||||
|
||||
pre-configure:
|
||||
# uphold PREFIX
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e "s|([[:space:]]*WXPREFIX[[:space:]]*=).*$$|\1'${PREFIX}'|" \
|
||||
${CONFIGURE_WRKSRC}/config.py
|
||||
|
||||
post-build:
|
||||
# Shared amongst ansi/unicode installations
|
||||
.if defined(WITH_COMMON_ONLY)
|
||||
. for dir in demo
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/${dir}
|
||||
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/${dir}
|
||||
. endfor
|
||||
.endif
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
@${FIND} ${WRKSRC} -name "*.so" | ${XARGS} ${STRIP_CMD}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
PLIST_SUB+= WX_VERSION=${USE_WX}
|
||||
|
||||
.if defined(WITH_COMMON_ONLY)
|
||||
## These are not shared amongst installations
|
||||
PKGNAMESUFFIX= 28-common
|
||||
|
||||
PYDISTUTILS_BUILDARGS+= \
|
||||
INSTALL_MULTIVERSION=1
|
||||
.else
|
||||
## These are shared
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}wxPython28-common>0:x11-toolkits/py-wxPython28-common@${PY_FLAVOR} \
|
||||
${PYTHON_SITELIBDIR}/wxversion.py:x11-toolkits/py-wxPython-common@${PY_FLAVOR}
|
||||
|
||||
PYDISTUTILS_BUILDARGS+= \
|
||||
NO_HEADERS=1 \
|
||||
NO_SCRIPTS=1 \
|
||||
INSTALL_MULTIVERSION=1
|
||||
|
||||
PYDISTUTILS_BUILDARGS+= \
|
||||
UNICODE=1
|
||||
WX_PYTHON_DIR= wx-${WX_VERSION}-${WXPORT}-unicode
|
||||
|
||||
# plist substitutions
|
||||
PLIST_SUB+= WX_PYTHON_DIR=${WX_PYTHON_DIR}
|
||||
|
||||
.endif # !defined(WITH_COMMON_ONLY)
|
||||
|
||||
# install arguments
|
||||
PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS} ${PYDISTUTILS_BUILDARGS}
|
||||
|
||||
## Shared amongst ansi/unicode installations
|
||||
# XXX - Override do-install since I was not able to tell setup.py to
|
||||
# do the right thing
|
||||
.if defined(WITH_COMMON_ONLY)
|
||||
do-install:
|
||||
# DEMO
|
||||
@${MKDIR} ${STAGEDIR}${DEMO_DIR}
|
||||
cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${DEMO_DIR}
|
||||
# header files
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/wx-${WX_VERSION}/wx/wxPython/i_files
|
||||
.for glob in *.i *.py
|
||||
${INSTALL_DATA} ${WRKSRC}/src/${glob} \
|
||||
${STAGEDIR}${PREFIX}/include/wx-${WX_VERSION}/wx/wxPython/i_files
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/include/wx/wxPython/*.h \
|
||||
${STAGEDIR}${PREFIX}/include/wx-${WX_VERSION}/wx/wxPython
|
||||
# scripts
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${STAGEDIR}${PREFIX}/bin
|
||||
.endif # defined(WITH_COMMON_ONLY)
|
||||
|
||||
post-install:
|
||||
.if !defined(WITH_COMMON_ONLY)
|
||||
@${ECHO_CMD} "@unexec ${REINPLACE_CMD} -i '' -e '\,${WX_PYTHON_DIR}$$,d' ${PYTHON_SITELIBDIR}/wx.pth 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@exec echo ${WX_PYTHON_DIR} >> ${PYTHON_SITELIBDIR}/wx.pth 2>/dev/null || true" >> ${TMPPLIST}
|
||||
# fix installation permissions
|
||||
${CHMOD} -R a+rX \
|
||||
${STAGEDIR}${PYTHON_SITELIBDIR:C@^${LOCALBASE}@${PREFIX}@}/${WX_PYTHON_DIR}
|
||||
# Remove unwanted .egg-info
|
||||
${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR:C@^${LOCALBASE}@${PREFIX}@}/wxPython_common-*.egg-info
|
||||
${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR:C@^${LOCALBASE}@${PREFIX}@}/wx.pth
|
||||
${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR:C@^${LOCALBASE}@${PREFIX}@}/wxversion*
|
||||
${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR:C@^${LOCALBASE}@${PREFIX}@}/${WX_PYTHON_DIR}/*.egg-info
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (python/wxPython-src-2.8.12.1.tar.bz2) = 1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0
|
||||
SIZE (python/wxPython-src-2.8.12.1.tar.bz2) = 31311482
|
@ -1,35 +0,0 @@
|
||||
--- config.py.orig 2013-12-13 11:26:53.752427019 -0200
|
||||
+++ config.py 2013-12-13 11:28:04.575423576 -0200
|
||||
@@ -38,7 +38,7 @@
|
||||
from distutils.dep_util import newer
|
||||
from distutils.spawn import spawn
|
||||
|
||||
-import distutils.command.install
|
||||
+import setuptools.command.install
|
||||
import distutils.command.install_data
|
||||
import distutils.command.install_headers
|
||||
import distutils.command.clean
|
||||
@@ -480,7 +480,7 @@
|
||||
# is used in our package build. If we detect that the current
|
||||
# distutils does not have it then make sure that it is removed from
|
||||
# the command-line options, otherwise the build will fail.
|
||||
-for item in distutils.command.install.install.user_options:
|
||||
+for item in setuptools.command.install.install.user_options:
|
||||
if item[0] == 'install-layout=':
|
||||
break
|
||||
else:
|
||||
@@ -491,12 +491,12 @@
|
||||
|
||||
|
||||
|
||||
-class wx_install(distutils.command.install.install):
|
||||
+class wx_install(setuptools.command.install.install):
|
||||
"""
|
||||
Turns off install_path_file
|
||||
"""
|
||||
def initialize_options(self):
|
||||
- distutils.command.install.install.initialize_options(self)
|
||||
+ setuptools.command.install.install.initialize_options(self)
|
||||
self.install_path_file = 0
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- ./setup.py.orig Mon Nov 26 19:05:40 2007
|
||||
+++ ./setup.py Thu Dec 20 21:05:46 2007
|
||||
@@ -776,6 +776,7 @@
|
||||
|
||||
wxpExtensions.append(ext)
|
||||
|
||||
+EXTRA_PATH = getExtraPath(addOpts=EP_ADD_OPTS)
|
||||
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
Latest stable branch of wxPython.
|
||||
|
||||
From the home page:
|
||||
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++.
|
||||
|
||||
wxPython is a cross-platform toolkit. This means that the same program
|
||||
will run on multiple platforms without modification. Currently supported
|
||||
platforms are Microsoft Windows, and most Unix or Unix-like systems.
|
||||
|
||||
WWW: http://www.wxpython.org/
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user