From f18bc652c77a2d15e8f74f4b6d92a6daeeb6b20d Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 3 Jul 2019 11:23:46 +0300 Subject: [PATCH] django-ranged-response: update packaging format + add python3 variant This change also updates the maintainer email to cotequeiroz@gmail.com, as requested on a different change. Not updating deps here, since that will be done in the next changeset that will convert packages to the Python[3] packaging format. Signed-off-by: Alexandru Ardelean (cherry-picked from commit 70ebc7a2f4664c52f3e57e48fc5f707a859089fb) --- lang/python/django-ranged-response/Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/lang/python/django-ranged-response/Makefile b/lang/python/django-ranged-response/Makefile index b9a767eea..35bd47724 100644 --- a/lang/python/django-ranged-response/Makefile +++ b/lang/python/django-ranged-response/Makefile @@ -7,20 +7,25 @@ include $(TOPDIR)/rules.mk PKG_NAME:=django-ranged-response PKG_VERSION:=0.2.0 -PKG_RELEASE:=4 - -PKG_MAINTAINER:=Eneas U de Queiroz -PKG_LICENSE:=MIT +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/${PKG_NAME} +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/d/$(PKG_NAME)/ PKG_HASH:=f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985 +PKG_MAINTAINER:=Eneas U de Queiroz +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-$(PKG_NAME)-$(PKG_VERSION) + include $(INCLUDE_DIR)/package.mk include ../python-package.mk include ../python3-package.mk -define Package/django-ranged-response +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + +define Package/$(PKG_NAME)/Default SUBMENU:=Python SECTION:=lang CATEGORY:=Languages @@ -37,7 +42,7 @@ $(call Package/$(PKG_NAME)/Default) MDEPENDS:=python-django endef -define Package/django-ranged-response/description +define Package/python-$(PKG_NAME)/description Modified Django FileResponse that adds Content-Range headers. endef @@ -48,6 +53,7 @@ $(call Package/$(PKG_NAME)/Default) python3-django VARIANT:=python3 MDEPENDS:=python3-django +endef define Package/python3-$(PKG_NAME)/description $(call define Package/python-$(PKG_NAME)/description)