pypy
This commit is contained in:
parent
84bc9f0c0e
commit
b2a502fc72
1 changed files with 24 additions and 19 deletions
|
@ -4,34 +4,39 @@
|
||||||
# Gerekler: python tk sqlite mercurial pycparser libffi
|
# Gerekler: python tk sqlite mercurial pycparser libffi
|
||||||
|
|
||||||
isim=pypy
|
isim=pypy
|
||||||
surum=5.8.0
|
surum=5.10.0
|
||||||
devir=1
|
devir=1
|
||||||
kaynak=(https://bitbucket.org/pypy/pypy/downloads/pypy2-v$surum-src.tar.bz2)
|
kaynak=(https://bitbucket.org/pypy/pypy/downloads/pypy2-v$surum-src.tar.bz2)
|
||||||
|
|
||||||
derle() {
|
derle() {
|
||||||
|
|
||||||
cd pypy2-v${surum}-src/pypy/goal
|
cd pypy2-v${surum}-src/pypy/goal
|
||||||
|
|
||||||
python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone
|
python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone
|
||||||
|
|
||||||
# Compile binary modules
|
# Compile binary modules
|
||||||
PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py
|
PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py
|
||||||
|
|
||||||
cd $SRC/pypy2-v${surum}-src
|
cd pypy2-v${surum}-src
|
||||||
|
|
||||||
# Prepare installation
|
# Prepare installation
|
||||||
python2 pypy/tool/release/package.py --archive-name pypy --targetdir .
|
python2 pypy/tool/release/package.py --archive-name pypy --targetdir .
|
||||||
mkdir unpacked
|
mkdir unpacked
|
||||||
tar xf pypy.tar.bz2 -C unpacked
|
tar xf pypy.tar.bz2 -C unpacked
|
||||||
|
|
||||||
# Install pypy
|
# Install pypy
|
||||||
cd unpacked
|
cd unpacked
|
||||||
install -Dm755 pypy/bin/pypy "${PKG}"/opt/pypy/bin/pypy
|
install -Dm755 pypy/bin/pypy "${PKG}"/opt/pypy/bin/pypy
|
||||||
install -Dm755 pypy/bin/libpypy-c.so "${PKG}"/usr/lib/libpypy-c.so
|
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/
|
cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${PKG}"/opt/pypy/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Install symlink
|
# Install symlink
|
||||||
mkdir -p "${PKG}"/usr/bin
|
mkdir -p "${PKG}"/usr/bin
|
||||||
ln -s /opt/pypy/bin/pypy "${PKG}"/usr/bin/pypy
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue