pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python34 Import python-3.4.0 as lang/python34.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac875d6898b3
branches:  trunk
changeset: 634095:ac875d6898b3
user:      wen <wen%pkgsrc.org@localhost>
date:      Fri May 09 02:27:14 2014 +0000

description:
Import python-3.4.0 as lang/python34.

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.4.x.

diffstat:

 lang/python34/ALTERNATIVES                                 |     3 +
 lang/python34/DESCR                                        |    16 +
 lang/python34/MESSAGE.SunOS                                |     8 +
 lang/python34/Makefile                                     |   143 +
 lang/python34/PLIST                                        |  4828 ++++++++++++
 lang/python34/PLIST.Darwin                                 |     3 +
 lang/python34/PLIST.FreeBSD                                |     2 +
 lang/python34/PLIST.IRIX                                   |    66 +
 lang/python34/PLIST.Linux                                  |    11 +
 lang/python34/PLIST.SunOS                                  |    13 +
 lang/python34/buildlink3.mk                                |    24 +
 lang/python34/dist.mk                                      |     8 +
 lang/python34/distinfo                                     |    18 +
 lang/python34/patches/patch-Lib_distutils_unixccompiler.py |    13 +
 lang/python34/patches/patch-aa                             |    29 +
 lang/python34/patches/patch-ab                             |    24 +
 lang/python34/patches/patch-ah                             |    86 +
 lang/python34/patches/patch-al                             |   103 +
 lang/python34/patches/patch-am                             |   126 +
 lang/python34/patches/patch-an                             |    12 +
 lang/python34/patches/patch-ao                             |    13 +
 lang/python34/patches/patch-au                             |    32 +
 lang/python34/patches/patch-av                             |    12 +
 lang/python34/patches/patch-aw                             |    13 +
 lang/python34/patches/patch-pyconfig.h.in                  |    14 +
 lang/python34/patches/patch-xa                             |    14 +
 26 files changed, 5634 insertions(+), 0 deletions(-)

diffs (truncated from 5738 to 300 lines):

diff -r f9407598d353 -r ac875d6898b3 lang/python34/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python34/ALTERNATIVES        Fri May 09 02:27:14 2014 +0000
@@ -0,0 +1,3 @@
+bin/2to3 @PREFIX@/bin/2to3-3.4
+bin/pydoc3 @PREFIX@/bin/pydoc3.4
+bin/python @PREFIX@/bin/python3.4
diff -r f9407598d353 -r ac875d6898b3 lang/python34/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python34/DESCR       Fri May 09 02:27:14 2014 +0000
@@ -0,0 +1,16 @@
+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.4.x.
diff -r f9407598d353 -r ac875d6898b3 lang/python34/MESSAGE.SunOS
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python34/MESSAGE.SunOS       Fri May 09 02:27:14 2014 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE.SunOS,v 1.1 2014/05/09 02:27:14 wen Exp $
+
+In order for the Python installation to successfuly compile the
+"sunaudiodev" module you must install the SUNWaudh package to have
+the necessary headers installed.
+
+===========================================================================
diff -r f9407598d353 -r ac875d6898b3 lang/python34/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python34/Makefile    Fri May 09 02:27:14 2014 +0000
@@ -0,0 +1,143 @@
+# $NetBSD: Makefile,v 1.1 2014/05/09 02:27:14 wen Exp $
+
+.include "dist.mk"
+
+PKGNAME=       python34-${PY_DISTVERSION}
+CATEGORIES=    lang python
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.python.org/
+COMMENT=       Interpreted, interactive, object-oriented programming language
+LICENSE=       python-software-foundation
+
+CONFLICTS+=    python-[0-9]*
+
+PLIST_AWK+=    -f ${PKGSRCDIR}/lang/python/plist-python.awk
+PLIST_AWK_ENV+=        PYTHON_SOABI="cpython-34"
+PRINT_PLIST_AWK+=      /^[^@]/ && /[^\/]+\.py[co]$$/ {
+PRINT_PLIST_AWK+=      gsub(/__pycache__\//, "")
+PRINT_PLIST_AWK+=      gsub(/\.cpython-34/, "")}
+
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-threads
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       OPT=${CFLAGS:M*:Q}
+CONFIGURE_ARGS+=       --with-system-ffi
+CONFIGURE_ARGS+=       --without-pymalloc
+CONFIGURE_ARGS+=       --without-ensurepip
+CONFIGURE_ENV+=                ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
+
+PKGCONFIG_OVERRIDE+=   Misc/python.pc.in
+
+USE_LANGUAGES=         c c++
+
+PTHREAD_OPTS+= require
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.prefs.mk"
+
+# http://bugs.python.org/issue13241
+.if !empty(MACHINE_PLATFORM:MDarwin-10.*)
+PKGSRC_COMPILER=       clang
+CC=                    clang
+CXX=                   clang++
+.endif
+
+# fdatasync()
+LIBS.SunOS+=           -lrt
+
+PY_VER_SUFFIX=         3.4
+
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix"
+PY_PLATNAME=   ${LOWER_OPSYS}
+USE_TOOLS+=    gmake
+.elif ${OPSYS} == "IRIX"
+PY_PLATNAME=   ${LOWER_OPSYS:C/\..*//}
+.elif ${OPSYS} == "SunOS"
+PY_PLATNAME=   sunos${OS_VERSION:C/\..*//}
+.elif ${OPSYS} == "HPUX"
+PY_PLATNAME=   hp-ux11
+.elif ${OPSYS} == "Linux"
+PY_PLATNAME=   linux
+.else
+PY_PLATNAME=   ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
+.endif
+PLIST_SUBST+=  PY_PLATNAME=${PY_PLATNAME:Q}
+
+# ossaudiodev is only available on x86 for the following platforms
+PLIST_VARS+=   oss
+.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
+    (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD")
+PLIST.oss=     yes
+.endif
+
+# Make sure python modules can link correctly
+.if ${OPSYS} == "Darwin"
+INSTALL_UNSTRIPPED=    yes
+.endif
+
+PLIST_VARS+=   bsddb dll nis no-nis
+.if ${OPSYS} == "IRIX"
+.  if ${ABI} == "64"
+PLIST.no-nis=  yes
+.  else
+PLIST.nis=     yes
+.  endif
+.else
+.  include "../../mk/bdb.buildlink3.mk"
+MAKE_ENV+=     PY_BDB_TYPE=${BDB_TYPE}
+MAKE_ENV+=     PY_BDB_INCDIRS=${BUILDLINK_INCDIRS.${BDB_TYPE}:S,^,${BDBBASE}/,:Q}
+MAKE_ENV+=     PY_BDB_LIBDIRS=${BDBBASE}/lib
+PLIST.bsddb=   yes
+PLIST.dll=     yes
+.  if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat)
+PLIST.nis=     yes
+.  else
+PLIST.no-nis=  yes
+.  endif
+.endif
+
+.if defined(BUILDLINK_TRANSFORM)
+MAKE_ENV+=     PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q}
+.endif
+
+PLIST_SUBST+=  PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
+
+PRINT_PLIST_AWK+=      { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") }
+PRINT_PLIST_AWK+=      { gsub(/python${PY_VER_SUFFIX}/, \
+                               "python$${PY_VER_SUFFIX}") }
+
+TEST_TARGET=   test
+INSTALL_TARGET=        altinstall
+
+REPLACE_INTERPRETER+=  py34
+REPLACE.py34.old=      .*python[^ ]*
+REPLACE.py34.new=      ${PREFIX}/bin/python${PY_VER_SUFFIX}
+REPLACE_FILES.py34=    Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py
+
+SUBST_CLASSES+=                findlib
+SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin.
+SUBST_STAGE.findlib=   pre-configure
+SUBST_FILES.findlib=   Lib/distutils/unixccompiler.py
+SUBST_SED.findlib=     -e 's,/usr/local,${PREFIX},'
+
+CHECK_INTERPRETER_SKIP=        lib/python${PY_VER_SUFFIX}/venv/scripts/posix/pydoc
+
+.if ${OPSYS} == "HPUX"
+post-install:
+       ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython3.4.sl \
+               ${DESTDIR}${PREFIX}/lib/libpython3.4.sl.1.0
+.endif
+
+BUILDLINK_DEPMETHOD.readline=          build
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/libffi/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f9407598d353 -r ac875d6898b3 lang/python34/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python34/PLIST       Fri May 09 02:27:14 2014 +0000
@@ -0,0 +1,4828 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/09 02:27:14 wen Exp $
+bin/2to3-${PY_VER_SUFFIX}
+bin/pydoc${PY_VER_SUFFIX}
+bin/python${PY_VER_SUFFIX}
+bin/python${PY_VER_SUFFIX}-config
+bin/pyvenv-${PY_VER_SUFFIX}
+include/python${PY_VER_SUFFIX}/Python-ast.h
+include/python${PY_VER_SUFFIX}/Python.h
+include/python${PY_VER_SUFFIX}/abstract.h
+include/python${PY_VER_SUFFIX}/accu.h
+include/python${PY_VER_SUFFIX}/asdl.h
+include/python${PY_VER_SUFFIX}/ast.h
+include/python${PY_VER_SUFFIX}/bitset.h
+include/python${PY_VER_SUFFIX}/bltinmodule.h
+include/python${PY_VER_SUFFIX}/boolobject.h
+include/python${PY_VER_SUFFIX}/bytearrayobject.h
+include/python${PY_VER_SUFFIX}/bytes_methods.h
+include/python${PY_VER_SUFFIX}/bytesobject.h
+include/python${PY_VER_SUFFIX}/cellobject.h
+include/python${PY_VER_SUFFIX}/ceval.h
+include/python${PY_VER_SUFFIX}/classobject.h
+include/python${PY_VER_SUFFIX}/code.h
+include/python${PY_VER_SUFFIX}/codecs.h
+include/python${PY_VER_SUFFIX}/compile.h
+include/python${PY_VER_SUFFIX}/complexobject.h
+include/python${PY_VER_SUFFIX}/datetime.h
+include/python${PY_VER_SUFFIX}/descrobject.h
+include/python${PY_VER_SUFFIX}/dictobject.h
+include/python${PY_VER_SUFFIX}/dtoa.h
+include/python${PY_VER_SUFFIX}/dynamic_annotations.h
+include/python${PY_VER_SUFFIX}/enumobject.h
+include/python${PY_VER_SUFFIX}/errcode.h
+include/python${PY_VER_SUFFIX}/eval.h
+include/python${PY_VER_SUFFIX}/fileobject.h
+include/python${PY_VER_SUFFIX}/fileutils.h
+include/python${PY_VER_SUFFIX}/floatobject.h
+include/python${PY_VER_SUFFIX}/frameobject.h
+include/python${PY_VER_SUFFIX}/funcobject.h
+include/python${PY_VER_SUFFIX}/genobject.h
+include/python${PY_VER_SUFFIX}/graminit.h
+include/python${PY_VER_SUFFIX}/grammar.h
+include/python${PY_VER_SUFFIX}/import.h
+include/python${PY_VER_SUFFIX}/intrcheck.h
+include/python${PY_VER_SUFFIX}/iterobject.h
+include/python${PY_VER_SUFFIX}/listobject.h
+include/python${PY_VER_SUFFIX}/longintrepr.h
+include/python${PY_VER_SUFFIX}/longobject.h
+include/python${PY_VER_SUFFIX}/marshal.h
+include/python${PY_VER_SUFFIX}/memoryobject.h
+include/python${PY_VER_SUFFIX}/metagrammar.h
+include/python${PY_VER_SUFFIX}/methodobject.h
+include/python${PY_VER_SUFFIX}/modsupport.h
+include/python${PY_VER_SUFFIX}/moduleobject.h
+include/python${PY_VER_SUFFIX}/namespaceobject.h
+include/python${PY_VER_SUFFIX}/node.h
+include/python${PY_VER_SUFFIX}/object.h
+include/python${PY_VER_SUFFIX}/objimpl.h
+include/python${PY_VER_SUFFIX}/opcode.h
+include/python${PY_VER_SUFFIX}/osdefs.h
+include/python${PY_VER_SUFFIX}/parsetok.h
+include/python${PY_VER_SUFFIX}/patchlevel.h
+include/python${PY_VER_SUFFIX}/pgen.h
+include/python${PY_VER_SUFFIX}/pgenheaders.h
+include/python${PY_VER_SUFFIX}/py_curses.h
+include/python${PY_VER_SUFFIX}/pyarena.h
+include/python${PY_VER_SUFFIX}/pyatomic.h
+include/python${PY_VER_SUFFIX}/pycapsule.h
+include/python${PY_VER_SUFFIX}/pyconfig.h
+include/python${PY_VER_SUFFIX}/pyctype.h
+include/python${PY_VER_SUFFIX}/pydebug.h
+include/python${PY_VER_SUFFIX}/pyerrors.h
+include/python${PY_VER_SUFFIX}/pyexpat.h
+include/python${PY_VER_SUFFIX}/pyfpe.h
+include/python${PY_VER_SUFFIX}/pygetopt.h
+include/python${PY_VER_SUFFIX}/pyhash.h
+include/python${PY_VER_SUFFIX}/pymacconfig.h
+include/python${PY_VER_SUFFIX}/pymacro.h
+include/python${PY_VER_SUFFIX}/pymath.h
+include/python${PY_VER_SUFFIX}/pymem.h
+include/python${PY_VER_SUFFIX}/pyport.h
+include/python${PY_VER_SUFFIX}/pystate.h
+include/python${PY_VER_SUFFIX}/pystrcmp.h
+include/python${PY_VER_SUFFIX}/pystrtod.h
+include/python${PY_VER_SUFFIX}/pythonrun.h
+include/python${PY_VER_SUFFIX}/pythread.h
+include/python${PY_VER_SUFFIX}/pytime.h
+include/python${PY_VER_SUFFIX}/rangeobject.h
+include/python${PY_VER_SUFFIX}/setobject.h
+include/python${PY_VER_SUFFIX}/sliceobject.h
+include/python${PY_VER_SUFFIX}/structmember.h
+include/python${PY_VER_SUFFIX}/structseq.h
+include/python${PY_VER_SUFFIX}/symtable.h
+include/python${PY_VER_SUFFIX}/sysmodule.h
+include/python${PY_VER_SUFFIX}/token.h
+include/python${PY_VER_SUFFIX}/traceback.h
+include/python${PY_VER_SUFFIX}/tupleobject.h
+include/python${PY_VER_SUFFIX}/typeslots.h
+include/python${PY_VER_SUFFIX}/ucnhash.h
+include/python${PY_VER_SUFFIX}/unicodeobject.h
+include/python${PY_VER_SUFFIX}/warnings.h
+include/python${PY_VER_SUFFIX}/weakrefobject.h
+lib/libpython${PY_VER_SUFFIX}.so
+lib/libpython${PY_VER_SUFFIX}.so.1.0
+lib/libpython3.so
+lib/pkgconfig/python-${PY_VER_SUFFIX}.pc
+lib/python${PY_VER_SUFFIX}/LICENSE.txt
+lib/python${PY_VER_SUFFIX}/__future__.py
+lib/python${PY_VER_SUFFIX}/__phello__.foo.py
+lib/python${PY_VER_SUFFIX}/__future__.pyc
+lib/python${PY_VER_SUFFIX}/__future__.pyo



Home | Main Index | Thread Index | Old Index