2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=django-restframework
13 PKG_LICENSE:=BSD-3-Clause
15 PKG_SOURCE:=djangorestframework-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://pypi.python.org/packages/source/d/djangorestframework/
17 PKG_BUILD_DIR:=$(BUILD_DIR)/djangorestframework-$(PKG_VERSION)
18 PKG_MD5SUM:=6f5ee9646e7fa87dad4385d3c7e7678d
19 PKG_BUILD_DEPENDS:=python python-setuptools
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
24 define Package/django-restframework
28 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
29 TITLE:=Web APIs for Django, made easy.
30 URL:=http://www.django-rest-framework.org/
31 DEPENDS:=+python +django
34 define Package/django-restframework/description
35 Web APIs for Django, made easy.
39 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
42 define Package/django-restframework/install
43 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
45 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
49 $(eval $(call BuildPackage,django-restframework))