Commit 9bdba06c authored by Anthony Mallet's avatar Anthony Mallet
Browse files

[lang/python33] Delete python33 package

This is EOL.
parent 2ce9651b
......@@ -4,7 +4,6 @@
COMMENT= Programming languages
SUBDIR+= jython
SUBDIR+= python33
SUBDIR+= ros-gencpp
SUBDIR+= ros-genlisp
SUBDIR+= ros-genpy
......
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 exten- sion language for existing applications. See the
internal documentation for hints.
This package provides Python version 3.3.x.
# $NetBSD: Makefile,v 1.6 2013/02/06 23:22:38 jperkin Exp $
VERSION= 3.3.5
DISTNAME= Python-${VERSION}
PKGNAME= python33-${VERSION}
PKGREVISION= 4
MASTER_SITES= http://www.python.org/ftp/python/${VERSION}/
EXTRACT_SUFX= .tgz
MAINTAINER= openrobots@laas.fr
CATEGORIES= lang
HOMEPAGE= http://www.python.org/
COMMENT= Interpreted, interactive, object-oriented programming language
LICENSE= psfl-v2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-threads
CONFIGURE_ARGS+=--enable-shared
CONFIGURE_ARGS+=--with-pymalloc
CONFIGURE_ARGS+=--with-system-ffi
# Define LDFLAGS for libffi
LIBRARY_DIRS.libffi+= lib
RPATH_DIRS.libffi+= lib
# Define LDFLAGS for python33
RPATH_DIRS= lib
LDFLAGS+= -L${WRKSRC}
# Install only suffixed binaries and files
INSTALL_TARGET= altinstall
# Fix python interpreter path
SUBST_CLASSES+= interp
SUBST_STAGE.interp= pre-configure
SUBST_MESSAGE.interp= Replacing python interpreter path in scripts
SUBST_FILES.interp= Lib/cgi.py # explicitly demanded to be patched
SUBST_FILES.interp+= Lib/*.py Lib/*/*.py Lib/*/*/*.py
SUBST_SED.interp= '1s|.*python[^ \t]*|\\\#!${PREFIX}/bin/python3.3|'
# python sys.platform name
include ../../mk/robotpkg.prefs.mk
ifeq (Linux,${OS_KERNEL})
PY_PLATNAME=linux
else
PY_PLATNAME=\
$(call tolower,${OS_KERNEL})$(word 1,$(subst ., ,${OS_KERNEL_VERSION}))
endif
PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME}
PRINT_PLIST_AWK_SUBST+= gsub("${PY_PLATNAME}/", "$${PY_PLATNAME}/");
# delete libpython3.so
post-install:
${RUN}${RM} ${DESTDIR}${PREFIX}/lib/libpython3.so
DEPEND_ABI.openssl+= openssl<1.1.0
include ../../mk/sysdep/gdbm.mk
include ../../mk/sysdep/libffi.mk
include ../../mk/sysdep/liblzma.mk
include ../../mk/sysdep/openssl.mk
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/robotpkg.mk
This source diff could not be displayed because it is too large. You can view the blob instead.
@comment $NetBSD: PLIST.Linux,v 1.1 2012/12/10 03:15:48 tsarna Exp $
lib/python3.3/lib-dynload/ossaudiodev.cpython-33m.so
lib/python3.3/lib-dynload/spwd.cpython-33m.so
lib/python3.3/plat-${PY_PLATNAME}/CDROM.py
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/CDROM.cpython-33.pyc
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/CDROM.cpython-33.pyo
lib/python3.3/plat-${PY_PLATNAME}/DLFCN.py
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/DLFCN.cpython-33.pyc
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/DLFCN.cpython-33.pyo
lib/python3.3/plat-${PY_PLATNAME}/TYPES.py
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/TYPES.cpython-33.pyc
lib/python3.3/plat-${PY_PLATNAME}/__pycache__/TYPES.cpython-33.pyo
# robotpkg depend.mk for: lang/python33
# Created: Anthony Mallet on Tue, 10 Mar 2014
#
DEPEND_DEPTH:= ${DEPEND_DEPTH}+
PYTHON33_DEPEND_MK:= ${PYTHON33_DEPEND_MK}+
ifeq (+,$(DEPEND_DEPTH))
DEPEND_PKG+= python33
endif
ifeq (+,$(PYTHON33_DEPEND_MK)) # -------------------------------------------
DEPEND_USE+= python33
include ../../mk/sysdep/python.mk
ifeq (Ubuntu,${OPSYS})
ifneq (,$(filter 14.04,${OS_VERSION}))
PREFER.python33?= system
endif
else ifeq (NetBSD,${OPSYS})
PREFER.python33?= system
endif
PREFER.python33?= robotpkg
DEPEND_ABI.python33?= python33>=3.3<3.4
DEPEND_DIR.python33?= ../../lang/python33
# see sysdep/python.mk for the definition of SYSTEM_SEARCH.python
_py_search33= {3.3,3,}{,d}{,m}{,u}
SYSTEM_SEARCH.python33= $(call _py_syssearch,${_py_search33})
SYSTEM_PKG.Fedora.python33= python3.3-devel
SYSTEM_PKG.Debian.python33= python3.3-dev
SYSTEM_PKG.NetBSD.python33= lang/python33
SYSTEM_PKG.Gentoo.python33= '=dev-lang/python-3.3*'
# directory for byte compiled files
PYTHON33_TAG= .cpython-33
PYTHON33_PYCACHE= __pycache__
export PYTHON33= $(firstword ${SYSTEM_FILES.python33})
export PYTHON33_LIB= $(word 2,${SYSTEM_FILES.python33})
export PYTHON33_INCLUDE=$(dir $(word 3,${SYSTEM_FILES.python33}))
endif # PYTHON33_DEPEND_MK -------------------------------------------------
DEPEND_DEPTH:= ${DEPEND_DEPTH:+=}
SHA1 (Python-3.3.5.tgz) = 15f24702c5ae07d364606c663e515c1d9ba58615
RMD160 (Python-3.3.5.tgz) = 5bb022aefc4d152844bd4a9afbe13eb0e38f1b5b
Size (Python-3.3.5.tgz) = 16881688 bytes
SHA1 (patch-aa) = c1bf923183d16e5fda859f3ce4e9243d81d6ef5a
SHA1 (patch-ab) = 8142304f727dd3284aa581490447a89e09937675
SHA1 (patch-ac) = 1c974d63c435e162df32350901ead8f10cdf3fd2
SHA1 (patch-an) = 3cf8da26071408c57f57c44572a35734e1577e28
$NetBSD: patch-aa,v 1.1 2012/12/10 03:15:49 tsarna Exp $
* On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
against multiple definition of wchar_t and wint_t.
--- Include/py_curses.h.orig 2009-09-06 21:26:46.000000000 +0000
+++ Include/py_curses.h
@@ -44,6 +44,21 @@
#endif
#endif
+#ifdef __NetBSD__
+/*
+** On NetBSD, [n]curses.h and stdlib.h/wchar.h use different guards
+** against multiple definition of wchar_t and wint_t.
+*/
+#ifdef _XOPEN_SOURCE_EXTENDED
+#ifndef _WCHAR_T
+#define _WCHAR_T
+#endif
+#ifndef _WINT_T
+#define _WINT_T
+#endif
+#endif
+#endif
+
#ifdef HAVE_NCURSES_H
#include <ncurses.h>
#else
--- setup.py~ 2013-05-15 18:33:00.000000000 +0200
+++ setup.py 2013-05-22 15:29:29.670332775 +0200
@@ -31,7 +31,7 @@
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
# This global variable is used to hold the list of modules to be disabled.
-disabled_module_list = []
+disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", "_sqlite3", "_tkinter", "_gdbm", "expat", "readline", "xxlimited"]
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (after any relative
@@ -1138,6 +1138,30 @@
dbm_order = ['gdbm']
# The standard Unix dbm module:
if host_platform not in ['cygwin']:
+
+ ## Top half based on find_file
+ def find_ndbm_h(dirs):
+ ret = None
+ if sys.platform == 'darwin':
+ sysroot = macosx_sdk_root()
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
+ f = os.path.join(sysroot, dir[1:], 'ndbm.h')
+ if not os.path.exists(f): continue
+
+ ret = 'True'
+ input = text_file.TextFile(f)
+ while 1:
+ line = input.readline()
+ if not line: break
+ if re.search('This file is part of GDBM', line):
+ ret = None
+ break
+ input.close()
+ break
+ return ret
+
config_args = [arg.strip("'")
for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
dbm_args = [arg for arg in config_args
@@ -1149,7 +1173,7 @@
dbmext = None
for cand in dbm_order:
if cand == "ndbm":
- if find_file("ndbm.h", inc_dirs, []) is not None:
+ if find_ndbm_h(inc_dirs) is not None:
# Some systems have -lndbm, others have -lgdbm_compat,
# others don't have either
if self.compiler.find_library_file(lib_dirs,
--- configure.orig 2014-03-10 16:39:48.000000000 +0100
+++ configure 2014-03-10 16:40:39.000000000 +0100
@@ -13765,12 +13765,7 @@
$as_echo "$SOABI" >&6; }
-case $ac_sys_system in
- Linux*|GNU*)
- EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
- *)
- EXT_SUFFIX=${SHLIB_SUFFIX};;
-esac
+EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
$as_echo_n "checking LDVERSION... " >&6; }
$NetBSD: patch-an,v 1.1 2012/12/10 03:15:49 tsarna Exp $
--- Modules/makesetup.orig 2008-06-11 05:26:20.000000000 +0000
+++ Modules/makesetup
@@ -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";;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment