mirror of
http://git.openwrt.org/packages.git
synced 2025-01-08 11:57:34 +08:00
packages: add python-django (closes: #10191)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29142 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bf71bed5c7
commit
9decdb3e5c
51
lang/python-django/Makefile
Normal file
51
lang/python-django/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# Copyright (C) 2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-django
|
||||
PKG_VERSION:=1.3.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://media.djangoproject.com/releases/1.3/
|
||||
PKG_MD5SUM:=62d8642fd06b9a0bf8544178f8500767
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/Django-$(PKG_VERSION)
|
||||
PKG_BUILD_DEPENDS:=python
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
$(call include_mk, python-package.mk)
|
||||
|
||||
define Package/python-django
|
||||
SECTION:=language-python
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=Django Web framework
|
||||
URL:=https://www.djangoproject.com/
|
||||
DEPENDS:=+python
|
||||
endef
|
||||
|
||||
define Package/python-django/description
|
||||
Django is a high-level Python Web framework that encourages rapid
|
||||
development and clean, pragmatic design.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(call Build/Compile/PyMod,., \
|
||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||
)
|
||||
endef
|
||||
|
||||
define Package/python-django/install
|
||||
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
|
||||
$(1)$(PYTHON_PKG_DIR)/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,python-django))
|
Loading…
Reference in New Issue
Block a user