File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
pythonforandroid/recipes/libxml2 Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ from pythonforandroid .toolchain import (CythonRecipe , shprint ,
2
+ current_directory , info , Recipe )
3
+ from pythonforandroid .patching import will_build , check_any
4
+ import sh
5
+ from os .path import join
6
+
7
+
8
+ class Libxml2Recipe (CythonRecipe ):
9
+ version = '2.9.4'
10
+ url = 'ftp://xmlsoft.org/libxml2/libxml2-{version}.tar.gz'
11
+ name = 'libxml2'
12
+ depends = [('python2' , 'python3crystax' )]
13
+
14
+ def get_recipe_env (self , arch ):
15
+ env = super (Libxml2Recipe , self ).get_recipe_env (arch )
16
+
17
+ try :
18
+ sh .sed ('runtest\$(EXEEXT) \\ / \\ /' , 'Makefile' )
19
+ except :
20
+ pass
21
+ try :
22
+ sh .sed ('testrecurse\$(EXEEXT)$//' , 'Makefile' )
23
+ except :
24
+ pass
25
+ try :
26
+ sh .make ('-j' , '$MAKE_JOBS' )
27
+ except :
28
+ pass
29
+
30
+
31
+ recipe = Libxml2Recipe ()
You can’t perform that action at this time.
0 commit comments