source: trunk/base/src/port1.0/resources/group/python30-1.0.tcl @ 40803

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

Move default frameworks_dir under prefix, and use it in portgroups

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# et:ts=4
2# python30-1.0.tcl
3#
4# $Id: python30-1.0.tcl 40803 2008-10-15 10:17:48Z jmr@macports.org $
5#
6# Copyright (c) 2007 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 prefix ${frameworks_dir}/Python.framework/Versions/3.0
36
37set python.bin  ${prefix}/bin/python3.0
38set python.lib  ${prefix}/lib/libpython3.0.dylib
39set python.libdir ${prefix}/lib/python3.0
40set python.pkgd ${prefix}/lib/python3.0/site-packages
41set python.include      ${prefix}/include/python3.0
42
43categories              python
44
45dist_subdir             python
46
47depends_lib             port:python30
48
49use_configure   no
50
51build.cmd               ${python.bin} setup.py
52build.target    build
53
54destroot.cmd    ${python.bin} setup.py
55destroot.destdir        --prefix=${prefix} --root=${destroot}
56
57pre-destroot    {
58        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
59}
Note: See TracBrowser for help on using the repository browser.