From affd48e75fd46ed3a627f148e482e2742128bf78 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sun, 3 Sep 2017 19:26:04 +0300 Subject: [PATCH] pypy.eklendi --- talimatname/genel/pycparser/talimat | 20 ++++++++++++++++ talimatname/genel/pypy/talimat | 37 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 talimatname/genel/pycparser/talimat create mode 100644 talimatname/genel/pypy/talimat diff --git a/talimatname/genel/pycparser/talimat b/talimatname/genel/pycparser/talimat new file mode 100644 index 000000000..270608190 --- /dev/null +++ b/talimatname/genel/pycparser/talimat @@ -0,0 +1,20 @@ +# Description: Pythonda yazılmış C ayrıştırıcı and AST üretici +# URL: https://github.com/eliben/pycparser +# Packager: milisarge +# Depends on: python-setuptools + +name=pycparser +version=2.17 +release=1 +source=(https://github.com/eliben/$name/archive/release_v$version.zip::$name-$version.zip) + +build() { + cd $name-release_v$version + /usr/bin/python setup.py build + + cd pycparser + /usr/bin/python _build_tables.py + cd - + + /usr/bin/python setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/pypy/talimat b/talimatname/genel/pypy/talimat new file mode 100644 index 000000000..fb9dbdba3 --- /dev/null +++ b/talimatname/genel/pypy/talimat @@ -0,0 +1,37 @@ +# Description: JIT destekli pythonda yazılmış python +# URL: http://pypy.org +# Packager: milisarge +# Depends on: python tk sqlite mercurial pycparser libffi + +name=pypy +version=5.8.0 +release=1 +source=(https://bitbucket.org/pypy/pypy/downloads/pypy2-v$version-src.tar.bz2) + +build() { + + cd pypy2-v${version}-src/pypy/goal + + python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone + + # Compile binary modules + PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py + + cd $SRC/pypy2-v${version}-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 "${PKG}"/opt/pypy/bin/pypy + install -Dm755 pypy/bin/libpypy-c.so "${PKG}"/usr/lib/libpypy-c.so + cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${PKG}"/opt/pypy/ + cd .. + + # Install symlink + mkdir -p "${PKG}"/usr/bin + ln -s /opt/pypy/bin/pypy "${PKG}"/usr/bin/pypy +}