python3-bottle: use Py3Package for installation
authorStepan Henek <stepan.henek@nic.cz>
Wed, 5 Dec 2018 12:59:54 +0000 (13:59 +0100)
committerJosef Schlehofer <josef.schlehofer@nic.cz>
Wed, 13 Mar 2019 20:41:03 +0000 (21:41 +0100)
Signed-off-by: Stepan Henek <stepan.henek@nic.cz>
lang/python/python3-bottle/Makefile

index 804a6de031f82b8f23837b5162d51fbfc9712e39..37ced1bfb74b809335f7850ffc920e37ed7b8cf8 100644 (file)
@@ -30,6 +30,7 @@ define Package/python3-bottle
        TITLE:=Bottle is a fast, simple and lightweight WSGI micro web-framework for Python
        URL:=https://bottlepy.org
        DEPENDS:=+python3
+       VARIANT:=python3
 endef
 
 define Package/python3-bottle/description
@@ -38,15 +39,6 @@ define Package/python3-bottle/description
  Python Standard Library.
 endef
 
-define Build/Configure
-endef
-
-define Build/Compile
-endef
-
-define Package/python3-bottle/install
-       $(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)
-       $(CP) $(PKG_BUILD_DIR)/bottle.py $(1)$(PYTHON3_PKG_DIR)
-endef
-
+$(eval $(call Py3Package,python3-bottle))
 $(eval $(call BuildPackage,python3-bottle))
+$(eval $(call BuildPackage,python3-bottle-src))