[Bug 256150] lang/python310: add port

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 May 2021 14:26:32 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256150

            Bug ID: 256150
           Summary: lang/python310: add port
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs_at_FreeBSD.org
          Reporter: amdmi3_at_FreeBSD.org

Created attachment 225249
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225249&action=edit
Patch

Add lang/python310 at version 3.10.0b1

Changes to python39 are minimal (plus some removed patches which were already
upstreamed):

--- python39/Makefile   2021-05-25 16:55:44.272237000 +0300
+++ python310/Makefile  2021-05-25 16:58:41.519315000 +0300
_at__at_ -3,13 +3,13 _at__at_
 PORTNAME=      python
 DISTVERSION=   ${PYTHON_DISTVERSION}
 CATEGORIES=    lang python
-MASTER_SITES=  PYTHON/ftp/python/${DISTVERSION}
+MASTER_SITES=  PYTHON/ftp/python/3.10.0
 PKGNAMESUFFIX= ${PYTHON_SUFFIX}
 DISTNAME=      Python-${DISTVERSION}
 DIST_SUBDIR=   python

 MAINTAINER=    python_at_FreeBSD.org
-COMMENT=       Interpreted object-oriented programming language
+COMMENT=       Interpreted object-oriented programming language (beta version)

 LICENSE=       PSFL

_at__at_ -46,7 +46,7 _at__at_
 PLIST_SUB=             ABI=${ABIFLAGS} \
                        XY=${PYTHON_SUFFIX} \
                        XYDOT=${PYTHON_VER} \
-                       XYZDOT=${DISTVERSION} \
+                       XYZDOT=${DISTVERSION:C/[a-z].*//} \
                        OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}            
# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554

 OPTIONS_DEFINE=                DEBUG IPV6 LIBFFI LIBMPDEC NLS PYMALLOC
_at__at_ -116,6 +116,12 _at__at_
 DISABLED_EXTENSIONS+=  nis
 .else
 PLIST_SUB+=    NO_NIS=""
+.endif
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
+PLIST_SUB+=    NEWOPENSSL="_at_comment "
+.else
+PLIST_SUB+=    NEWOPENSSL=""
 .endif

 post-patch:
diff -ruN python39/Makefile.version python310/Makefile.version
--- python39/Makefile.version   2021-05-25 16:55:44.272304000 +0300
+++ python310/Makefile.version  2021-05-25 16:58:40.856247000 +0300
_at__at_ -2,4 +2,4 _at__at_

 # Do not forget to update python documentation (lang/python-doc-*)
 # Run "make -C lang/python-doc-html makesum"
-PYTHON_DISTVERSION=    3.9.5
+PYTHON_DISTVERSION=    3.10.0b1

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Tue May 25 2021 - 14:26:32 UTC

Original text of this message