File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
pythonforandroid/recipes/reportlab Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,20 @@ class ReportLabRecipe(CompiledComponentsPythonRecipe):
13
13
def prebuild_arch (self , arch ):
14
14
if not self .is_patched (arch ):
15
15
super (ReportLabRecipe , self ).prebuild_arch (arch )
16
- self .apply_patch ('patches/fix-setup.patch' , arch .arch )
17
16
recipe_dir = self .get_build_dir (arch .arch )
17
+
18
+ # Some versions of reportlab ship with a GPL-licensed font.
19
+ # Remove it, since this is problematic in .apks unless the
20
+ # entire app is GPL:
21
+ font_dir = os .path .join (recipe_dir ,
22
+ "src" , "reportlab" , "fonts" )
23
+ if os .path .exists (font_dir ):
24
+ for l in os .listdir (font_dir ):
25
+ if l .lower ().startswith ('darkgarden' ):
26
+ os .remove (os .path .join (font_dir , l ))
27
+
28
+ # Apply patches:
29
+ self .apply_patch ('patches/fix-setup.patch' , arch .arch )
18
30
shprint (sh .touch , os .path .join (recipe_dir , '.patched' ))
19
31
ft = self .get_recipe ('freetype' , self .ctx )
20
32
ft_dir = ft .get_build_dir (arch .arch )
You can’t perform that action at this time.
0 commit comments