Skip to content

Commit adf627e

Browse files
committed
Merge pull request kivy#58 from kivy/docutils
recipe for docutils
2 parents 59712fd + a876f22 commit adf627e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

recipes/docutils/recipe.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
VERSION_docutils=
4+
URL_docutils=http://prdownloads.sourceforge.net/docutils/docutils-0.9.1.tar.gz
5+
DEPS_docutils=(pil)
6+
MD5_docutils=
7+
BUILD_docutils=$BUILD_PATH/docutils/$(get_directory $URL_docutils)
8+
RECIPE_docutils=$RECIPES_PATH/docutils
9+
10+
function prebuild_docutils() {
11+
true
12+
}
13+
14+
function build_docutils() {
15+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/docutils" ]; then
16+
#return
17+
true
18+
fi
19+
20+
cd $BUILD_docutils
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 $BUILD_PATH/python-install/bin/python.host setup.py install -O2
32+
33+
unset LDSHARED
34+
pop_arm
35+
}
36+
37+
function postbuild_docutils() {
38+
true
39+
}

0 commit comments

Comments
 (0)