Skip to content

Commit c32669a

Browse files
committed
add pyjnius package
1 parent 1a9f6ce commit c32669a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

recipes/pyjnius/recipe.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
3+
VERSION_pyjnius=
4+
URL_pyjnius=https://github.com/kivy/pyjnius/zipball/master/pyjnius-master.zip
5+
DEPS_pyjnius=(pygame)
6+
MD5_pyjnius=
7+
BUILD_pyjnius=$BUILD_PATH/pyjnius/$(get_directory $URL_pyjnius)
8+
RECIPE_pyjnius=$RECIPES_PATH/pyjnius
9+
10+
function prebuild_pyjnius() {
11+
true
12+
}
13+
14+
function build_pyjnius() {
15+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/jnius" ]; then
16+
#return
17+
true
18+
fi
19+
20+
cd $BUILD_pyjnius
21+
22+
push_arm
23+
24+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
25+
export LDSHARED="$LIBLINK"
26+
27+
# fake try to be able to cythonize generated files
28+
$BUILD_PATH/python-install/bin/python.host setup.py build_ext
29+
try find . -iname '*.pyx' -exec cython {} \;
30+
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v
31+
try find build/lib.* -name "*.o" -exec $STRIP {} \;
32+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
33+
34+
unset LDSHARED
35+
pop_arm
36+
}
37+
38+
function postbuild_pyjnius() {
39+
true
40+
}

0 commit comments

Comments
 (0)