Moved to python/3.2.

This commit is contained in:
fgsch 2011-09-21 14:43:33 +00:00
parent 3505cd6312
commit abc3c2a2b8
28 changed files with 0 additions and 4983 deletions

View File

@ -1,9 +0,0 @@
# $OpenBSD: Makefile,v 1.4 2011/09/10 05:16:20 rpointel Exp $
VERSION = 3.2
PATCHLEVEL = .2
SHARED_LIBS = python3.2m 1.0
AUTOCONF_VERSION = 2.68
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
MD5 (Python-3.2.2.tgz) = PGOm2XMz9No1l2tqB1XrZw==
RMD160 (Python-3.2.2.tgz) = qKKv7BYFDBX6jJoMVNyKmy5fw1I=
SHA1 (Python-3.2.2.tgz) = tFn/R2sH5uSRCb6U575FdigOdo0=
SHA256 (Python-3.2.2.tgz) = rMahPLT+0LfoZxYySoQ34yZkW4B2F37t5aDK2Z7AMTw=
SIZE (Python-3.2.2.tgz) = 12732276

View File

@ -1,18 +0,0 @@
$OpenBSD: CHANGES.OpenBSD,v 1.1 2011/09/10 05:16:20 rpointel Exp $
As required by item 3 of the PSF license, here is a brief summary
of changes made to this version of Python for the OpenBSD package.
1. tempfile.py was patched to not try /usr/tmp as a possible
tempfile directory.
2. libpython is created as a shared library, and the pthread stack
size was doubled to support this with complex applications such
as Zope.
3. OpenBSD threads are used for threading support.
4. Regression tests have been taught about OpenBSD.
These changes are available in the OpenBSD CVS repository
<http://www.openbsd.org/anoncvs.html> in ports/lang/python3.

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Lib_tempfile_py,v 1.1.1.1 2011/06/27 18:44:13 rpointel Exp $
--- Lib/tempfile.py.orig Wed Jun 22 14:12:22 2011
+++ Lib/tempfile.py Wed Jun 22 14:12:37 2011
@@ -139,7 +139,7 @@ def _candidate_tempdir_list():
if _os.name == 'nt':
dirlist.extend([ r'c:\temp', r'c:\tmp', r'\temp', r'\tmp' ])
else:
- dirlist.extend([ '/tmp', '/var/tmp', '/usr/tmp' ])
+ dirlist.extend([ '/tmp', '/var/tmp' ])
# As a last resort, the current directory.
try:

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Lib_test_regrtest_py,v 1.1.1.1 2011/06/27 18:44:13 rpointel Exp $
--- Lib/test/regrtest.py.orig Wed Jun 22 14:13:21 2011
+++ Lib/test/regrtest.py Wed Jun 22 14:13:52 2011
@@ -1433,6 +1433,8 @@ _expectations['freebsd5'] = _expectations['freebsd4']
_expectations['freebsd6'] = _expectations['freebsd4']
_expectations['freebsd7'] = _expectations['freebsd4']
_expectations['freebsd8'] = _expectations['freebsd4']
+_expectations['openbsd4'] = _expectations['openbsd3']
+_expectations['openbsd5'] = _expectations['openbsd3']
class _ExpectedSkips:
def __init__(self):

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-Lib_test_test_fcntl_py,v 1.1 2011/09/10 05:16:20 rpointel Exp $
http://bugs.python.org/issue12821
--- Lib/test/test_fcntl.py.orig Sat Aug 13 19:31:23 2011
+++ Lib/test/test_fcntl.py Tue Aug 23 08:41:19 2011
@@ -28,7 +28,8 @@
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
'freebsd6', 'freebsd7', 'freebsd8',
'bsdos2', 'bsdos3', 'bsdos4',
- 'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
+ 'openbsd', 'openbsd2', 'openbsd3', 'openbsd4',
+ 'openbsd5'):
if struct.calcsize('l') == 8:
off_t = 'l'
pid_t = 'i'

View File

@ -1,44 +0,0 @@
$OpenBSD: patch-Lib_test_test_io_py,v 1.1 2011/07/20 12:06:57 rpointel Exp $
--- Lib/test/test_io.py.orig Sat Jul 9 08:58:50 2011
+++ Lib/test/test_io.py Mon Jul 11 14:13:36 2011
@@ -2694,12 +2694,15 @@
if e.errno != errno.EBADF:
raise
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupted_write_unbuffered(self):
self.check_interrupted_write(b"xy", b"xy", mode="wb", buffering=0)
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupted_write_buffered(self):
self.check_interrupted_write(b"xy", b"xy", mode="wb")
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupted_write_text(self):
self.check_interrupted_write("xy", b"xy", mode="w", encoding="ascii")
@@ -2758,10 +2761,12 @@
os.close(w)
os.close(r)
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupterd_read_retry_buffered(self):
self.check_interrupted_read_retry(lambda x: x.decode('latin1'),
mode="rb")
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupterd_read_retry_text(self):
self.check_interrupted_read_retry(lambda x: x,
mode="r")
@@ -2821,9 +2826,11 @@
if e.errno != errno.EBADF:
raise
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupterd_write_retry_buffered(self):
self.check_interrupted_write_retry(b"x", mode="wb")
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_interrupterd_write_retry_text(self):
self.check_interrupted_write_retry("x", mode="w", encoding="latin1")

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-Lib_test_test_socket_py,v 1.1 2011/07/20 12:06:57 rpointel Exp $
--- Lib/test/test_socket.py.orig Wed Jan 5 22:03:42 2011
+++ Lib/test/test_socket.py Wed Jun 29 15:00:12 2011
@@ -715,6 +715,7 @@
c.close()
s.close()
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_sendall_interrupted(self):
self.check_sendall_interrupted(False)

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-Lib_test_test_subprocess_py,v 1.1 2011/07/20 12:06:57 rpointel Exp $
--- Lib/test/test_subprocess.py.orig Mon Jan 3 23:24:52 2011
+++ Lib/test/test_subprocess.py Wed Jun 29 15:36:22 2011
@@ -1189,6 +1189,7 @@
close_fds=False, pass_fds=(fd, )))
self.assertIn('overriding close_fds', str(context.warning))
+ @unittest.skipIf(sys.platform.startswith("openbsd"), "blocking on OpenBSD")
def test_wait_when_sigchild_ignored(self):
# NOTE: sigchild_ignore.py may not be an effective test on all OSes.
sigchild_ignore = support.findfile("sigchild_ignore.py",

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-Lib_test_test_tempfile_py,v 1.1 2011/09/10 05:16:20 rpointel Exp $
--- Lib/test/test_tempfile.py.orig Tue Aug 23 08:42:51 2011
+++ Lib/test/test_tempfile.py Tue Aug 23 08:43:21 2011
@@ -20,7 +20,7 @@
# TEST_FILES may need to be tweaked for systems depending on the maximum
# number of files that can be opened at one time (see ulimit -n)
-if sys.platform in ('openbsd3', 'openbsd4'):
+if sys.platform in ('openbsd3', 'openbsd4', 'openbsd5'):
TEST_FILES = 48
else:
TEST_FILES = 100

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-Makefile_pre_in,v 1.1.1.1 2011/06/27 18:44:14 rpointel Exp $
--- Makefile.pre.in.orig Sat Feb 19 09:47:14 2011
+++ Makefile.pre.in Wed Jun 22 14:50:09 2011
@@ -389,6 +389,8 @@ LIBRARY_OBJS= \
#########################################################################
# Rules
+everything: all $(srcdir)/Lib/$(PLATDIR)
+
# Default target
all: build_all
build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
@@ -474,7 +476,7 @@ gdbhooks: $(BUILDPYTHON)-gdb.py
SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py
$(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS)
- $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
+ cp $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
# minimal framework (not including the Lib directory and such) in the current

View File

@ -1,11 +0,0 @@
$OpenBSD: patch-Modules_makesetup,v 1.1.1.1 2011/06/27 18:44:13 rpointel Exp $
--- Modules/makesetup.orig Wed Jun 22 14:21:11 2011
+++ Modules/makesetup Wed Jun 22 14:21:25 2011
@@ -164,6 +164,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
-rpath) libs="$libs $arg"; skip=libs;;
--rpath) libs="$libs $arg"; skip=libs;;
-[A-Zl]*) libs="$libs $arg";;
+ -pthread*) libs="$libs $arg";;
*.a) libs="$libs $arg";;
*.so) libs="$libs $arg";;
*.sl) libs="$libs $arg";;

View File

@ -1,15 +0,0 @@
$OpenBSD: patch-Modules_pyexpat_c,v 1.1.1.1 2011/06/27 18:44:13 rpointel Exp $
--- Modules/pyexpat.c.orig Wed Jun 22 14:04:44 2011
+++ Modules/pyexpat.c Wed Jun 22 14:05:09 2011
@@ -365,6 +365,11 @@ call_character_handler(xmlparseobject *self, const XML
noop_character_data_handler);
return -1;
}
+ if (!have_handler(self, CharacterData)) {
+ Py_DECREF(args);
+ flag_error(self);
+ return -1;
+ }
PyTuple_SET_ITEM(args, 0, temp);
/* temp is now a borrowed reference; consider it unused. */
self->in_callback = 1;

View File

@ -1,44 +0,0 @@
$OpenBSD: patch-Modules_selectmodule_c,v 1.1.1.1 2011/06/27 18:44:14 rpointel Exp $
--- Modules/selectmodule.c.orig Wed Nov 3 13:27:33 2010
+++ Modules/selectmodule.c Thu Jun 2 00:40:37 2011
@@ -1215,6 +1215,7 @@ static PyTypeObject kqueue_queue_Type;
*/
#define KQ_OFF(x) offsetof(kqueue_event_Object, x)
+#if !defined(__OpenBSD__)
static struct PyMemberDef kqueue_event_members[] = {
{"ident", T_UINTPTRT, KQ_OFF(e.ident)},
{"filter", T_SHORT, KQ_OFF(e.filter)},
@@ -1224,6 +1225,19 @@ static struct PyMemberDef kqueue_event_members[] = {
{"udata", T_UINTPTRT, KQ_OFF(e.udata)},
{NULL} /* Sentinel */
};
+#else
+static struct PyMemberDef kqueue_event_members[] = {
+ {"ident", T_UINT, KQ_OFF(e.ident)},
+ {"filter", T_SHORT, KQ_OFF(e.filter)},
+ {"flags", T_USHORT, KQ_OFF(e.flags)},
+ {"fflags", T_UINT, KQ_OFF(e.fflags)},
+ {"data", T_INT, KQ_OFF(e.data)},
+ {"udata", T_UINTPTRT, KQ_OFF(e.udata)},
+ {NULL} /* Sentinel */
+};
+# undef INTPTRT_FMT_UNIT
+# define INTPTRT_FMT_UNIT "i"
+#endif
#undef KQ_OFF
static PyObject *
@@ -1285,10 +1299,10 @@ kqueue_event_richcompare(kqueue_event_Object *s, kqueu
Py_TYPE(s)->tp_name, Py_TYPE(o)->tp_name);
return NULL;
}
- if (((result = s->e.ident - o->e.ident) == 0) &&
+ if (((result = (int)(s->e.ident - o->e.ident)) == 0) &&
((result = s->e.filter - o->e.filter) == 0) &&
((result = s->e.flags - o->e.flags) == 0) &&
- ((result = s->e.fflags - o->e.fflags) == 0) &&
+ ((result = (int)(s->e.fflags - o->e.fflags)) == 0) &&
((result = s->e.data - o->e.data) == 0) &&
((result = s->e.udata - o->e.udata) == 0)
) {

View File

@ -1,53 +0,0 @@
$OpenBSD: patch-configure_in,v 1.3 2011/09/10 05:16:20 rpointel Exp $
--- configure.in.orig Sat Sep 3 18:16:50 2011
+++ configure.in Mon Sep 5 20:00:17 2011
@@ -1773,7 +1773,7 @@
BSD/OS*/4*)
LDSHARED="gcc -shared"
LDCXXSHARED="g++ -shared";;
- FreeBSD*)
+ FreeBSD*|OpenBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LDSHARED='$(CC) -shared'
@@ -1781,22 +1781,6 @@
else
LDSHARED="ld -Bshareable"
fi;;
- OpenBSD*)
- if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
- then
- LDSHARED='$(CC) -shared $(CCSHARED)'
- LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
- else
- case `uname -r` in
- [[01]].* | 2.[[0-7]] | 2.[[0-7]].*)
- LDSHARED="ld -Bshareable ${LDFLAGS}"
- ;;
- *)
- LDSHARED='$(CC) -shared $(CCSHARED)'
- LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
- ;;
- esac
- fi;;
NetBSD*|DragonFly*)
LDSHARED='$(CC) -shared'
LDCXXSHARED='$(CXX) -shared';;
@@ -1946,9 +1930,14 @@
# only check for sem_init if thread support is requested
if test "$with_threads" = "yes" -o -z "$with_threads"; then
- AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
- # posix4 on Solaris 2.6
- # pthread (first!) on Linux
+ case $ac_sys_system/$ac_sys_release in
+ OpenBSD*)
+ LIBS="-pthread $(LIBS)" ;;
+ *)
+ AC_SEARCH_LIBS(sem_init, pthread rt posix4) ;; # 'Real Time' functions on Solaris
+ # posix4 on Solaris 2.6
+ # pthread (first!) on Linux
+ esac
fi
# check if we need libintl for locale functions

View File

@ -1,15 +0,0 @@
Python is an interpreted, interactive, object-oriented programming
language that combines remarkable power with very clear syntax. For
an introduction to programming in Python you are referred to the
Python Tutorial. The Python Library Reference documents built-in
and standard types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics of the
core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules written
in C or C++. On most systems such modules may be dynamically loaded.
Python is also adaptable as an extension language for existing
applications. See the internal documentation for hints.
This package contains the gdbm, for using the GNU DBM library in
Python.

View File

@ -1,14 +0,0 @@
Python is an interpreted, interactive, object-oriented programming
language that combines remarkable power with very clear syntax. For
an introduction to programming in Python you are referred to the
Python Tutorial. The Python Library Reference documents built-in
and standard types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics of the
core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules written
in C or C++. On most systems such modules may be dynamically loaded.
Python is also adaptable as an extension language for existing
applications. See the internal documentation for hints.
This package contains IDE for Python.

View File

@ -1,14 +0,0 @@
Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The Python
Library Reference documents built-in and standard types,
constants, functions and modules. Finally, the Python
Reference Manual describes the syntax and semantics of the
core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an
extension language for existing applications. See the
internal documentation for hints.

View File

@ -1,14 +0,0 @@
Python is an interpreted, interactive, object-oriented programming
language that combines remarkable power with very clear syntax. For
an introduction to programming in Python you are referred to the
Python Tutorial. The Python Library Reference documents built-in
and standard types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics of the
core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules written
in C or C++. On most systems such modules may be dynamically loaded.
Python is also adaptable as an extension language for existing
applications. See the internal documentation for hints.
This package contains the Python testsuite.

View File

@ -1,15 +0,0 @@
Python is an interpreted, interactive, object-oriented programming
language that combines remarkable power with very clear syntax. For
an introduction to programming in Python you are referred to the
Python Tutorial. The Python Library Reference documents built-in
and standard types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics of the
core language in (perhaps too) much detail.
Python's basic power can be extended with your own modules written
in C or C++. On most systems such modules may be dynamically loaded.
Python is also adaptable as an extension language for existing
applications. See the internal documentation for hints.
This package contains the Tkinter module, for using the tk toolkit
in Python.

View File

@ -1,2 +0,0 @@
@comment $OpenBSD: PLIST-gdbm,v 1.1.1.1 2011/06/27 18:44:15 rpointel Exp $
lib/python3.2/lib-dynload/_gdbm.so

View File

@ -1,204 +0,0 @@
@comment $OpenBSD: PLIST-idle,v 1.1.1.1 2011/06/27 18:44:15 rpointel Exp $
bin/idle3
bin/idle3.2
lib/python3.2/idlelib/
lib/python3.2/idlelib/AutoComplete.py
lib/python3.2/idlelib/AutoCompleteWindow.py
lib/python3.2/idlelib/AutoExpand.py
lib/python3.2/idlelib/Bindings.py
lib/python3.2/idlelib/CREDITS.txt
lib/python3.2/idlelib/CallTipWindow.py
lib/python3.2/idlelib/CallTips.py
lib/python3.2/idlelib/ChangeLog
lib/python3.2/idlelib/ClassBrowser.py
lib/python3.2/idlelib/CodeContext.py
lib/python3.2/idlelib/ColorDelegator.py
lib/python3.2/idlelib/Debugger.py
lib/python3.2/idlelib/Delegator.py
lib/python3.2/idlelib/EditorWindow.py
lib/python3.2/idlelib/FileList.py
lib/python3.2/idlelib/FormatParagraph.py
lib/python3.2/idlelib/GrepDialog.py
lib/python3.2/idlelib/HISTORY.txt
lib/python3.2/idlelib/HyperParser.py
lib/python3.2/idlelib/IOBinding.py
lib/python3.2/idlelib/Icons/
lib/python3.2/idlelib/Icons/folder.gif
lib/python3.2/idlelib/Icons/idle.icns
lib/python3.2/idlelib/Icons/minusnode.gif
lib/python3.2/idlelib/Icons/openfolder.gif
lib/python3.2/idlelib/Icons/plusnode.gif
lib/python3.2/idlelib/Icons/python.gif
lib/python3.2/idlelib/Icons/tk.gif
lib/python3.2/idlelib/IdleHistory.py
lib/python3.2/idlelib/MultiCall.py
lib/python3.2/idlelib/MultiStatusBar.py
lib/python3.2/idlelib/NEWS.txt
lib/python3.2/idlelib/ObjectBrowser.py
lib/python3.2/idlelib/OutputWindow.py
lib/python3.2/idlelib/ParenMatch.py
lib/python3.2/idlelib/PathBrowser.py
lib/python3.2/idlelib/Percolator.py
lib/python3.2/idlelib/PyParse.py
lib/python3.2/idlelib/PyShell.py
lib/python3.2/idlelib/README.txt
lib/python3.2/idlelib/RemoteDebugger.py
lib/python3.2/idlelib/RemoteObjectBrowser.py
lib/python3.2/idlelib/ReplaceDialog.py
lib/python3.2/idlelib/RstripExtension.py
lib/python3.2/idlelib/ScriptBinding.py
lib/python3.2/idlelib/ScrolledList.py
lib/python3.2/idlelib/SearchDialog.py
lib/python3.2/idlelib/SearchDialogBase.py
lib/python3.2/idlelib/SearchEngine.py
lib/python3.2/idlelib/StackViewer.py
lib/python3.2/idlelib/TODO.txt
lib/python3.2/idlelib/ToolTip.py
lib/python3.2/idlelib/TreeWidget.py
lib/python3.2/idlelib/UndoDelegator.py
lib/python3.2/idlelib/WidgetRedirector.py
lib/python3.2/idlelib/WindowList.py
lib/python3.2/idlelib/ZoomHeight.py
lib/python3.2/idlelib/__init__.py
lib/python3.2/idlelib/__pycache__/
lib/python3.2/idlelib/__pycache__/AutoComplete.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/AutoComplete.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/AutoCompleteWindow.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/AutoCompleteWindow.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/AutoExpand.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/AutoExpand.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/Bindings.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/Bindings.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/CallTipWindow.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/CallTipWindow.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/CallTips.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/CallTips.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ClassBrowser.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ClassBrowser.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/CodeContext.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/CodeContext.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ColorDelegator.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ColorDelegator.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/Debugger.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/Debugger.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/Delegator.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/Delegator.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/EditorWindow.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/EditorWindow.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/FileList.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/FileList.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/FormatParagraph.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/FormatParagraph.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/GrepDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/GrepDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/HyperParser.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/HyperParser.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/IOBinding.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/IOBinding.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/IdleHistory.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/IdleHistory.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/MultiCall.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/MultiCall.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/MultiStatusBar.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/MultiStatusBar.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ObjectBrowser.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ObjectBrowser.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/OutputWindow.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/OutputWindow.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ParenMatch.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ParenMatch.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/PathBrowser.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/PathBrowser.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/Percolator.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/Percolator.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/PyParse.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/PyParse.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/PyShell.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/PyShell.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/RemoteDebugger.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/RemoteDebugger.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/RemoteObjectBrowser.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/RemoteObjectBrowser.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ReplaceDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ReplaceDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/RstripExtension.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/RstripExtension.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ScriptBinding.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ScriptBinding.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ScrolledList.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ScrolledList.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/SearchDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/SearchDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/SearchDialogBase.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/SearchDialogBase.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/SearchEngine.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/SearchEngine.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/StackViewer.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/StackViewer.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ToolTip.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ToolTip.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/TreeWidget.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/TreeWidget.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/UndoDelegator.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/UndoDelegator.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/WidgetRedirector.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/WidgetRedirector.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/WindowList.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/WindowList.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/ZoomHeight.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/ZoomHeight.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/__init__.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/__init__.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/aboutDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/aboutDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/configDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/configDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/configHandler.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/configHandler.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/configHelpSourceEdit.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/configHelpSourceEdit.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/configSectionNameDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/configSectionNameDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/dynOptionMenuWidget.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/dynOptionMenuWidget.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/idle.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/idle.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/idlever.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/idlever.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/keybindingDialog.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/keybindingDialog.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/macosxSupport.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/macosxSupport.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/rpc.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/rpc.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/run.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/run.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/tabbedpages.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/tabbedpages.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/testcode.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/testcode.cpython-32.pyo
lib/python3.2/idlelib/__pycache__/textView.cpython-32.pyc
lib/python3.2/idlelib/__pycache__/textView.cpython-32.pyo
lib/python3.2/idlelib/aboutDialog.py
lib/python3.2/idlelib/config-extensions.def
lib/python3.2/idlelib/config-highlight.def
lib/python3.2/idlelib/config-keys.def
lib/python3.2/idlelib/config-main.def
lib/python3.2/idlelib/configDialog.py
lib/python3.2/idlelib/configHandler.py
lib/python3.2/idlelib/configHelpSourceEdit.py
lib/python3.2/idlelib/configSectionNameDialog.py
lib/python3.2/idlelib/dynOptionMenuWidget.py
lib/python3.2/idlelib/extend.txt
lib/python3.2/idlelib/help.txt
lib/python3.2/idlelib/idle.bat
lib/python3.2/idlelib/idle.py
lib/python3.2/idlelib/idle.pyw
lib/python3.2/idlelib/idlever.py
lib/python3.2/idlelib/keybindingDialog.py
lib/python3.2/idlelib/macosxSupport.py
lib/python3.2/idlelib/rpc.py
lib/python3.2/idlelib/run.py
lib/python3.2/idlelib/tabbedpages.py
lib/python3.2/idlelib/testcode.py
lib/python3.2/idlelib/textView.py

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,92 +0,0 @@
@comment $OpenBSD: PLIST-tkinter,v 1.1.1.1 2011/06/27 18:44:15 rpointel Exp $
lib/python3.2/lib-dynload/_tkinter.so
lib/python3.2/tkinter/
lib/python3.2/tkinter/__init__.py
lib/python3.2/tkinter/__main__.py
lib/python3.2/tkinter/__pycache__/
lib/python3.2/tkinter/__pycache__/__init__.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/__init__.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/__main__.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/__main__.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/_fix.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/_fix.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/colorchooser.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/colorchooser.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/commondialog.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/commondialog.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/constants.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/constants.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/dialog.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/dialog.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/dnd.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/dnd.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/filedialog.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/filedialog.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/font.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/font.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/messagebox.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/messagebox.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/scrolledtext.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/scrolledtext.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/simpledialog.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/simpledialog.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/tix.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/tix.cpython-32.pyo
lib/python3.2/tkinter/__pycache__/ttk.cpython-32.pyc
lib/python3.2/tkinter/__pycache__/ttk.cpython-32.pyo
lib/python3.2/tkinter/_fix.py
lib/python3.2/tkinter/colorchooser.py
lib/python3.2/tkinter/commondialog.py
lib/python3.2/tkinter/constants.py
lib/python3.2/tkinter/dialog.py
lib/python3.2/tkinter/dnd.py
lib/python3.2/tkinter/filedialog.py
lib/python3.2/tkinter/font.py
lib/python3.2/tkinter/messagebox.py
lib/python3.2/tkinter/scrolledtext.py
lib/python3.2/tkinter/simpledialog.py
lib/python3.2/tkinter/test/
lib/python3.2/tkinter/test/README
lib/python3.2/tkinter/test/__init__.py
lib/python3.2/tkinter/test/__pycache__/
lib/python3.2/tkinter/test/__pycache__/__init__.cpython-32.pyc
lib/python3.2/tkinter/test/__pycache__/__init__.cpython-32.pyo
lib/python3.2/tkinter/test/__pycache__/runtktests.cpython-32.pyc
lib/python3.2/tkinter/test/__pycache__/runtktests.cpython-32.pyo
lib/python3.2/tkinter/test/__pycache__/support.cpython-32.pyc
lib/python3.2/tkinter/test/__pycache__/support.cpython-32.pyo
lib/python3.2/tkinter/test/runtktests.py
lib/python3.2/tkinter/test/support.py
lib/python3.2/tkinter/test/test_tkinter/
lib/python3.2/tkinter/test/test_tkinter/__init__.py
lib/python3.2/tkinter/test/test_tkinter/__pycache__/
lib/python3.2/tkinter/test/test_tkinter/__pycache__/__init__.cpython-32.pyc
lib/python3.2/tkinter/test/test_tkinter/__pycache__/__init__.cpython-32.pyo
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_font.cpython-32.pyc
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_font.cpython-32.pyo
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_loadtk.cpython-32.pyc
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_loadtk.cpython-32.pyo
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_text.cpython-32.pyc
lib/python3.2/tkinter/test/test_tkinter/__pycache__/test_text.cpython-32.pyo
lib/python3.2/tkinter/test/test_tkinter/test_font.py
lib/python3.2/tkinter/test/test_tkinter/test_loadtk.py
lib/python3.2/tkinter/test/test_tkinter/test_text.py
lib/python3.2/tkinter/test/test_ttk/
lib/python3.2/tkinter/test/test_ttk/__init__.py
lib/python3.2/tkinter/test/test_ttk/__pycache__/
lib/python3.2/tkinter/test/test_ttk/__pycache__/__init__.cpython-32.pyc
lib/python3.2/tkinter/test/test_ttk/__pycache__/__init__.cpython-32.pyo
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_extensions.cpython-32.pyc
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_extensions.cpython-32.pyo
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_functions.cpython-32.pyc
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_functions.cpython-32.pyo
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_style.cpython-32.pyc
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_style.cpython-32.pyo
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_widgets.cpython-32.pyc
lib/python3.2/tkinter/test/test_ttk/__pycache__/test_widgets.cpython-32.pyo
lib/python3.2/tkinter/test/test_ttk/test_extensions.py
lib/python3.2/tkinter/test/test_ttk/test_functions.py
lib/python3.2/tkinter/test/test_ttk/test_style.py
lib/python3.2/tkinter/test/test_ttk/test_widgets.py
lib/python3.2/tkinter/tix.py
lib/python3.2/tkinter/ttk.py

View File

@ -1,7 +0,0 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/27 18:44:13 rpointel Exp $
SUBDIR =
SUBDIR += 3.2
.include <bsd.port.subdir.mk>

View File

@ -1,124 +0,0 @@
# $OpenBSD: Makefile.inc,v 1.4 2011/09/10 05:16:20 rpointel Exp $
# IMPORTANT! If you make any changes to the Python ports, be sure
# to also update files/CHANGES.OpenBSD for your change. This is a
# requirement of the PSF license, if it constitutes a change to
# Python itself.
SHARED_ONLY= Yes
COMMENT-main= interpreted object-oriented programming language
COMMENT-gdbm= GNU dbm module for Python
COMMENT-idle= IDE for Python
COMMENT-tests= Python test suite
COMMENT-tkinter=tk GUI module for Python
DISTNAME= Python-${VERSION}${PATCHLEVEL}
PKGNAME-main= python3-${VERSION}${PATCHLEVEL}
PKGNAME-gdbm= python3-gdbm-${VERSION}${PATCHLEVEL}
PKGNAME-idle= python3-idle-${VERSION}${PATCHLEVEL}
PKGNAME-tests= python3-tests-${VERSION}${PATCHLEVEL}
PKGNAME-tkinter=python3-tkinter-${VERSION}${PATCHLEVEL}
CATEGORIES= lang
MASTER_SITES= http://www.python.org/ftp/${PSUBDIR}/ \
http://python.mirrors.pair.com/pub/${PSUBDIR}/
PSUBDIR?= python/${VERSION}${PATCHLEVEL}
EXTRACT_SUFX= .tgz
HOMEPAGE= http://www.python.org/
MAINTAINER= Remi Pointel <rpointel@openbsd.org>
# PSF license <http://www.python.org/${VERSION}/license.html>
# A summary of changes to Python is required to be distributed
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MULTI_PACKAGES= -main -tests -gdbm -idle -tkinter
# Python 2.6 lists BSD db 4.6.x as unstable on most architectures (see
# setup.py:allow_db_version). XXX revisit if databases/db/v4 is updated to 4.7
#.if ${VERSION} == "2.6" || ${VERSION} == "2.7"
#ONLY_FOR_ARCHS-bsddb= amd64 i386
#.endif
# All subpackages depend on the main python package.
RUN_DEPENDS= ${FULLPKGNAME-main}:lang/python3/${VERSION},-main
LIB_DEPENDS=
LIB_DEPENDS-main = archivers/bzip2
RUN_DEPENDS-main =
WANTLIB-main = ssl panelw m crypto c util z readline pthread \
ncursesw stdc++ expat bz2 ffi
LIB_DEPENDS-main += databases/sqlite3 \
devel/libffi
WANTLIB-main += sqlite3
LIB_DEPENDS-gdbm = databases/gdbm \
lang/python3/${VERSION},-main
WANTLIB-gdbm = gdbm>=3 python${VERSION}m
RUN_DEPENDS-idle = ${RUN_DEPENDS} \
lang/python3/${VERSION},-tkinter
# XXX Tcl/Tk version number handled in patch-setup_py
MODULES += x11/tk
LIB_DEPENDS-tkinter = ${MODTK_LIB_DEPENDS} \
lang/python3/${VERSION},-main
WANTLIB-tkinter = X11 ${MODTK_WANTLIB} python${VERSION}m
USE_GROFF = Yes
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
# --srcdir is needed for systrace to work correctly
CONFIGURE_ARGS+= --with-fpectl --with-threads --srcdir=${WRKSRC}
CONFIGURE_ARGS+= --enable-ipv6 --with-cxx_main
CONFIGURE_ARGS+= --with-system-ffi --with-system-expat
# THREAD_STACK_SIZE value might be changed by particular python release
THREAD_STACK_SIZE?=0x20000
CONFIGURE_ENV+= OPT='${CFLAGS} -DTHREAD_STACK_SIZE=${THREAD_STACK_SIZE} -fPIC' \
LDFLAGS='-L${LOCALBASE}/lib/' SVNVERSION=no \
LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
MAKE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
#MAKE_FLAGS+= LDLIBRARY=libpython${VERSION}m.so.${LIBpython${VERSION}_VERSION}
#MAKE_FLAGS+= LDLIBRARY=libpython3.2m.so.${LIBpython${VERSION}m_VERSION}
MAKE_FLAGS+= LD_LIBRARY_PATH=${WRKSRC} PATH="${WRKDIST}:${PORTPATH}"
MAKE_FLAGS+= LDFLAGS='-L${WRKSRC}'
FAKE_FLAGS+= RANLIB=:
ALL_TARGET?= everything ./Lib/plat-openbsd5
post-extract:
rm -r ${WRKDIST}/Modules/expat
rm -r ${WRKDIST}/Modules/_ctypes/libffi
post-configure:
@cd ${WRKSRC} && ${MAKE_PROGRAM} Makefile
post-build:
perl -pi -e \
's@#! */usr/bin/env +python@#!${PREFIX}/bin/python${VERSION}@' \
${WRKSRC}/Tools/scripts/pydoc3
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/python${VERSION}
${INSTALL_DATA} ${FILESDIR}/CHANGES.OpenBSD \
${PREFIX}/share/doc/python${VERSION}/CHANGES.OpenBSD
# ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/pydoc \
# ${PREFIX}/bin/pydoc${VERSION}
# @sed -e "s,@VERSION@,${VERSION},g" -e "s,@LOCALBASE@,${LOCALBASE},g" \
# ${FILESDIR}/idle > ${WRKSRC}/idle
# ${INSTALL_SCRIPT} ${WRKSRC}/idle ${PREFIX}/bin/idle${VERSION}
# @cd ${WRKSRC}; tar -cf - Tools | (cd ${PREFIX}/lib/python${VERSION}; \
# tar -xf -)
# ${INSTALL_SCRIPT} ${WRKSRC}/Tools/scripts/2to3 \
# ${PREFIX}/bin/python${VERSION}-2to3
REGRESS_TARGET= test
REGRESS_FLAGS= "EXTRATESTOPTS=-w"
# Some regress tests write to $HOME
PORTHOME= ${WRKDIR}

View File

@ -1,134 +0,0 @@
# $OpenBSD: python3.port.mk,v 1.2 2011/09/17 12:05:33 rpointel Exp $
#
# python.port.mk - Xavier Santolaria <xavier@santolaria.net>
# This file is in the public domain.
SHARED_ONLY= Yes
CATEGORIES+= lang/python3
# Prefix PKGNAME with py3- by default and strip potential
# existing py|python prefix, override if needed
PKGNAME ?= py3-${DISTNAME:C/py(thon|-?)//}
MODPY_VERSION?= 3.2
.if ${MODPY_VERSION} == 3.2
MODPY_VSPEC = >=${MODPY_VERSION},<3.3
.endif
MODPYSPEC = python3-${MODPY_VSPEC}
MODPY_WANTLIB= python${MODPY_VERSION}m
MODPY_RUN_DEPENDS= ${MODPYSPEC}:lang/python3/${MODPY_VERSION}
MODPY_LIB_DEPENDS= ${MODPY_RUN_DEPENDS}
_MODPY_BUILD_DEPENDS= ${MODPY_RUN_DEPENDS}
MODPY_BUILDDEP?= Yes
MODPY_RUNDEP?= Yes
.if ${NO_BUILD:L} == "no" && ${MODPY_BUILDDEP:L} == "yes"
BUILD_DEPENDS+= ${_MODPY_BUILD_DEPENDS}
.endif
.if ${MODPY_RUNDEP:L} == "yes"
RUN_DEPENDS+= ${MODPY_RUN_DEPENDS}
.endif
MODPY_PRE_BUILD_STEPS = @:
.if defined(MODPY_DISTRIBUTE) && ${MODPY_DISTRIBUTE:U} == YES
# The setuptools module provides a package locator (site.py) that is
# required at runtime for the pkg_resources stuff to work
MODPY_DISTRIBUTEUTILS_DEPEND?=devel/py3-distribute
MODPY_RUN_DEPENDS+= ${MODPY_DISTRIBUTEUTILS_DEPEND}
BUILD_DEPENDS+= ${MODPY_DISTRIBUTEUTILS_DEPEND}
# The setuptools uses test target
REGRESS_TARGET?= test
_MODPY_USERBASE =
.else
# Try to detect the case where a port will build regardless of setuptools
# but the final plist will be different if it's present.
_MODPY_DISTRIBUTE_FAKE_DIR = \
${WRKDIR}/lib/python${MODPY_VERSION}/site-packages/setuptools
MODPY_PRE_BUILD_STEPS += \
;mkdir -p ${_MODPY_DISTRIBUTE_FAKE_DIR} \
;exec >${_MODPY_DISTRIBUTE_FAKE_DIR}/__init__.py \
;echo 'def setup(*args, **kwargs):' \
;echo ' msg = "OpenBSD ports: MODPY_DISTRIBUTE = Yes is required"' \
;echo ' raise Exception(msg)' \
;echo 'Extension = Feature = find_packages = setup'
_MODPY_USERBASE = ${WRKDIR}
.endif
.if !defined(NO_SHARED_LIBS) || ${NO_SHARED_LIBS:U} != YES
MODPY_TKINTER_DEPENDS= STEM-${MODPY_VSPEC}:lang/python3/${MODPY_VERSION},-tkinter
.endif
MODPY_BIN= ${LOCALBASE}/bin/python${MODPY_VERSION}
MODPY_INCDIR= ${LOCALBASE}/include/python${MODPY_VERSION}
MODPY_LIBDIR= ${LOCALBASE}/lib/python${MODPY_VERSION}
MODPY_SITEPKG= ${MODPY_LIBDIR}/site-packages
.if defined(MODPY_BADEGGS)
. for egg in ${MODPY_BADEGGS}
MODPY_PRE_BUILD_STEPS += ;mkdir -p ${WRKBUILD}/${egg}.egg-info
. endfor
.endif
# usually setup.py but Setup.py can be found too
MODPY_SETUP?= setup.py
# build or build_ext are commonly used
MODPY_DISTUTILS_BUILD?= build --build-base=${WRKSRC}
.if defined(MODPY_DISTRIBUTE) && ${MODPY_DISTRIBUTE:U} == YES
MODPY_DISTUTILS_INSTALL?= install --prefix=${LOCALBASE} \
--root=${DESTDIR} \
--single-version-externally-managed
.else
MODPY_DISTUTILS_INSTALL?= install --prefix=${LOCALBASE} \
--root=${DESTDIR}
.endif
MAKE_ENV+= CC=${CC} PYTHONUSERBASE=${_MODPY_USERBASE}
CONFIGURE_ENV+= PYTHON="${MODPY_BIN}"
_MODPY_CMD= @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MODPY_BIN} ./${MODPY_SETUP}
SUBST_VARS:= MODPY_BIN MODPY_EGG_VERSION MODPY_VERSION ${SUBST_VARS}
# set MODPY_BIN for executable scripts
MODPY_BIN_ADJ= perl -pi \
-e '$$. == 1 && s|^.*env python.*$$|\#!${MODPY_BIN}|;' \
-e '$$. == 1 && s|^.*bin/python.*$$|\#!${MODPY_BIN}|;' \
-e 'close ARGV if eof;'
MODPY_ADJ_FILES?=
.if !empty(MODPY_ADJ_FILES)
MODPYTHON_pre-configure += for f in ${MODPY_ADJ_FILES}; do \
${MODPY_BIN_ADJ} ${WRKSRC}/$${f}; done
.endif
# dirty way to do it with no modifications in bsd.port.mk
.if empty(CONFIGURE_STYLE)
. if !target(do-build)
do-build:
${MODPY_PRE_BUILD_STEPS}
${_MODPY_CMD} ${MODPY_DISTUTILS_BUILD} ${MODPY_DISTUTILS_BUILDARGS}
. endif
# extra documentation or scripts should be installed via post-install
. if !target(do-install)
do-install:
${_MODPY_CMD} ${MODPY_DISTUTILS_BUILD} ${MODPY_DISTUTILS_BUILDARGS} \
${MODPY_DISTUTILS_INSTALL} ${MODPY_DISTUTILS_INSTALLARGS}
. endif
# setuptools supports regress testing from setup.py using a standard target
. if !target(do-regress) && \
defined(MODPY_DISTRIBUTE) && ${MODPY_DISTRIBUTE:U} == YES
do-regress:
${_MODPY_CMD} ${REGRESS_TARGET}
. endif
.endif