[Bug 256150] lang/python310: add port

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 May 2021 14:26:32 UTC
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@FreeBSD.org
          Reporter: amdmi3@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
@@ -3,13 +3,13 @@
 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@FreeBSD.org
-COMMENT=       Interpreted object-oriented programming language
+COMMENT=       Interpreted object-oriented programming language (beta version)

 LICENSE=       PSFL

@@ -46,7 +46,7 @@
 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
@@ -116,6 +116,12 @@
 DISABLED_EXTENSIONS+=  nis
 .else
 PLIST_SUB+=    NO_NIS=""
+.endif
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
+PLIST_SUB+=    NEWOPENSSL="@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
@@ -2,4 +2,4 @@

 # 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.