Skip to content

Commit 99599aa

Browse files
committed
recipe for libxml2 added
1 parent 4115a61 commit 99599aa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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()

0 commit comments

Comments
 (0)