]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python3-more_itertools: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Aug 2025 09:42:24 +0000 (09:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
This is required by setuptools to run.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/python3-more_itertools [new file with mode: 0644]
lfs/python3-more_itertools [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/python3-more_itertools b/config/rootfiles/common/python3-more_itertools
new file mode 100644 (file)
index 0000000..54e0f1e
--- /dev/null
@@ -0,0 +1,13 @@
+#usr/lib/python3.10/site-packages/more_itertools
+#usr/lib/python3.10/site-packages/more_itertools-10.7.0.dist-info
+#usr/lib/python3.10/site-packages/more_itertools-10.7.0.dist-info/LICENSE
+#usr/lib/python3.10/site-packages/more_itertools-10.7.0.dist-info/METADATA
+#usr/lib/python3.10/site-packages/more_itertools-10.7.0.dist-info/RECORD
+#usr/lib/python3.10/site-packages/more_itertools-10.7.0.dist-info/WHEEL
+#usr/lib/python3.10/site-packages/more_itertools/__init__.py
+#usr/lib/python3.10/site-packages/more_itertools/__init__.pyi
+#usr/lib/python3.10/site-packages/more_itertools/more.py
+#usr/lib/python3.10/site-packages/more_itertools/more.pyi
+#usr/lib/python3.10/site-packages/more_itertools/py.typed
+#usr/lib/python3.10/site-packages/more_itertools/recipes.py
+#usr/lib/python3.10/site-packages/more_itertools/recipes.pyi
diff --git a/lfs/python3-more_itertools b/lfs/python3-more_itertools
new file mode 100644 (file)
index 0000000..9778df6
--- /dev/null
@@ -0,0 +1,79 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2020  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 10.7.0
+
+THISAPP    = more_itertools-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 0540d13c0dc2918ea612a1f8ca651f6a0a27d1ab3b6b13160f0bca07fc8b80c0d4b5c175c466cde59d24d54d8ed1cc99f1765d1a559064b82e19ead196ae515c
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist:
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && python3 -m build --wheel --no-isolation
+       cd $(DIR_APP) && python3 -m install --destdir=/ dist/*.whl
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index db06969f51668731e4afca7dcf0e3e7f4167c1b7..b53a5a38a0c1657fcad6655bcaebc1910e6a0b13 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1486,6 +1486,7 @@ build_system() {
        lfsmake2 python3
        lfsmake2 python3-wheel
        lfsmake2 python3-packaging
+       lfsmake2 python3-more_itertools
        lfsmake2 python3-setuptools
        lfsmake2 ninja
        lfsmake2 meson