From b1093e1f05728c3ce99c37007ec0e9c1cc819781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> Date: Tue, 12 Feb 2019 12:57:05 +0100 Subject: [PATCH] patches: packages: add python3-twisted --- .../0012-twisted-add-Python3-variant.patch | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 patches/packages/to-upstream/0012-twisted-add-Python3-variant.patch diff --git a/patches/packages/to-upstream/0012-twisted-add-Python3-variant.patch b/patches/packages/to-upstream/0012-twisted-add-Python3-variant.patch new file mode 100644 index 000000000..1eaa4046f --- /dev/null +++ b/patches/packages/to-upstream/0012-twisted-add-Python3-variant.patch @@ -0,0 +1,82 @@ +From de2d71fe47323f20463aa4cf71bdd4dcd47f6241 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz> +Date: Tue, 12 Feb 2019 12:48:43 +0100 +Subject: [PATCH] twisted: add Python3 variant +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Karel KoÄŤĂ <karel.koci@nic.cz> +--- + lang/python/twisted/Makefile | 31 ++++++++++++++++++++++++++++++- + 1 file changed, 30 insertions(+), 1 deletion(-) + +diff --git a/lang/python/twisted/Makefile b/lang/python/twisted/Makefile +index 3b5608d3b..bd9201d46 100644 +--- a/lang/python/twisted/Makefile ++++ b/lang/python/twisted/Makefile +@@ -1,5 +1,5 @@ + # +-# Copyright (C) 2006-2011, 2015-2018 OpenWrt.org ++# Copyright (C) 2006-2011, 2015-2019 OpenWrt.org + # + # This is free software, licensed under the GNU General Public License v2. + # See /LICENSE for more information. +@@ -24,6 +24,7 @@ PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> + + include $(INCLUDE_DIR)/package.mk + include ../python-package.mk ++include ../python3-package.mk + + PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE) + +@@ -48,18 +49,46 @@ $(call Package/twisted/Default) + VARIANT:=python + endef + ++define Package/python3-twisted ++$(call Package/twisted/Default) ++ TITLE:=Python3 networking engine ++ DEPENDS:= \ ++ +PACKAGE_twisted:python3-light \ ++ +PACKAGE_twisted:python3-attrs \ ++ +PACKAGE_twisted:python3-automat \ ++ +PACKAGE_twisted:python3-constantly \ ++ +PACKAGE_twisted:python3-incremental \ ++ +PACKAGE_twisted:python3-hyperlink \ ++ +PACKAGE_twisted:python3-zope-interface ++ VARIANT:=python3 ++endef ++ + define Package/twisted/description + Twisted is a networking engine written in Python, supporting numerous + protocols. It contains a web server, numerous chat clients, chat servers, + mail servers, and more. + endef + ++define Package/python3-twisted/description ++$(call Package/twisted/description) ++. ++(Variant for Python3) ++endef ++ + define PyPackage/twisted/filespec + +|/usr/bin + +|$(PYTHON_PKG_DIR) + -|$(PYTHON_PKG_DIR)/twisted/conch/scripts/tkconch.py + endef + ++define Py3Package/python3-twisted/filespec ++$(call PyPackage/twisted/filespec) ++endef ++ + $(eval $(call PyPackage,twisted)) + $(eval $(call BuildPackage,twisted)) + $(eval $(call BuildPackage,twisted-src)) ++ ++$(eval $(call Py3Package,python3-twisted)) ++$(eval $(call BuildPackage,python3-twisted)) ++$(eval $(call BuildPackage,python3-twisted-src)) +-- +2.20.1 + -- GitLab