summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-12-06 10:50:08 +0200
committerGitHub <noreply@github.com>2018-12-06 10:50:08 +0200
commit8e7efabb7d81d2c9327e4fc0f1feace80b98a0f8 (patch)
treefa5219506bc8c102981276206dafbb9712047381 /lang/python
parentfa8c03d68dbe45d7619aee3c2a627f98f01aee54 (diff)
parent61091f9281c7595df740022e57cc5ebd646053b5 (diff)
Merge pull request #7577 from cotequeiroz/django-ranged-response_PyPackage
django-ranged-response: use PyPackage to build
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/django-ranged-response/Makefile18
1 files changed, 5 insertions, 13 deletions
diff --git a/lang/python/django-ranged-response/Makefile b/lang/python/django-ranged-response/Makefile
index 34c32ae60..f15901dc6 100644
--- a/lang/python/django-ranged-response/Makefile
+++ b/lang/python/django-ranged-response/Makefile
@@ -9,11 +9,11 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=django-ranged-response
PKG_VERSION:=0.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/70/e3/9372fcdca8e9c3205e7979528ccd1a14354a9a24d38efff11c1846ff8bf1
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/${PKG_NAME}
PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985
include $(INCLUDE_DIR)/package.mk
@@ -27,21 +27,13 @@ define Package/django-ranged-response
TITLE:=Modified Django FileResponse that adds Content-Range headers.
URL:=https://github.com/wearespindle/django-ranged-fileresponse
DEPENDS:=+python +django
+ VARIANT:=python
endef
define Package/django-ranged-response/description
Modified Django FileResponse that adds Content-Range headers.
endef
-define Build/Compile
- $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
-endef
-
-define Package/django-ranged-response/install
- $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
- $(CP) \
- $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
- $(1)$(PYTHON_PKG_DIR)
-endef
-
+$(eval $(call PyPackage,django-ranged-response))
$(eval $(call BuildPackage,django-ranged-response))
+$(eval $(call BuildPackage,django-ranged-response-src))