summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-12-06 10:49:54 +0200
committerGitHub <noreply@github.com>2018-12-06 10:49:54 +0200
commitfa8c03d68dbe45d7619aee3c2a627f98f01aee54 (patch)
tree4b3d3741cb7c94b9d5e78b6e3a1b511200198cd4 /lang/python
parentc6ebdf4015570fabc697b9b6148995842c1c0c8c (diff)
parentd97aaaf0bd2abf53465c334e828891f464c743ee (diff)
Merge pull request #7576 from cotequeiroz/django-formtools_PyPackage
django-formtools: use PyPackage to build
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/django-formtools/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/lang/python/django-formtools/Makefile b/lang/python/django-formtools/Makefile
index d6bcc252f..7e219b74a 100644
--- a/lang/python/django-formtools/Makefile
+++ b/lang/python/django-formtools/Makefile
@@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=django-formtools
PKG_VERSION:=2.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=BSD-3-Clause
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/4a/86/ccbb8225dec0621f99f7e19f3dea0a629f1e41bd99fd58ac3e2f388e028f
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/${PKG_NAME}
PKG_HASH:=7703793f1675aa6e871f9fed147e8563816d7a5b9affdc5e3459899596217f7c
include $(INCLUDE_DIR)/package.mk
@@ -27,6 +27,7 @@ define Package/django-formtools
TITLE:=A set of high-level abstractions for Django forms
URL:=https://django-formtools.readthedocs.io/en/latest/
DEPENDS:=+python +django
+ VARIANT:=python
endef
define Package/django-formtools/description
@@ -34,15 +35,6 @@ define Package/django-formtools/description
Currently for form previews and multi-step forms.
endef
-define Build/Compile
- $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
-endef
-
-define Package/django-formtools/install
- $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
- $(CP) \
- $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
- $(1)$(PYTHON_PKG_DIR)
-endef
-
+$(eval $(call PyPackage,django-formtools))
$(eval $(call BuildPackage,django-formtools))
+$(eval $(call BuildPackage,django-formtools-src))