source: trunk/dports/python/py-psyco/Portfile

Last change on this file was 130351, checked in by jmr@…, 3 years ago

py-psyco: remove 24 and 25 subports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 130351 2014-12-30 04:13:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-psyco
7version                 1.6
8platforms               darwin
9supported_archs         i386
10license                 MIT
11maintainers             jmr openmaintainer
12description             a python specializing compiler
13long_description        Psyco is a Python extension module which can \
14                        massively speed up the execution of any Python code.
15
16homepage                http://psyco.sourceforge.net/
17master_sites            sourceforge:project/psyco/psyco/${version}/
18distname                psyco-${version}-src
19checksums               md5 8816fca8ba521e05d18dde3e1a11b0bd \
20                        sha1 3c1ffa70b1a37bd855454d41d41a830e9ea82e7d \
21                        rmd160 472669a7a3714aae63710fd9bc5322b4b5214944
22worksrcdir              psyco-${version}
23
24python.versions         26
25
26if {$subport ne $name} {
27    extract.post_args       "| tar -xf - --exclude '.cvsignore'"
28
29    pre-fetch {
30        if {${os.arch} ne "i386"} {
31            return -code error "psyco only works on Intel machines"
32        }
33    }
34   
35    if {${build_arch} eq "x86_64"} {
36        set interp_path ${python.prefix}/Resources/Python.app/Contents/MacOS/Python
37        notes "Since MacPorts is configured to build for the x86_64 architecture where\
38possible and psyco can only be built for i386, you will probably need\
39to run python like this to use psyco:
40
41arch -i386 $interp_path"
42    }
43
44    post-destroot {
45            xinstall -m 644 -W ${worksrcpath} README.txt \
46                     ${destroot}${prefix}/share/doc/${subport}
47            file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/
48    }
49}
50
51livecheck.type          none
Note: See TracBrowser for help on using the repository browser.