forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
executable file
·40 lines (31 loc) · 875 Bytes
/
recipe.sh
File metadata and controls
executable file
·40 lines (31 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
VERSION_docutils=${VERSION_docutils:-0.9.1}
URL_docutils=http://prdownloads.sourceforge.net/docutils/docutils-$VERSION_docutils.tar.gz
DEPS_docutils=(pil)
MD5_docutils=
BUILD_docutils=$BUILD_PATH/docutils/$(get_directory $URL_docutils)
RECIPE_docutils=$RECIPES_PATH/docutils
function prebuild_docutils() {
true
}
function shouldbuild_docutils() {
if [ -d "$SITEPACKAGES_PATH/docutils" ]; then
DO_BUILD=0
fi
}
function build_docutils() {
cd $BUILD_docutils
push_arm
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
export LDSHARED="$LIBLINK"
# fake try to be able to cythonize generated files
$HOSTPYTHON setup.py build_ext
try find . -iname '*.pyx' -exec $CYTHON {} \;
try $HOSTPYTHON setup.py build_ext -v
try $HOSTPYTHON setup.py install -O2
unset LDSHARED
pop_arm
}
function postbuild_docutils() {
true
}