Ticket #10191: django.patch

File django.patch, 1.4 KB (added by anonymous, 6 years ago)
  • feeds/packages/lang/python-django/Makefile

     
     1# 
     2# Copyright (C) 2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=pydjango 
     11PKG_REV:=16771 
     12PKG_VERSION:=1.3.1 
     13PKG_RELEASE:=1 
     14 
     15PKG_SOURCE_PROTO:=svn 
     16PKG_SOURCE_VERSION:=$(PKG_REV) 
     17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 
     18PKG_SOURCE_URL:=http://code.djangoproject.com/svn/django/tags/releases/1.3.1/ 
     19PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2 
     20 
     21include $(INCLUDE_DIR)/package.mk 
     22$(call include_mk, python-package.mk) 
     23 
     24define Package/python-django 
     25  SECTION:=language-python 
     26  CATEGORY:=Languages 
     27  SUBMENU:=Python 
     28  TITLE:=python-django 
     29  URL:=https://www.djangoproject.com 
     30  DEPENDS:=+python 
     31endef 
     32 
     33define Package/python-django/description 
     34Python module interface to the django project. 
     35endef 
     36 
     37define Build/Compile 
     38        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 
     39endef 
     40 
     41define Package/python-django/install 
     42        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 
     43        $(CP) \ 
     44                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 
     45                $(1)$(PYTHON_PKG_DIR) 
     46endef 
     47 
     48$(eval $(call BuildPackage,python-django))