summaryrefslogtreecommitdiff
path: root/lang/python/python-lxml
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2020-04-24 21:24:05 +0800
committerJeffery To <jeffery.to@gmail.com>2020-04-25 00:34:11 +0800
commit6678689f4438f1cf43558e40230144df243c143d (patch)
treef2a1633de658166b833e091bf0ab60e1365d7d4f /lang/python/python-lxml
parent368a072c8adb2b9014978a5d53b285dfb3ac326a (diff)
python-lxml: Use default Python package build recipe
This also updates the package's metadata (title, description, license). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-lxml')
-rw-r--r--lang/python/python-lxml/Makefile34
1 files changed, 17 insertions, 17 deletions
diff --git a/lang/python/python-lxml/Makefile b/lang/python/python-lxml/Makefile
index 75b4fe06a..3b9fe00d8 100644
--- a/lang/python/python-lxml/Makefile
+++ b/lang/python/python-lxml/Makefile
@@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=python-lxml
PKG_VERSION:=4.4.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PYPI_NAME:=lxml
PKG_HASH:=eff69ddbf3ad86375c344339371168640951c302450c5d3e9936e98d6459db06
-PKG_LICENSE:=BSD
+PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSES.txt
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_CPE_ID:=cpe:/a:lxml:lxml
@@ -27,30 +27,30 @@ define Package/python3-lxml
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
- TITLE:=python3-lxml
+ TITLE:=Pythonic XML processing library
URL:=https://lxml.de
DEPENDS:=+libxml2 +libxslt +libexslt +python3-light
endef
define Package/python3-lxml/description
-The lxml XML toolkit is a Pythonic binding
-for the C libraries libxml2 and libxslt.
+ lxml is a Pythonic, mature binding for the libxml2 and libxslt
+ libraries. It provides safe and convenient access to these libraries
+ using the ElementTree API.
+
+ It extends the ElementTree API significantly to offer support for
+ XPath, RelaxNG, XML Schema, XSLT, C14N and much more.
endef
TARGET_LDFLAGS += -lxml2 -lxslt -lexslt
-define Py3Build/Compile
- $(call Python3/ModSetup,, \
- install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
- --static \
- --single-version-externally-managed \
- , \
- INCLUDE="$(STAGING_DIR)/usr/include/ $(STAGING_DIR)/usr/include/libxml2" \
- LIBRARY="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib" \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
- )
-endef
+PYTHON3_PKG_SETUP_ARGS += \
+ --static
+
+PYTHON3_PKG_SETUP_VARS += \
+ INCLUDE="$(STAGING_DIR)/usr/include/ $(STAGING_DIR)/usr/include/libxml2" \
+ LIBRARY="$(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)"
$(eval $(call Py3Package,python3-lxml))
$(eval $(call BuildPackage,python3-lxml))