source: trunk/dports/_resources/port1.0/group/python24-1.0.tcl @ 71942

Last change on this file since 71942 was 71942, checked in by jmr@…, 7 years ago

python24 portgroup: set variables correctly when python is not built as a framework (#25557)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# et:ts=4
2# python24-1.0.tcl
3#
4# $Id: python24-1.0.tcl 71942 2010-09-28 09:42:53Z jmr@macports.org $
5#
6# Copyright (c) 2004 Markus W. Weissman <mww@macports.org>,
7# All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions are
11# met:
12#
13# 1. Redistributions of source code must retain the above copyright
14#    notice, this list of conditions and the following disclaimer.
15# 2. Redistributions in binary form must reproduce the above copyright
16#    notice, this list of conditions and the following disclaimer in the
17#    documentation and/or other materials provided with the distribution.
18# 3. Neither the name of Apple Computer, Inc. nor the names of its
19#    contributors may be used to endorse or promote products derived from
20#    this software without specific prior written permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33#
34
35set python.branch       2.4
36set python.bin  ${prefix}/bin/python${python.branch}
37set python.lib  ${prefix}/lib/libpython${python.branch}.dylib
38set python.pkgd ${prefix}/lib/python${python.branch}/site-packages
39set python.libdir       ${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}
40set python.include      ${frameworks_dir}/Python.framework/Versions/${python.branch}/include/python${python.branch}
41if {![file isfile ${python.include}/Python.h] &&
42    ([file isfile ${prefix}/include/python${python.branch}/Python.h] || [string match *64* $build_arch])} {
43    set python.libdir   ${prefix}/lib/python${python.branch}
44    set python.include  ${prefix}/include/python${python.branch}
45}
46
47categories              python
48
49dist_subdir             python
50
51depends_lib             port:python24
52
53use_configure   no
54
55build.cmd               ${python.bin} setup.py
56build.target    build
57
58destroot.cmd    ${python.bin} setup.py
59destroot.destdir        --prefix=${prefix} --root=${destroot}
60
61pre-destroot    {
62        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
63}
Note: See TracBrowser for help on using the repository browser.