From 0baaaeabae9c4683d0f90cef7c467b8554b9f999 Mon Sep 17 00:00:00 2001 From: Fabian Lipken Date: Sun, 11 Feb 2024 16:01:21 +0100 Subject: [PATCH] python3: add python3-webbrowser package from python3-light Signed-off-by: Fabian Lipken --- lang/python/python3/Makefile | 3 +-- .../python3/files/python3-package-webbrowser.mk | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 lang/python/python3/files/python3-package-webbrowser.mk diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index f34fc86951..f9f31688bc 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk include ../python3-version.mk PKG_NAME:=python3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -262,7 +262,6 @@ define Py3Package/python3-light/filespec -|/usr/lib/python$(PYTHON3_VERSION)/idlelib -|/usr/lib/python$(PYTHON3_VERSION)/tkinter -|/usr/lib/python$(PYTHON3_VERSION)/turtledemo --|/usr/lib/python$(PYTHON3_VERSION)/webbrowser.py -|/usr/lib/python$(PYTHON3_VERSION)/_osx_support.py $(foreach lib_file,$(filter /usr/lib/python$(PYTHON3_VERSION)/%,$(PYTHON3_LIB_FILES_DEL)), -|$(lib_file) diff --git a/lang/python/python3/files/python3-package-webbrowser.mk b/lang/python/python3/files/python3-package-webbrowser.mk new file mode 100644 index 0000000000..e625042fd9 --- /dev/null +++ b/lang/python/python3/files/python3-package-webbrowser.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2006-2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Package/python3-webbrowser +$(call Package/python3/Default) + TITLE:=Python $(PYTHON3_VERSION) Web-browser controller + DEPENDS:=+python3-light +endef + +$(eval $(call Py3BasePackage,python3-webbrowser, \ + /usr/lib/python$(PYTHON3_VERSION)/webbrowser.py \ +))