New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80148


Ignore:
Timestamp:
07/05/11 04:49:02 (4 years ago)
Author:
jmr@…
Message:

python31:

  • update to 3.1.4
  • split tkinter out into py31-tkinter
  • make pyconfig.h correct for universal builds, just in case
Location:
trunk/dports
Files:
3 deleted
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/python31/Portfile

    r78591 r80148  
    66name                    python31 
    77epoch                   1 
    8 version                 3.1.3 
    9 revision                2 
     8version                 3.1.4 
    109set major               [lindex [split $version .] 0] 
    1110set branch              [join [lrange [split ${version} .] 0 1] .] 
     
    2221 
    2322distname                Python-${version} 
    24 use_bzip2               yes 
     23use_xz                  yes 
    2524 
    26 checksums               md5     ad5e5f1c07e829321e0a015f8cafe245 \ 
    27                         sha1    aeadf1eb7f450aab77a8972c042bc5f49bcf2288 \ 
    28                         rmd160  730f3b8eb1a41f1b7c469fc81be734bb802cb9f9 
     25checksums               md5     dcd128e69f8ee239182b54e33313aac7 \ 
     26                        sha1    e5767a4fc92433816451de75c8721f2e1a81f6ea \ 
     27                        rmd160  beb24a2a1227aa2bc036263b4c808daa72fa3e02 
    2928 
    30 patchfiles              patch-Makefile.pre.in.diff \ 
    31                         patch-setup.py.diff \ 
     29patchfiles              patch-setup.py.diff \ 
    3230                        patch-Lib-cgi.py.diff \ 
    33                         patch-Lib-distutils-dist.py.diff 
    34 if {![variant_isset universal]} { 
    35     patchfiles-append   patch-configure-arch_only.diff 
    36      # -arch ends up getting passed to libtool which doesn't understand it, so we 
    37      # just clear it since this port doesn't respect build_arch anyway 
    38      configure.ld_archflags 
    39 } 
     31                        patch-Lib-distutils-dist.py.diff \ 
     32                        patch-setup_no_tkinter.py.diff 
    4033 
    41 depends_lib             port:zlib port:openssl port:tk \ 
     34depends_lib             port:zlib port:openssl \ 
    4235                        port:sqlite3 port:ncurses port:gdbm \ 
    4336                        port:bzip2 port:readline port:gettext 
     
    111104   reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config/Makefile 
    112105 
    113    # The framework version.plist isn't currently being installed so 
    114    # we'll copy ours for now (see http://trac.macports.org/ticket/18773 and 
    115    # http://bugs.python.org/issue4937) 
    116    xinstall -m 644 ${filespath}/version.plist \ 
    117       ${destroot}${framewdir}/Resources/version.plist 
    118  
    119106   # remove -arch flags from the config 
    120107   reinplace -E {s|-arch [a-z0-9_]+||g} \ 
     
    158145      configure.args-append   --enable-universalsdk=/ 
    159146   } 
     147   post-configure { 
     148      system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.h-universal.ed" 
     149   } 
    160150} 
    161151 
     
    164154} 
    165155 
    166 variant no_tkinter description {Disable Tkinter support, which will break IDLE} { 
    167    patchfiles-append    patch-setup_no_tkinter.py.diff 
    168    depends_lib-delete   port:tk  
    169 } 
    170  
    171156livecheck.type          regex 
    172157livecheck.url           ${homepage}download/releases/ 
  • trunk/dports/lang/python31/files/patch-Lib-cgi.py.diff

    r49114 r80148  
    33@@ -1,13 +1,6 @@ 
    44-#! /usr/local/bin/python 
    5 +#! @@PREFIX@@/bin/python3.0 
     5+#! @@PREFIX@@/bin/python3.1 
    66  
    77-# NOTE: the above "/usr/local/bin/python" is NOT a mistake.  It is 
  • trunk/dports/lang/python31/files/patch-setup_no_tkinter.py.diff

    r58144 r80148  
    1 --- setup.py.orig       2009-03-31 12:20:48.000000000 -0600 
    2 +++ setup.py    2009-09-17 00:33:12.000000000 -0600 
     1--- setup.py.orig       2011-06-12 01:48:52.000000000 +1000 
     2+++ setup.py    2011-07-05 20:35:54.000000000 +1000 
    33@@ -17,7 +17,7 @@ 
    4  from distutils.command.install_lib import install_lib 
     4 from distutils.spawn import find_executable 
    55  
    66 # This global variable is used to hold the list of modules to be disabled. 
  • trunk/dports/lang/python31/files/pyconfig.h-universal.ed

    r80144 r80148  
    4848#endif 
    4949. 
    50 /WORDS_BIGENDIAN/c 
    51 #if __BIG_ENDIAN__ 
    52 #define WORDS_BIGENDIAN 1 
    53 #endif 
    54 . 
    5550w 
  • trunk/dports/python/py31-tkinter/Portfile

    r79630 r80148  
    33 
    44PortSystem 1.0 
    5 PortGroup python27 1.0 
     5PortGroup python31 1.0 
    66 
    7 name                    py27-tkinter 
    8 version                 2.7.2 
     7name                    py31-tkinter 
     8version                 3.1.4 
    99categories              python graphics 
    1010platforms               darwin 
    11 maintainers             singingwolfboy openmaintainer 
     11maintainers             nomaintainer 
    1212description             Python bindings to the Tk widget set 
    1313long_description        ${description} 
    1414 
    15 homepage                http://docs.python.org/library/tkinter.html 
    16 master_sites            http://www.python.org/ftp/python/${version}/ \ 
    17                         ftp://ftp.python.org/pub/python/${version}/ 
     15homepage                http://docs.python.org/release/${version}/library/tkinter.html 
     16master_sites            http://www.python.org/ftp/python/${version}/ 
    1817distname                Python-${version} 
    19 dist_subdir             python27 
    20 checksums               md5     ba7b2f11ffdbf195ee0d111b9455a5bd \ 
    21                         sha1    417bdeea77abfaf1b9257fc6b4a04aaa209f4547 \ 
    22                         rmd160  c3bf4f09b7c429a4d9f4cc251c795304cd5232c5 
    23 use_bzip2               yes 
     18dist_subdir             python31 
     19checksums               md5     dcd128e69f8ee239182b54e33313aac7 \ 
     20                        sha1    e5767a4fc92433816451de75c8721f2e1a81f6ea \ 
     21                        rmd160  beb24a2a1227aa2bc036263b4c808daa72fa3e02 
     22use_xz                  yes 
    2423 
    2524depends_lib-append      port:tk 
     
    4140livecheck.type  regex 
    4241livecheck.url   http://www.python.org/download/releases/ 
    43 livecheck.regex Python (2.7.\[0-9\]+) 
     42livecheck.regex Python (3\\.1\\.\[0-9\]+) 
  • trunk/dports/python/py31-tkinter/files/setup.py

    r74692 r80148  
    77    from distutils.core import setup, Extension 
    88except: 
    9     raise SystemExit, "Distutils problem" 
     9    raise SystemExit("Distutils problem") 
    1010 
    1111tkversion = "__TK-VERSION__" 
     
    1515libs = ["tcl" + tkversion, "tk" + tkversion] 
    1616 
    17 setup(name = "Tkinter", 
     17setup(name = "tkinter", 
    1818      description = "Tk Extension to Python", 
    1919       
Note: See TracChangeset for help on using the changeset viewer.