Skip to content
Snippets Groups Projects
Verified Commit 888e1a0d authored by Karel Koci's avatar Karel Koci :metal:
Browse files

patches: packages: fix python-markupsafe host build patch

parent 1129c779
No related branches found
No related tags found
No related merge requests found
From c7240e82506990a9292bf48ae75ec76f73a7b41d Mon Sep 17 00:00:00 2001
From f11e75fad86ae5a30c08330510e6d2cc591f1d77 Mon Sep 17 00:00:00 2001
From: Stepan Henek <stepan.henek@nic.cz>
Date: Wed, 22 Aug 2018 11:08:34 +0200
Subject: [PATCH] python-markupsafe: Add host build
Signed-off-by: Stepan Henek <stepan.henek@nic.cz>
---
lang/python/MarkupSafe/Makefile | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
lang/python/MarkupSafe/Makefile | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/lang/python/MarkupSafe/Makefile b/lang/python/MarkupSafe/Makefile
index e7b8884ca..bdc786739 100644
index 84cd18427..9d4ed4c25 100644
--- a/lang/python/MarkupSafe/Makefile
+++ b/lang/python/MarkupSafe/Makefile
@@ -11,17 +11,22 @@ PKG_RELEASE:=1
@@ -11,16 +11,21 @@ PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/
PKG_HASH:=a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665
-PKG_BUILD_DEPENDS:=python python3
+PKG_BUILD_DEPENDS:=python3
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
......@@ -32,39 +31,23 @@ index e7b8884ca..bdc786739 100644
include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
-include ../python-package.mk
+include ../python3-host.mk
define Package/python3-markupsafe
SECTION:=lang
@@ -37,21 +42,14 @@ define Package/python3-markupsafe/description
@@ -36,5 +41,12 @@ define Package/python3-markupsafe/description
MarkupSafe implements a XML/HTML/XHTML Markup safe string for Python
endef
-define Package/python-markupsafe
- SECTION:=lang
- CATEGORY:=Languages
- SUBMENU:=Python
- URL:=http://github.com/pallets/markupsafe/
- TITLE:=python-markupsafe
- DEPENDS:=+python-light
- VARIANT:=python
+define Host/Compile
+ $(call Build/Compile/HostPy3Mod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
endef
-define Package/python-markupsafe/description
-MarkupSafe implements a XML/HTML/XHTML Markup safe string for Python
-endef
+endef
+
+Host/Install:=
+
+$(eval $(call HostBuild))
$(eval $(call Py3Package,python3-markupsafe))
$(eval $(call BuildPackage,python3-markupsafe))
-$(eval $(call PyPackage,python-markupsafe))
-$(eval $(call BuildPackage,python-markupsafe))
+$(eval $(call BuildPackage,python3-markupsafe-src))
--
2.19.1
2.21.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment