python-evdev: use PYTHON[3]_PKG_SETUP_GLOBAL_ARGS vars for build
authorAlexandru Ardelean <redacted>
Wed, 24 Apr 2019 08:56:15 +0000 (11:56 +0300)
committerAlexandru Ardelean <redacted>
Thu, 25 Apr 2019 07:44:14 +0000 (10:44 +0300)
This is a minor cleanup.
Use PYTHON[3]_PKG_SETUP_GLOBAL_ARGS variable to specify extra build args.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-evdev/Makefile

index 38ba1ae709da7c639cf0f03b818e5f4f62b19c48..6f062d1c55ee28c7020e0ca97cc75924890684d3 100644 (file)
@@ -63,19 +63,14 @@ $(call Package/python-evdev/description)
 (Variant for Python3)
 endef
 
-define PyBuild/Compile
-       $(call Build/Compile/PyMod,, build \
-               build_ecodes  --evdev-headers="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h" \
-               build_ext \
-               install --root="$(PKG_INSTALL_DIR)" --prefix="/usr")
-endef
+LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
 
-define Py3Build/Compile
-       $(call Build/Compile/Py3Mod,, build \
-               build_ecodes  --evdev-headers="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h" \
-               build_ext \
-               install --root="$(PKG_INSTALL_DIR)" --prefix="/usr")
-endef
+PYTHON3_PKG_SETUP_GLOBAL_ARGS:= \
+       build build_ecodes \
+       --evdev-headers="$(LINUX_EVDEV_HEADERS)" \
+       build_ext
+
+PYTHON_PKG_SETUP_GLOBAL_ARGS:=$(PYTHON3_PKG_SETUP_GLOBAL_ARGS)
 
 $(eval $(call PyPackage,python-evdev))
 $(eval $(call BuildPackage,python-evdev))
git clone https://git.99rst.org/PROJECT