Changeset 37820 for trunk/dports


Ignore:
Timestamp:
Jun 24, 2008, 10:01:51 PM (16 years ago)
Author:
raimue@…
Message:

Merged revisions 37481,37529,37811-37812 via svnmerge from
https://svn.macosforge.org/repository/macports/branches/python-frameworks/dports/lang/python30

........

r37481 | raimue@… | 2008-06-09 19:36:10 +0200 (Mon, 09 Jun 2008) | 5 lines


lang/python{24,25,30}:
Make the ports more similar.
These ports install fine for me now and also work with py-* and py25-* ports
providing modules, but need testing by others.

........

r37529 | raimue@… | 2008-06-11 17:32:11 +0200 (Wed, 11 Jun 2008) | 3 lines


lang/python{24,25,30}:
Correct a symlink inside the framework directory pointing into the destroot

........

r37811 | raimue@… | 2008-06-24 22:36:46 +0200 (Tue, 24 Jun 2008) | 3 lines


lang/python{24,25,30}:
Add better post-activate message

........

r37812 | raimue@… | 2008-06-24 22:38:25 +0200 (Tue, 24 Jun 2008) | 3 lines


lang/python{24,25,30}:
Bump revisions

........

Location:
trunk/dports/lang/python30
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/lang/python30

  • trunk/dports/lang/python30/Portfile

    r34838 r37820  
    33PortSystem 1.0
    44
    5 name                    python30
    6 version                 3.0a3
    7 revision                3
    8 categories              lang
    9 platforms               darwin
    10 maintainers             mww
    11 description             An interpreted, object-oriented programming language
    12 long_description        Python is an interpreted, interactive, object-oriented \
    13                         programming language. This version is an ALPHA release!
     5name                    python30
     6version                 3.0a3
     7revision                4
     8set major               3
     9set branch              3.0
     10categories              lang
     11platforms               darwin
     12maintainers             mww
    1413
    15 homepage                http://www.python.org
    16 master_sites            http://www.python.org/ftp/python/3.0/
    17 distname                Python-${version}
    18 extract.suffix          .tgz
    19 checksums               md5 ec525b7e7fe4383e8394fab721663252
    20 patchfiles              patch-setup.py.diff \
    21                         patch-Makefile.pre.in.diff \
    22                         patch-Lib-cgi.py.diff
     14description             An interpreted, object-oriented programming language
     15long_description        Python is an interpreted, interactive, object-oriented \
     16                        programming language. This version is an ALPHA release!
    2317
    24 depends_lib             port:gettext
    25 depends_run             port:python_select
    26 configure.args          --without-readline --enable-shared --enable-ipv6 --disable-tk --enable-framework=${prefix}/Library/Frameworks
     18homepage                http://www.python.org/
     19master_sites            ${homepage}/ftp/python/${version}/ \
     20                        ftp://ftp.python.org/pub/python/${version}/ \
     21                        ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \
     22                        ftp://ftp.python.jp/pub/python/${version}/
    2723
    28 destroot.target         libpython3.0.dylib frameworkinstall maninstall
     24distname                Python-${version}
     25extract.suffix          .tgz
    2926
    30 post-patch {
    31         reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
    32         reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
    33                 Mac/Makefile.in Mac/IDLE/Makefile.in \
    34                 Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
    35                 Mac/PythonLauncher/Makefile.in \
    36                 Mac/BuildScript/build-installer.py
    37         xinstall -m 644 ${filespath}/mac_japanese.py Lib/encodings/x_mac_japanese.py
    38 }
     27checksums               md5 ec525b7e7fe4383e8394fab721663252
     28
     29patchfiles              patch-setup.py \
     30                        patch-Makefile.pre.in.diff
     31
     32depends_lib             port:gettext
     33
     34configure.args          --enable-shared \
     35                        --enable-framework=${prefix}/Library/Frameworks \
     36                        --mandir=${prefix}/share/man \
     37                        --without-readline \
     38                        --disable-tk \
     39                        --enable-ipv6
     40
     41use_parallel_build      no
     42
     43build.target            all libpython${branch}.dylib
     44
     45test.run                yes
     46test.target             test
     47
     48destroot.target         frameworkinstall maninstall
    3949
    4050post-destroot {
    41         system "cd ${destroot}${prefix}/bin && \
    42                 rm idle pydoc python python-config pythonw smtpd.py"
    43         system "cd ${destroot}${prefix}/share/man/man1 && \
    44                 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/python.1 python3.0.1"
     51        set framewpath ${prefix}/Library/Frameworks/Python.framework
     52        set framewdir  ${framewpath}/Versions/${branch}
    4553
    46         system "cd ${destroot}${prefix}/lib && \
    47                 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/libpython3.0.dylib && \
    48                 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0"
     54        foreach dir { lib include } {
     55            file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
     56            ln -s ${destroot}${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
     57        }
    4958
    50         system "mkdir -p ${destroot}${prefix}/include && \
    51                 cd ${destroot}${prefix}/include && \
    52                 ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/3.0/include/python3.0"
     59        file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib
     60        ln -s ${destroot}${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib
    5361
    54         # install select file for python_select
    55         xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
    56         xinstall -m 644 ${filespath}/python30 ${destroot}${prefix}/etc/select/python/
    57         system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \
    58                 rm -f Headers Resources Python && \
    59                 rm -f Versions/Current"
     62        file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
    6063
    61         system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.0/share/man/man1/ && \
    62                 gzip python.1"
     64        # delete symlinks without version suffix, use python_select instead to choose version
     65        foreach bin { python pythonw idle pydoc smtpd.py python-config } {
     66            file delete ${destroot}${prefix}/bin/${bin}
     67        }
     68        foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {
     69            file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin
     70            ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
     71        }
     72
     73        foreach dir { Headers Resources Python Versions/Current } {
     74            file delete ${destroot}${framewpath}/${dir}
     75        }
     76
     77        # install select file for python_select
     78        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
     79        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
    6380}
    6481
    6582post-activate {
    66 ui_msg "\n\n\nTo fully complete your installation and make python 3.0 the default, \
    67 please run\n\nsudo python_select python30\n\n"
     83    ui_msg "\nTo fully complete your installation and make python $branch the default, please run
     84\n\tsudo port install python_select \
     85\n\tsudo python_select $name\n"
    6886}
    6987
    70 platform darwin 7 {
    71         # there is no SystemStubs on 10.3
    72         post-patch {
    73                 reinplace "s|-lSystemStubs||g" \
    74                         configure configure.in
    75         }
    76         post-configure {
    77                 reinplace "s|-lSystemStubs||g" \
    78                         Makefile.pre.in Makefile.pre Makefile
    79         }
    80         # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth@gmail.com, ticket #13322)
    81         configure.ldflags-append "-lcc_dynamic"
     88variant universal {
     89        configure.args-append           --enable-universalsdk
    8290}
    8391
    84 
    85 livecheck.check         regex
    86 livecheck.url           http://www.python.org/download/releases/3.0/
    87 livecheck.regex         /3.0/Python-(\[0-9a-z.\]+)\\.tgz
     92livecheck.check         regex
     93livecheck.url           ${homepage}download/releases/
     94livecheck.regex         Python (${branch}a\[0-9\]+)
Note: See TracChangeset for help on using the changeset viewer.