2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: JIT destekli pythonda yazılmış python
|
2017-09-03 18:26:04 +02:00
|
|
|
|
# URL: http://pypy.org
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: python tk sqlite mercurial pycparser libffi
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=pypy
|
2018-01-08 23:01:28 +01:00
|
|
|
|
surum=5.10.0
|
2017-10-28 14:10:23 +02:00
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://bitbucket.org/pypy/pypy/downloads/pypy2-v$surum-src.tar.bz2)
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
cd pypy2-v${surum}-src/pypy/goal
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
# Compile binary modules
|
|
|
|
|
PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
cd pypy2-v${surum}-src
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
# Prepare installation
|
|
|
|
|
python2 pypy/tool/release/package.py --archive-name pypy --targetdir .
|
|
|
|
|
mkdir unpacked
|
|
|
|
|
tar xf pypy.tar.bz2 -C unpacked
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
# 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 ..
|
2017-09-03 18:26:04 +02:00
|
|
|
|
|
2018-01-08 23:01:28 +01:00
|
|
|
|
# Install symlink
|
|
|
|
|
mkdir -p "${PKG}"/usr/bin
|
|
|
|
|
ln -s /opt/pypy/bin/pypy "${PKG}"/usr/bin/pypy
|
|
|
|
|
|
|
|
|
|
# Install misc stuff
|
|
|
|
|
install -Dm644 README.rst "${PKG}"/opt/pypy/README.rst
|
|
|
|
|
install -Dm644 LICENSE "${PKG}"/opt/pypy/LICENSE
|
|
|
|
|
install -Dm644 LICENSE "${PKG}"/usr/share/licenses/pypy/LICENSE
|
2017-09-03 18:26:04 +02:00
|
|
|
|
}
|