# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0

name                pypy-bootstrap
version             5.1.0
revision            1
categories          lang python
platforms           darwin
supported_archs     x86_64
maintainers         jmr
license             MIT PSF

description         bootstrap binary of pypy

long_description    This is a binary version of pypy provided for the \
                    purpose of building the pypy port more quickly.

homepage            http://pypy.org/
master_sites        https://bitbucket.org/pypy/pypy/downloads/

distname            pypy-${version}-osx64
use_bzip2           yes
checksums           md5 7f546940acb3ceebb5967697a9b05b65 \
                    rmd160 fb209f68f77de56037faed5920678887608cdb0a \
                    sha256 7e270c66347158dd794c101c4817f742f760ed805aa0d10abe19ba4a78a75118

use_configure       no
build               {}
destroot {
    copy ${worksrcpath} ${destroot}${prefix}/lib/${name}
    delete ${destroot}${prefix}/lib/${name}/lib_pypy/_gdbm_cffi.pypy-41.so
    system "chmod -R a+rX ${destroot}${prefix}/lib/${name}"
}