2016-04-30 10:37:30 +02:00
|
|
|
#
|
2017-02-13 22:03:14 +01:00
|
|
|
# Copyright (C) 2007-2017 OpenWrt.org
|
2016-04-30 10:37:30 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=django-restframework
|
2022-10-08 21:08:29 +02:00
|
|
|
PKG_VERSION:=3.14.0
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2016-04-30 10:37:30 +02:00
|
|
|
|
2019-10-20 21:03:12 +02:00
|
|
|
PYPI_NAME:=djangorestframework
|
2022-10-08 21:08:29 +02:00
|
|
|
PKG_HASH:=579a333e6256b09489cbe0a067e66abe55c6595d8926be6b99423786334350c8
|
2019-06-25 09:17:10 +02:00
|
|
|
|
2019-03-14 09:52:49 +01:00
|
|
|
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
|
2019-06-25 09:17:10 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE.md
|
|
|
|
|
2019-10-20 21:03:12 +02:00
|
|
|
include ../pypi.mk
|
2016-04-30 10:37:30 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-06-25 09:17:10 +02:00
|
|
|
include ../python3-package.mk
|
2016-04-30 10:37:30 +02:00
|
|
|
|
2020-01-31 08:29:20 +01:00
|
|
|
define Package/python3-django-restframework
|
2016-04-30 10:37:30 +02:00
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Web APIs for Django, made easy.
|
2018-09-17 23:36:21 +02:00
|
|
|
URL:=https://www.django-rest-framework.org
|
2020-02-05 12:13:45 +01:00
|
|
|
DEPENDS:=+python3 +django
|
2016-04-30 10:37:30 +02:00
|
|
|
endef
|
|
|
|
|
2020-01-30 15:44:26 +01:00
|
|
|
define Package/python3-django-restframework/description
|
2020-01-31 08:29:20 +01:00
|
|
|
Web APIs for Django, made easy.
|
2016-04-30 10:37:30 +02:00
|
|
|
endef
|
|
|
|
|
2020-01-30 15:44:26 +01:00
|
|
|
$(eval $(call Py3Package,python3-django-restframework))
|
|
|
|
$(eval $(call BuildPackage,python3-django-restframework))
|
|
|
|
$(eval $(call BuildPackage,python3-django-restframework-src))
|