@ -1,5 +1,5 @@
#
# Copyright (C) 2007-2014 OpenWrt.org
# Copyright (C) 2007-2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -7,26 +7,43 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := MySQL- python
PKG_VERSION := 1.2.5
PKG_NAME := python-mysql
PKG_VERSION := 1.3.1 2
PKG_RELEASE := 1
PKG_LICENSE := GPL-2.0
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .zip
PKG_SOURCE_URL := https://pypi.python.org/packages/source/M/MySQL-python/
PKG_HASH := 811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74
PKG_SOURCE := mysqlclient-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://files.pythonhosted.org/packages/source/m/$( PKG_NAME)
PKG_HASH := 2d9ec33de39f4d9c64ad7322ede0521d85829ce36a76f9dd3d6ab76a9c8648e5
PKG_BUILD_DIR := $( BUILD_DIR) /$( BUILD_VARIANT) -mysql-$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e . . / p y t h o n - p a c k a g e . m k
i n c l u d e . . / p y t h o n 3 - p a c k a g e . m k
d e f i n e P a c k a g e / p y t h o n - m y s q l
PKG_UNPACK := $( HOST_TAR) -C $( PKG_BUILD_DIR) --strip-components= 1 -xzf $( DL_DIR) /$( PKG_SOURCE)
d e f i n e P a c k a g e / p y t h o n - m y s q l / D e f a u l t
SUBMENU:= Python
SECTION:= lang
CATEGORY:= Languages
TITLE:= MySQL database adapter for Python
URL:= https://pypi.python.org/pypi/MySQL-python
URL:= https://pypi.python.org/project/mysqlclient
MAINTAINER:= Gergely Kiss <mail.gery@gmail.com>
DEPENDS:= +python +libmysqlclient
e n d e f
d e f i n e P a c k a g e / p y t h o n - m y s q l
$( call Package/python-mysql/Default)
TITLE:= MySQL database adapter for Python
DEPENDS:= +PACKAGE_python-mysql:python +libmysqlclient
VARIANT:= python
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - m y s q l
$( call Package/python-mysql/Default)
TITLE:= MySQL database adapter for Python3
DEPENDS:= +PACKAGE_python3-mysql:python3 +libmysqlclient
VARIANT:= python3
e n d e f
d e f i n e P a c k a g e / p y t h o n - m y s q l / d e s c r i p t i o n
@ -34,15 +51,14 @@ define Package/python-mysql/description
server that provides the Python database API.
e n d e f
d e f i n e B u i l d / C o m p i l e
$( call Build/Compile/PyMod,,install --prefix= /usr --root= $( PKG_INSTALL_DIR) )
e n d e f
d e f i n e P a c k a g e / p y t h o n - m y s q l / i n s t a l l
$( INSTALL_DIR) $( 1) $( PYTHON_PKG_DIR)
$( CP) \
$( PKG_INSTALL_DIR) $( PYTHON_PKG_DIR) /* \
$( 1) $( PYTHON_PKG_DIR)
d e f i n e P a c k a g e / p y t h o n 3 - m y s q l / d e s c r i p t i o n
$( call Package /python -mysql /description )
.
( V a r i a n t f o r P y t h o n 3 )
e n d e f
$( eval $ ( call PyPackage ,python -mysql ) )
$( eval $ ( call BuildPackage ,python -mysql ) )
$( eval $ ( call Py 3Package ,python 3-mysql ) )
$( eval $ ( call BuildPackage ,python 3-mysql ) )