[arch-commits] Commit in pypy3/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Mar 22 12:13:46 UTC 2017


    Date: Wednesday, March 22, 2017 @ 12:13:45
  Author: svenstaro
Revision: 218388

upgpkg: pypy3 5.7.0-1

upstream release 5.7.0

Modified:
  pypy3/trunk/PKGBUILD

----------+
 PKGBUILD |   51 ++++++++++++++++++++++++---------------------------
 1 file changed, 24 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-22 11:39:32 UTC (rev 218387)
+++ PKGBUILD	2017-03-22 12:13:45 UTC (rev 218388)
@@ -2,54 +2,51 @@
 # Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
 
 pkgname=pypy3
-pkgver=5.5.0
-_pkgver=5.5.0
+pkgver=5.7.0
 pkgrel=1
 pkgdesc="A Python3 implementation written in Python, JIT enabled"
 url="http://pypy.org"
-arch=('i686' 'x86_64')
+arch=('x86_64')
 depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
-makedepends=('python2' 'sqlite' 'tk')
+makedepends=('python2' 'sqlite' 'tk' 'python2-pycparser')
 optdepends=('sqlite: sqlite module'
             'tk: tk module')
 options=(!buildflags)
 license=('custom:MIT')
-source=("https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v${pkgver}-alpha-src.tar.bz2")
-md5sums=('536008fd7b17af8878915393fc1ecfc3')
+source=("https://bitbucket.org/pypy/pypy/downloads/pypy3-v${pkgver}-src.tar.bz2")
+sha512sums=('b34f7b8fee494cbd77e8b5381f18eace09c7717282de391d6aef7e522ab98f570ac7f3a0a3df0b01fdb537b129f63e22d1f371191a5746bb19007a775498e771')
 
 build() {
-  cd pypy3-v${_pkgver}-src/pypy/goal
+  cd pypy3-v${pkgver}-src/pypy/goal
 
-  python2 ../../rpython/bin/rpython -Ojit --no-shared targetpypystandalone
-  # python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone
+  python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone
+
+  # Compile binary modules
+  PYTHONPATH=../.. ./pypy3-c ../tool/build_cffi_imports.py
 }
 
 package() {
-  cd pypy3-v${_pkgver}-src
+  cd pypy3-v${pkgver}-src
 
-  install -Dm755 pypy/goal/pypy-c "${pkgdir}"/opt/pypy3/bin/pypy-c
-  # install -Dm755 pypy/goal/libpypy-c.so "${pkgdir}"/usr/lib/libpypy3-c.so
-  cp -r include lib_pypy site-packages "${pkgdir}"/opt/pypy3/
+  # Prepare installation
+  python2 pypy/tool/release/package.py --archive-name pypy --targetdir .
+  mkdir unpacked
+  tar xf pypy.tar.bz2 -C unpacked
 
-  mkdir "${pkgdir}"/opt/pypy3/lib-python/
-  cp -r lib-python/3 "${pkgdir}"/opt/pypy3/lib-python/
+  # Install pypy
+  cd unpacked
+  install -Dm755 pypy/bin/pypy3 "${pkgdir}"/opt/pypy3/bin/pypy3
+  install -Dm755 pypy/bin/libpypy3-c.so "${pkgdir}"/usr/lib/libpypy3-c.so
+  cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${pkgdir}"/opt/pypy3
+  cd ..
 
+  # Install symlink
   mkdir -p "${pkgdir}"/usr/bin
-  ln -s /opt/pypy3/bin/pypy-c "${pkgdir}"/usr/bin/pypy3
+  ln -s /opt/pypy3/bin/pypy3 "${pkgdir}"/usr/bin/pypy3
 
+  # Install misc stuff
   install -Dm644 README.rst "${pkgdir}"/opt/pypy3/README.rst
   install -Dm644 LICENSE "${pkgdir}"/opt/pypy3/LICENSE
   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/pypy3/LICENSE
-
-  # Compile binary modules
-  export LD_LIBRARY_PATH="${pkgdir}"/usr/lib:${LD_LIBRARY_PATH}
-  for module in _curses syslog dbm sqlite3 _tkinter; do
-    "${pkgdir}/opt/pypy3/bin/pypy-c" -c "import ${module}"
-  done
-
-  # Generate bytecode (currently fails with errors)
-  "${pkgdir}"/opt/pypy3/bin/pypy-c -m compileall "${pkgdir}"/opt/pypy3 || true
-  "${pkgdir}"/opt/pypy3/bin/pypy-c -O -m compileall "${pkgdir}"/opt/pypy3 || true
-
 }
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list