2007-09-27 02:24:27 +00:00
|
|
|
#
|
2008-04-14 01:06:00 +00:00
|
|
|
# Copyright (C) 2007-2008 OpenWrt.org
|
2007-09-27 02:24:27 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=MySQL-python
|
|
|
|
PKG_VERSION:=1.2.2
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/mysql-python
|
|
|
|
PKG_MD5SUM:=532268f02870bea18c1d465e88afff30
|
2008-04-14 01:06:00 +00:00
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
PKG_BUILD_DEPENDS:=python
|
2007-09-27 02:24:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2010-02-24 23:13:32 +00:00
|
|
|
$(call include_mk, python-package.mk)
|
2007-10-21 10:20:01 +00:00
|
|
|
|
|
|
|
define Package/python-mysql
|
2008-04-14 01:06:00 +00:00
|
|
|
SUBMENU:=Python
|
2007-10-21 10:20:01 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=MySQL database adapter for Python
|
|
|
|
URL:=http://mysql-python.sourceforge.net/
|
2009-03-06 20:27:09 +00:00
|
|
|
DEPENDS:=+python +libmysqlclient
|
2007-09-27 02:24:27 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-21 10:20:01 +00:00
|
|
|
define Package/python-mysql/description
|
2014-03-27 07:06:05 +00:00
|
|
|
MySQLdb is an thread-compatible interface to the popular MySQL database
|
2007-09-27 02:24:27 +00:00
|
|
|
server that provides the Python database API.
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
define PyPackage/python-mysql/filespec
|
2007-09-27 02:24:27 +00:00
|
|
|
+|$(PYTHON_PKG_DIR)/_mysql.so
|
|
|
|
+|$(PYTHON_PKG_DIR)/_mysql_exceptions.py*
|
|
|
|
+|$(PYTHON_PKG_DIR)/MySQLdb
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2008-08-10 16:12:31 +00:00
|
|
|
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
2007-09-27 02:24:27 +00:00
|
|
|
$(call Build/Compile/PyMod,., \
|
|
|
|
install --prefix="$(PKG_INSTALL_DIR)/usr", \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2007-10-09 01:22:26 +00:00
|
|
|
$(eval $(call PyPackage,python-mysql))
|
2007-10-21 10:20:01 +00:00
|
|
|
$(eval $(call BuildPackage,python-mysql))
|