Date: Wednesday, March 22, 2017 @ 04:29:33 Author: svenstaro Revision: 218274
upgpkg: pypy 5.7.0-1 upstream release 5.7.0 Modified: pypy/trunk/PKGBUILD ----------+ PKGBUILD | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-03-22 04:29:09 UTC (rev 218273) +++ PKGBUILD 2017-03-22 04:29:33 UTC (rev 218274) @@ -3,33 +3,38 @@ # Contributor: William Giokas <1007...@gmail.com> pkgname=pypy -pkgver=5.6.0 -pkgrel=2 +pkgver=5.7.0 +pkgrel=1 pkgdesc="A Python implementation written in Python, JIT enabled" url="http://pypy.org" arch=('i686' 'x86_64') depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib') -makedepends=('python2' 'tk' 'sqlite' 'mercurial') +makedepends=('python2' 'tk' 'sqlite' 'mercurial' 'python2-pycparser') optdepends=('sqlite: sqlite module' 'tk: tk module') options=(!buildflags) license=('custom:MIT') -source=("hg+http://bitbucket.org/pypy/pypy#tag=release-pypy2.7-v${pkgver}") -md5sums=('SKIP') +source=("https://bitbucket.org/pypy/pypy/downloads/pypy2-v${pkgver}-src.tar.bz2") +sha512sums=('4d8d9037bb90a213410850857bfff920c156fddf0b316e16b5eb0135648f9f438b0e25d9ac2dc5bd0b63b59d9190f48b72592830cfb4a7a1c34dc5e598a7f9e6') build() { - cd pypy/pypy/goal + cd pypy2-v${pkgver}-src/pypy/goal python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone + + # Compile binary modules + PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py } package() { - cd pypy + cd pypy2-v${pkgver}-src + # Prepare installation python2 pypy/tool/release/package.py --archive-name pypy --targetdir . mkdir unpacked tar xf pypy.tar.bz2 -C unpacked + # Install pypy cd unpacked install -Dm755 pypy/bin/pypy "${pkgdir}"/opt/pypy/bin/pypy install -Dm755 pypy/bin/libpypy-c.so "${pkgdir}"/usr/lib/libpypy-c.so @@ -36,19 +41,15 @@ cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${pkgdir}"/opt/pypy/ cd .. + # Install symlink mkdir -p "${pkgdir}"/usr/bin ln -s /opt/pypy/bin/pypy "${pkgdir}"/usr/bin/pypy + # Install misc stuff + install -Dm644 README.rst "${pkgdir}"/opt/pypy/README.rst install -Dm644 LICENSE "${pkgdir}"/opt/pypy/LICENSE - install -Dm644 README.rst "${pkgdir}"/opt/pypy/README.rst install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/pypy/LICENSE - # Compile binary modules - #export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:${LD_LIBRARY_PATH} - #for module in _curses syslog gdbm sqlite3 _tkinter; do - # "${pkgdir}"/opt/pypy/bin/pypy-c -c "import ${module}" - #done - # Generate bytecode (they apparently haven't intended for this to happen yet) #"${pkgdir}"/opt/pypy/bin/pypy-c -m compileall "${pkgdir}"/opt/pypy #"${pkgdir}"/opt/pypy/bin/pypy-c -O -m compileall "${pkgdir}"/opt/pypy