From 593e036a1d4c61a097dbacf6562a540012c3d4d2 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Sat, 21 Aug 2021 12:20:13 +0100 Subject: [PATCH] remove unused recipes --- recipes/idna/__init__.py | 14 ------------ recipes/netifaces/__init__.py | 33 --------------------------- recipes/netifaces/socket-ioctls.patch | 29 ----------------------- recipes/six/__init__.py | 10 -------- 4 files changed, 86 deletions(-) delete mode 100644 recipes/idna/__init__.py delete mode 100644 recipes/netifaces/__init__.py delete mode 100644 recipes/netifaces/socket-ioctls.patch delete mode 100644 recipes/six/__init__.py diff --git a/recipes/idna/__init__.py b/recipes/idna/__init__.py deleted file mode 100644 index a79c0f6..0000000 --- a/recipes/idna/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -from pythonforandroid.recipe import PythonRecipe - - -class IdnaRecipe(PythonRecipe): - name = 'idna' - version = '2.6' - url = 'https://github.com/kjd/idna/archive/v{version}.tar.gz' - - depends = [('python2', 'python3crystax'), 'setuptools'] - - call_hostpython_via_targetpython = False - - -recipe = IdnaRecipe() \ No newline at end of file diff --git a/recipes/netifaces/__init__.py b/recipes/netifaces/__init__.py deleted file mode 100644 index 50634d8..0000000 --- a/recipes/netifaces/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ - -import glob -from pythonforandroid.recipe import CompiledComponentsPythonRecipe, Recipe -from os.path import join -import os -import sh - - -class NetifacesRecipe(CompiledComponentsPythonRecipe): - version = '0.10.7' - url = 'https://files.pythonhosted.org/packages/81/39/4e9a026265ba944ddf1fea176dbb29e0fe50c43717ba4fcf3646d099fe38/netifaces-{version}.tar.gz' - depends = [('python2', 'python3crystax'), 'setuptools'] - call_hostpython_via_targetpython = False - patches = ['socket-ioctls.patch'] - - def get_recipe_env(self, arch): - env = super(NetifacesRecipe, self).get_recipe_env(arch) - - env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions' - - if self.ctx.ndk == 'crystax': - # only keeps major.minor (discards patch) - python_version = self.ctx.python_recipe.version[0:3] - ndk_dir_python = os.path.join(self.ctx.ndk_dir, 'sources/python/', python_version) - env['LDFLAGS'] += ' -L{}'.format(os.path.join(ndk_dir_python, 'libs', arch.arch)) - env['LDFLAGS'] += ' -lpython{}'.format(python_version) - # until `pythonforandroid/archs.py` gets merged upstream: - # https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6 - env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python) - - return env - -recipe = NetifacesRecipe() diff --git a/recipes/netifaces/socket-ioctls.patch b/recipes/netifaces/socket-ioctls.patch deleted file mode 100644 index 4e6da70..0000000 --- a/recipes/netifaces/socket-ioctls.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/netifaces.c 2018-09-25 21:26:48.238476102 +0100 -+++ b/netifaces.c 2018-09-25 21:55:14.201995669 +0100 -@@ -22,6 +22,10 @@ - obj = Py_InitModule3((name), (methods), (doc)); - #endif - -+#ifndef HAVE_SOCKET_IOCTLS -+#define HAVE_SOCKET_IOCTLS 1 -+#endif -+ - #ifndef WIN32 - - # include -@@ -178,12 +182,12 @@ - # include - # endif /* HAVE_GETIFADDRS */ - --# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF) -+//# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF) - /* If the platform doesn't define, what we need, barf. If you're seeing this, - it means you need to write suitable code to retrieve interface information - on your system. */ --# error You need to add code for your platform. --# endif -+//# error You need to add code for your platform. -+//# endif - - #else /* defined(WIN32) */ - diff --git a/recipes/six/__init__.py b/recipes/six/__init__.py deleted file mode 100644 index 0166450..0000000 --- a/recipes/six/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ - -from pythonforandroid.recipe import PythonRecipe - - -class SixRecipe(PythonRecipe): - version = '1.9.0' - url = 'https://pypi.python.org/packages/source/s/six/six-{version}.tar.gz' - depends = [('python2', 'python3crystax')] - -recipe = SixRecipe()