This removes: * Python 3 variants (VARIANT:=python3) * "for Python3" from package titles * Package selection condition from package dependencies, e.g. +PACKAGE_python3-six:python3-light replaced with +python3-light * "Default" package information sections, e.g. Package/python-six/Default removed and package details merged into Package/python3-six * "(Variant for Python3)" from package descriptions Signed-off-by: Jeffery To <jeffery.to@gmail.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=sqlparse
|
|
PKG_VERSION:=0.3.1
|
|
PKG_RELEASE:=2
|
|
|
|
PYPI_NAME:=sqlparse
|
|
PKG_HASH:=e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548
|
|
|
|
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-sqlparse
|
|
SUBMENU:=Python
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=Non-validating SQL parser module.
|
|
URL:=https://github.com/andialbrecht/sqlparse
|
|
DEPENDS:=+python3-light
|
|
endef
|
|
|
|
define Package/python3-sqlparse/description
|
|
A non-validating SQL parser module. It provides support for parsing, splitting and formatting SQL statements.
|
|
endef
|
|
|
|
define Py3Package/python3-sqlparse/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/$(PYTHON3_PKG_DIR)/sqlparse/__main__.py \
|
|
$(1)/usr/bin/sqlformat
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-sqlparse))
|
|
$(eval $(call BuildPackage,python3-sqlparse))
|
|
$(eval $(call BuildPackage,python3-sqlparse-src))
|